Loading
Home ›
Emergency Swapfile: when your memory fills up
Trending Topics
| OpenLDAP Everywhere Reloaded, Part I | May 23, 2012 |
| Chemistry the Gromacs Way | May 21, 2012 |
| Make TV Awesome with Bluecop | May 16, 2012 |
| Hack and / - Password Cracking with GPUs, Part I: the Setup | May 15, 2012 |
| An Introduction to Application Development with Catalyst and Perl | May 14, 2012 |
| Cryptocurrency: Your Total Cost Is 01001010010 | May 09, 2012 |
- OpenLDAP Everywhere Reloaded, Part I
- Strip DRM from WMV File
- Validate an E-Mail Address with PHP, the Right Way
- Boot with GRUB
- Why Python?
- A Statistical Approach to the Spam Problem
- Chapter 16: Ubuntu and Your iPod
- Why Hulu Plus Sucks, and Why You Should Use It Anyway
- Building an Ultra-Low-Power File Server with the Trim-Slice
- Science the GNU Way, Part I
- Editorial Standards?
4 hours 1 min ago - Great one
5 hours 36 min ago - Common form in many
5 hours 57 min ago - Awsome
11 hours 41 sec ago - Euro 2012 Coupon Codes - Get 20% Off Pavtube TiVo Converter
3 days 9 hours ago - Euro 2012 Big Sale: 20% Off Instant Savings on TiVo Converter
3 days 9 hours ago - MakeMKV works as well, though
3 days 9 hours ago - Euro 2012 Big Sale: 20% Off Instant Savings on TiVo Converter
3 days 10 hours ago - Awesome
4 days 8 hours ago - Who worries approx the
4 days 10 hours ago





Comments
Linux can handle more than 1 swap space
See here about multiple swap spaces and how to manage their priority.
http://www.brighthub.com/computing/linux/articles/37236.aspx
swapfile initialization takes long time
Hi,
So I created a swap file of 16GB in an ext3 file systems, but it took several hours to complete swapon. And this happens every time the machine reboots. IS there a way to speed up this process?
cheers
artem.
Swap FILES tend to be slow. Try a swap partition instead.
The original post is about swap files rather than swap partitions. Both are used for the same purpose, but as stated in the post title "Emergency Swapfile", swap files tend to be best used for emergency situations or specialty needs (for example, when partitioning the drive is not possible for one reason or another). If you ARE able to re-partition the drive space, then far more efficient performance-wise is the swap partition (or even better yet, a swap DRIVE if you have a speedy but small-ish spare drive laying about somewhere). This will surely give much better performance than using a swap file, especially when dealing with sizes in the multi-gigabyte ranges. Of course, as the other reply to this post states, you should also consider carefully the size of your required swap space as well. 16 gigabytes does seem a bit extreme unless you are using insane amounts of RAM for some really intense application.
> far more efficient
> far more efficient performance-wise is the swap partition
Mainly untrue. See Andrew Morton in
http://lkml.org/lkml/2005/7/7/326
RE: 16Gb Swap File
Unless you are running on 4GB of RAM or more, I'd suggest going with a lower swap size. I like to keep mine about twice the size of the amount of RAM I have. General practice usually ranges from 1x-4x the size of your RAM.
http://ossolutions.org