Hi experts,
I want to use a ramdisk or mem file system and mmap to access those files 
in it without any extra buffering in the kernel and no swap. Besides, I 
want the physical memory space reserved once I created the ramdisk. 
As a beginer in Linux, I have a few questions regarding the kernel behavior.

Currently, I have considered about following solutions:
1. ramfs. It would reserve the physical memory, but the drawback is that it 
cannot limit the size. Besides, it would cause extra buffering in the 
kernel, correct?
2. tmpfs. It can limit the size, and it does not need extra buffering in 
the kernel. But the memory is not reserved and it would swap.  

So if I make a loopback file on the tmpfs, it looks like I can take as much 
memory as I can though it still would swap. But the problem with the 
loopback file on tmpfs is that I have to make another filesystem such as 
ext4 on the loopback file, and in this case, I guess again it would cause 
extra buffering from the ext4 to the page cache, correct?

I wonder if there is a better way to get my things done. I appreciate for 
any advices.

Thanks,
Chris

 

-- 
-- 
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
References can be found at: http://goo.gl/anqri
Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules)
--- 
You received this message because you are subscribed to the Google Groups 
"Linux Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to