From: jarry@gmx.net
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] <OT> How many GB for / partition?
Date: Thu, 23 Feb 2006 15:53:40 +0100 (MET) [thread overview]
Message-ID: <22868.1140706420@www080.gmx.net> (raw)
In-Reply-To: 200602231555.18509.uwix@iway.na
Uwe Thiem <uwix@iway.na> 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?
<OT>
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...
</OT>
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
next prev parent reply other threads:[~2006-02-23 15:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-23 11:07 [gentoo-user] How many GB for / partition? joaoemanuel1981
2006-02-23 12:04 ` jarry
2006-02-23 13:55 ` Uwe Thiem
2006-02-23 14:05 ` John Jolet
2006-02-23 14:30 ` Dave Nebinger
2006-02-23 16:03 ` Richard Fish
2006-02-23 16:12 ` Dave Nebinger
2006-02-23 18:07 ` Alexander Skwar
2006-02-23 19:38 ` Uwe Thiem
2006-02-23 14:45 ` Abhay Kedia
2006-02-23 14:53 ` jarry [this message]
2006-02-23 15:22 ` [gentoo-user] <OT> " Andrei Slavoiu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=22868.1140706420@www080.gmx.net \
--to=jarry@gmx.net \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox