Re: Swapping to a large sparse file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2015-01-16 at 14:26 -0700, jd1008 wrote:

> In older "traditional" practices, swap space was normally
> about twice the ram size. Today, with some systems having
> 64 and even 128GB and even larger RAM, it becomes interesting
> how big swap space should be. Where is the cutoff for performance?
> Paging in and out 128GB memory space could prove to be itself a
> performance bottleneck on very busy or memory bound servers.

My advice is don't bother unless you know you need it.  I find 512MB or
1GB to be plenty of swap.  You need some swap just so the system can
ditch memory that was used once to initialize code but isn't accessed
again and other similar things that can be safely tossed to swap and
forgot about.  But if the system is actually swapping hundreds of
megabytes in and out you will quickly be in a world of pain.  Plus most
of the time when that sort of memory pressure hits it is a runaway
process that the OOM killer will eventually take out and having a lot of
swap only increases how long you suffer with an almost totally
unresponsive machine until that happens.  If you are swapping and it
isn't a runaway process or an exception to process a one off huge
dataset it is a sign you need to bite the bullet and get more ram.  If
you know you are going to need a lot of swap to get through some script
you banged out that allocates memory like mad, just add an extra
swapfile on a temporary basis and drop it when you are done.  You are
allowed to have multiple swap files, partitions or any combination of
them within sensible limits.

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux