On Sun, 25 Mar 2012, shirish शिरीष wrote: > How do I write values of TMPFS_SIZE and TMP_SIZE
AFAIK, it will accept whatever "mount" accepts for the "size=" parameter for tmpfs filesystems. You can find that information on the mount(8) manpage. > This is what it looks like atm :- > > # TMPFS_SIZE: maximum size for all tmpfs filesystems if no specific > # size is provided. If no value is provided here, the kernel default > # will be used. > TMPFS_SIZE=20% This means 20% of the system RAM. > # TMP_SIZE: maximum size of /tmp > # > # No default size. > TMP_SIZE= Which means use whatever is in TMPFS_SIZE, I think. > a. From where would TMPFS_Size be used ? Would it take from the space > allocated from / (which has enough empty space) or does it take from > /home. Note that I have two partitions / , /home and of course swap is > also good around 4 GB. It lives in virtual memory, so it is stored in system RAM. Data inside a tmpfs can be swapped to disk. Unused space in a tmpfs is very cheap, but AFAIK the tmpfs size _does_ increase the size of some page tables, so if you really need to know exactly how many resources are taken by unused tmpfs space, we'd need to ask in LKML for an expert opinion. > b. The second question is how do I phrase the two ? > tmpfs is given as 20% . 20% is default for what and from where ? AFAIK, it's 20% of the available system RAM at kernel boot. I am not sure it takes into account RAM explicitly set aside for hugepages, but you likely don't have to worry about that. > c. What do I write at TMP_SIZE= if I want to say 900 MiB or 1 GiB . TMP_SIZE=1G TMP_SIZE=900M -- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120324211239.gb6...@khazad-dum.debian.net