LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how much memory can tmpfs support? (https://www.linuxquestions.org/questions/linux-software-2/how-much-memory-can-tmpfs-support-433544/)

hongxing 04-09-2006 10:33 PM

how much memory can tmpfs support?
 
I am using SuSE Linux Enterprise 9 on a 32bit x86 machine.
my question is can tmpfs support more than 4GB size of vmdisk?

if can, what's the max memory can tmpfs suport on a 32bit x86 machine?

thanks!

foo_bar_foo 04-10-2006 12:46 AM

i might be wrong about this cause i am vague about shmfs/tmpfs
differences if there are any
in my mind this limit is for a combination of the two
both are pageable and swappable unlike ramfs which might or might not be a part of this limit (some help i am)
i think overall limit would be
cat /proc/sys/kernel/shmall
* page_size which is generally 4096
so
2097152*4096=8 GB total for all shared memory

now on top of that limit i think you can specify limits on tmpfs at mount
if you don't specify it defaults to half real memory.

so i guess the answer is yes as long as you got that much ram+swap


All times are GMT -5. The time now is 02:24 PM.