Re: how much swap for 10g on a 4Gb RAM system?



joel garry wrote:
On Jul 29, 12:19 pm, Palooka <nob...@xxxxxxxxxxx> wrote:
obakesan wrote:
Hi
I'm just going through installing 10g and wondered about the swap
requirements. The documents I'm reading suggest:
" Swap space should be twice the amount of RAM for systems with 2GB of
RAM or less and between one and two times the amount of RAM for systems with
more than 2GB. "
Since I've got 4 Gig, do I really need 4Gig of Swap? I'm not pressing this
system as its just a "learning" platform.
Has anyone got any experience with trying this with less:
$ grep -i swaptotal /proc/meminfo
SwapTotal: 2031608 kB
Surely it can't hurt just to follow the instructions, can it?

Palooka

Yes, it can. It can hurt a lot. That's why the instructions change
over time, and sometimes do not reconcile between release notes,
installation guides and metalink notes. Platform specific issues can
be especially irritating, and the range of configuration issues over
various linux releases is quite broad.

Joel,

I confess to being a little surprised at this. If Oracle say double the RAM, why not just do so? A few gig of disk space is surely neither here nor there nowadays. Can you elucidate?

Palooka
.



Relevant Pages

  • Re: excessive swap-in time
    ... Trying to do it all with RAM is just inefficient. ... I find that does not work well when the swapping is caused by excessive I/O ... Or you could have 5 TB of swap space. ...
    (comp.os.linux.development.system)
  • Re: Swap partition size (future proofing)
    ... > the HDD or using mkswap to create a swap file in an existing partition. ... > Suggested swap partition sizes from the archives range from the same size as ... > the RAM to twice the size of the RAM. ... you start actually using the swap space. ...
    (Fedora)
  • Re: excessive swap-in time
    ... my target is to have enough RAM to do without any swap space at all. ... One problem I have seen, and described elsewhere, is I/O cache/buffer space ...
    (comp.os.linux.development.system)
  • Re: 32-bit addressing question
    ... Swap space is almost useless for almost all problems. ... RAM in parallel). ... running 25,600 instructions per second. ...
    (comp.os.linux.misc)
  • Re: WARNING: Sorry, no swap space to grow stack for pid 4456
    ... > What I meant was on another machine, swap -l shows ... Virtual memory is made up of three "resources" that are put together ... if RAM isn't available, the data is written to the file instead of swap. ... state of affairs might be to have a little swap space used every now ...
    (comp.unix.solaris)