Re: Swap space question




Hi Nicolas,

If you go higher and actually
intend to use all of this swap space, you will likely suffer serious
performance problems because the system will spend all of its time
swapping (a condition known as thrashing). "

A system will traditionally use swap space when it runs out of memory
for the task it's running. Think production environment with very heavy
load like database dealing with a LOT of requests etc.


A good tip taken from the RHEL 4 installation manual
(http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/x8664-multi-install-guide/s1-diskpartitioning.html#S2-DISKPARTRECOMMEND)
is "If your partitioning scheme requires a swap partition that is larger
than 2 GB, you should create an additional swap partition. For example,
if you need 4 GB of swap, you should create two 2 GB swap partitions. If
you have 4 GB of RAM, you should create three 2 GB swap partitions." but
bear in mind we're talking production server and not workstation.


i can't understand why if create a really big swap partition i will have
a performance decrease????It seems to me
that in the worst case scenario, i will be throwing disk space [because
the system will never use the swap partition if it doesn't need
it......why this would have a negative impact on the system......]

This is because you see it from the user point of view...
A home user with recent hardware will usually not suffer or notice load
on his/her machine. Go with the default from the installer.

thanks in advance,

Nicolas Ang

Hope this helps

Thierry

--
(o< Thierry Sayegh de Bellis
//\ RHCE
V_/_ UK

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • 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: Problem with adding more swap !
    ... See the Handbook section titled "Swap Partition". ... you're best off giving it space on all of the disks. ... to the fastest ones for swap space. ...
    (freebsd-questions)
  • Re: [opensuse] Swap Software RAID 1 not working, SuSE 10.3
    ... I do notice I do have swap space detected when I use ... didn't have to go raid 0 in order to fix this problem and now it works ... physical drives to make up multiple raid arrays, if my swap partition ... I have 3 G of RAM and I rarely use any swap on disk, ...
    (SuSE)
  • Re: Newbie Question About Swap Partition
    ... My swap partition is set to approximately double the RAM ... Think of swap as 'emergency memory' which the system can ...
    (comp.os.linux.setup)
  • Re: hibernate and swap partition size (newbie question)
    ... > able to hibernate/suspend to disk properly, the swap partition has to ... > be big enough to hold all of the RAM inside it, ... shut down without properly taking care of nvidia, so that is why I had ...
    (Debian-User)