login
Header Space

 
 

Question on swap as ramdisk partition

November 19, 2008 - 4:41am
Submitted by Anonymous on November 19, 2008 - 4:41am.
Linux

Hi, I have read the article about using ramdisk as swap. In the HOWTO they turned the ramdisk into an ext2 filesystem and placed a swapfile in it. I have 3 questions regarding this.

1. Is it not better to just do "mkswap /dev/ram10 && swapon /dev/ram10" rather than making an ext2 fs and putting a file ?
2. Once the ramdisk is initialized as swap and activated it, do I need a fstab entry or does the kernel automatically know it has swap available ?
3. What's the best command to see how much swap is used when it's on ramdisk (free -tm alawys shows 0 used for swap) ?

Thanks

don't go there

November 19, 2008 - 11:32am
Ferdinand (not verified)

Remind us why you want to swap to RAM disk? In general, it's a counter-productive configuration. The whole point of swap space is to relieve RAM pressure. Dedicating RAM to relieve RAM pressure achieves nothing.

why not

November 19, 2008 - 4:29pm
Anonymous (not verified)

Well it's my system and I want test this.
I posted 3 questions which deal with technical aspects of this configuration and I really expect technical answers to those questions. Philosophies as to why, just discard them, I am not trying to start a flame or whatever. I just want some useful answers from anyone who can provide them.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
speck-geostationary