[clue] Linux VM image - Should you include a swap parti tion?

Richard Knechtel richard.knechtel at gmail.com
Sun Nov 4 18:36:50 MST 2012


My general rule of thumb has always been make your swap partition the 
same size as your physical memory. Whether it's physical or virtual. 
I have three different Linux VM's that I had been trying out and that 
is how I do it.

HTH


At 07:00 PM 11/4/2012, you wrote:

>Hello all,
>
>This is my first time mailing to this mailing list.  I just have a 
>question I haven't really found any solid answer for with Google.
>
>What is the best practice for managing swap within VM 
>images?  Regardless of distro, should I be including a swap 
>partition inside the main VM image?  I've been giving my VMs around 
>768M-2G of memory (on a test vmhost).  With a base install (pretty 
>much any distro) between 4-6G, all my partitions add up to only 
>about 1.2G.  Is this overhead from a swap partition?  And if so, 
>does it shrink down considerably with image compression? I just want 
>to find the most efficient management.  I usually set the kernel to 
>use the least swap it can, and I find that used swap (from free -m) 
>is 0.  These are all testing images, and as such do not see very 
>high load.  If they get pushed to production (which is a possibility 
>depending on testing), should I leave the swap partition intact 
>within the vm images?
>
>Thanks in advance for any replies!
>R. G.
>_______________________________________________
>clue mailing list: clue at cluedenver.org
>For information, account preferences, or to unsubscribe see:
>http://cluedenver.org/mailman/listinfo/clue



More information about the clue mailing list