Swap space question



Hi, i would to ask something about swap space:

i quote from the book "How Linux Works—What Every Super-User Should Know"

"Reserve two to five times as much disk space as you have real memory for
swap. It doesn't make sense to go any lower, because you may actually risk
running out of memory. 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). "

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......]

thanks in advance,

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

Relevant Pages

  • Re: running Linux with no swap space (but lots of RAM)
    ... |>| It's a statement of fact: You are advocating to save disk space at the ... |>| expense of RAM. ... what would have to be running to make use of 256 GB of swap? ... |>A page that is dirty and would get swapped out can instead take up RAM ...
    (comp.os.linux.development.system)
  • Re: running Linux with no swap space (but lots of RAM)
    ... |>> to dirty, but inactive pages associated with some applications. ... | It's a statement of fact: You are advocating to save disk space at the ... | expense of RAM. ... what would have to be running to make use of 256 GB of swap? ...
    (comp.os.linux.development.system)
  • Re: growfs for solaris 8
    ... Yes you can steal a bit of swap but you are going to need to steal a really big piece of swap to meet future requirements. ... Remember that there is no pain quite like backing up your entire system, repartitioning the disk to make room where none is left and then restoring your system. ... Being generous may waste a bit of disk space but being too stingy will cost you many hours and if you are any good at all, your time is worth more than a little disk space. ... I suspect that an hour of your time costs your employer at least that much. ...
    (comp.unix.solaris)
  • Re: kernel killing processes when out of swap
    ... >> processes get killed first) when you run out of swap would be a useful feature, ... Now that disk space is cheap, it would be even nicer if we had a ... non-overcommit mode for swap, as most System V-derived systems do. ...
    (freebsd-hackers)
  • Re: Partitioning scheme for file/mail server
    ... make swap 2x the maximum amount of memory that can be fitted ... If you're using Linux software RAID ... (This system uses LVM, but not RAID, and you don't need LVM for this, ... depends on how much disk space you have in total; ...
    (uk.comp.os.linux)