top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How often is kernel "touching" swap partition?

0 votes
306 views

I am going to buy new laptop with two drives, one SSD and one HDD and I want to place swap partition on HDD which will be most time unused and therefore spinned down. Problem is, that I don't know, if or how often is kernel touching swap space even if there is lot of free memory and thus spinning HDD up.

posted Jul 23, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote

You should partition your drives anyway: a small, like 1G, partition for /boot. For swap, the old Received Wisdom was 2-2.5 times RAM; these days, it's "make swap to be 2G (for emergencies). Put swap on the SSD, I *guess*... if it's enterprise grade, and not "consumer grade", which will eventually give up with too many writes.

answer Jul 23, 2013 by anonymous
+1 vote

There's a kernel tunable called "swappiness" [1] to control that. You can add an entry in /etc/sysctl.conf like this:

vm.swappiness=0

...and the kernel will avoid, as much as it can, to use swap.

answer Jul 23, 2013 by anonymous
Similar Questions
0 votes

I am running Ubuntu 12.04.2 and run the updates manually on a regular basis from the command line. I noticed that the Kernel gets updated too often...
I know I am supposed to reboot the machine after a Kernel update, but that means rebooting every two days. One of the things I like to do is run the uptime command and smile :-)
1. Why does the Kernel get updated so often?
2. How do I find the change log, so I can decide if I need to update / restart the machine?

...