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
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
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.