From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FCI3h-0002Ho-K0 for garchives@archives.gentoo.org; Thu, 23 Feb 2006 15:07:10 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k1NF5UwA030233; Thu, 23 Feb 2006 15:05:30 GMT Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k1NErelO026450 for ; Thu, 23 Feb 2006 14:53:40 GMT Received: (qmail 25944 invoked by uid 0); 23 Feb 2006 14:53:40 -0000 Received: from 157.247.252.14 by www080.gmx.net with HTTP; Thu, 23 Feb 2006 15:53:40 +0100 (MET) Date: Thu, 23 Feb 2006 15:53:40 +0100 (MET) From: jarry@gmx.net To: gentoo-user@lists.gentoo.org Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 References: <200602231555.18509.uwix@iway.na> Subject: Re: [gentoo-user] How many GB for / partition? X-Priority: 3 (Normal) X-Authenticated: #787166 Message-ID: <22868.1140706420@www080.gmx.net> X-Mailer: WWW-Mail 1.6 (Global Message Exchange) X-Flags: 0001 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Archives-Salt: 360bad51-f489-43d1-a6a6-a5d77a76d2d3 X-Archives-Hash: 5b45155bee5c31f502e5242ec384f09a Uwe Thiem wrote: > There are too damn many myths about swap out there. Like this one: > Always configure twice as much swap as you have ram. Why? Well, it depends on how swap is handled by system. In linux, your total memory = physical memory + swap (as you wrote) A couple years ago I got answer from HP, where they said with hp-ux: total memory = physical memory + (swap - physical memory) only if swap > physical memory ! and total memory = physical memory if swap < physical memory (in other words, it was completely useless to have swap < phys.memory, and optimum was really swap = 2 * physical memory) They explained to me, that hp-ux 11 (or at least that early version) allocates part of swap of the same size as physical memory and mirrors the whole image of ram into swap for performance reasons: when more memory is needed, it can be immediatelly made free, because it is already paged to disk. So when I had 1GB RAM and 2GB swap, even right after system boot-up only 1GB of swap were free (in the other half of swap there was already mirror of physical memory), and I could not start any process which needed more than 2GB total memory. It seemed to me to be a complete vaste, and I was really angry, because it was time when 4 GB disk was a luxury (and e.g. irix did not have this strange "feature"). But things might have changed since then... Jarry -- Telefonieren Sie schon oder sparen Sie noch? NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie -- gentoo-user@gentoo.org mailing list