I think I found my problem. I did not realize using /dev/shm as a ramdisk will create swap space. Is there a way to prevent the ramdisk from swapping to disk? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20110720/fed2ede3/attachment-0001.html>
On 07/20/2011 07:09 PM, Michael McNulty wrote:> I think I found my problem. I did not realize using /dev/shm as a ramdisk will > create swap space. Is there a way to prevent the ramdisk from swapping to disk?Perhaps by not storing so much stuff in it? That, or adding more RAM. Seriously, if you're going to fill up a large portion of your available memory with a ramdisk, demands for memory are going to have to be met by pushing pages out to swap space. By default, a ramdisk can grow to up to half of the available RAM after the kernel has been loaded. If programs and I/O buffers need more than the other memory you have available, what option is there besides swap? -- Bob Nichols "NOSPAM" is really part of my email address. Do NOT delete it.
--- On Thu, 7/21/11, Robert Nichols <rnicholsNOSPAM at comcast.net> wrote:> Perhaps by not storing so much stuff in it?? That, or > adding more RAM. Seriously, if you're going to fill up a large portion of > your available memory with a ramdisk, demands for memory are going to have > to be met by pushing pages out to swap space.? By default, a > ramdisk can grow to up to half of the available RAM after the kernel has been > loaded.? If programs and I/O buffers need more than the other memory > you have available, what option is there besides swap? >Actually I am not storing too much stuff in it since there is plenty of free memory. That was the point of my earlier posts asking why swap when there is plenty of free memory. Correct me if I am wrong, but I believe behavior is unused files in /dev/shm use swap space? I want to make it so it does not do that since it slows the system down and since there is plenty of available free memory.