Hello John,<br><br>My main motive is not to run the compcache block node as a swap partition. I would like to use this partition for shared memory. My application has to do lot of IPC's but i do not have much memory on board so i have decided to use compcache block device node as a generalized block device.<br>
<br>Also I have checked formatting this node with some block as ext3, this works perfectly well.<br>With ext2 it is having some issue i will look in to it, But with fat 16, 32 I see a hang in the system which is a result of the analysis i have done. I will let you know f i find some thing.<br>
<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">1) swapon /dev/ramzswap<br>2) mount -t <tt>tmpfs -o size=1G,nr_inodes=10k,mode=0700 tmpfs /space</tt></blockquote>
<div><br>I do not want it as swap partition <br><br>Sincere Regards <br>Vijayendra Suman<br></div><br><div class="gmail_quote">On Fri, Jul 10, 2009 at 10:21 AM, John McCabe-Dansted <span dir="ltr"><<a href="mailto:gmatht@gmail.com">gmatht@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"><div class="im">On Fri, Jul 10, 2009 at 12:38 PM, Vijayendra Suman <span dir="ltr"><<a href="mailto:vijayendra.suman@gmail.com" target="_blank">vijayendra.suman@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi, <br><br>I want to use compcache 0.3 release as ramfs, which could be used for processes for shred memory communication.<br>Currently, I compcache acts as virtual block driver and act as swap Filesystem<br><br>1) swapoff compcache partition<br>
2) mkfs.vfat -F 32 -S 4096 /dev/ramzswap0<br>3) mount /dev/ramzswap0 /mnt </blockquote></div><div><br>ramzswap is not a generic block device, so as I understand you cannot mount normal filesystems on it (It only supports I/O of size PAGE_SIZE).<br>
<br>Would something like the following suffice?<br><br>1) swapon /dev/ramzswap<br>2) mount -t <tt>tmpfs -o size=1G,nr_inodes=10k,mode=0700 tmpfs /space</tt><br><br><a href="http://en.wikipedia.org/wiki/TMPFS" target="_blank">http://en.wikipedia.org/wiki/TMPFS</a><br>
<br>The linux kernel should swap out tmpfs pages that have not been frequently used, so this should be fairly close to what you want. tmpfs is probably a better fit for this than vfat anyway.<br> </div></div><br clear="all">
<br>-- <br>John C. McCabe-Dansted<br>PhD Student<br>University of Western Australia<br>
</blockquote></div><br>