restrict total use of memory for different tmpfs filesystems
Date: 11 Aug 2004 07:29:27 -0700
I mount the /dev, /tmp and a /.var directory into memory using the
tmpfs filesystem. I would like to restrict the total use of the memory
for tmpfs to 10Mb. I know that I can use the size=10M option in the
mount command, but how much memory uses tmpfs in total if I do
mount -t tmpfs -n tmp /tmp -o size=10M
mount -t tmpfs -n .var /.var -o size=10M
mount -t tmpfs -n dev /dev -o size=10M
Is the total use of memory for tmpfs restricted to 10Mb or 30Mb ?
- Re: [PATCH] Use MPOL_INTERLEAVE for tmpfs files
... which wants tmpfs to behave differently. ... all of the system memory. ... > As long as it defaults to off, I guess I don't really care. ... I've got a new patch including Andi's suggested sysctl ready to go. ...
- Re: tmpfs is zero bytes (no free space), maybe a zfs bug?
... Of course not, but as I see it, tmpfs should ... behave as close to regular processes in consuming memory as possible ... Reorganize limits and mount option parsing ... -/* Returns the maximum size allowed for a tmpfs file system. ...
- Re: Using TMPFS for /tmp and /var/run?
... I have no experience using tmpfs for /var/run, but I have been using it ... Size of the memory disk. ... and -t swap are implied if not specified. ... the available amount of memory (including main memory and swap ...
- Re: [opensuse] why /var/run and /run these two directories have absolutely the same contents?
... tmpfs on /run type tmpfs ... I don't think /var/run is occupying hard disk space just like /run. ... One Upon a time someone wrote a file system driver for the V7 PFDPD-11, ... In that context, pre networking pre FFS, memory maxing ...
- Re: How to shutdown and restart (one, next time) in single user runlevel 1 ?
... systems with plenty of ram. ... That's what tmpfs is for, ... So the ideal is that these files never end up on a disk. ... The file's data itself is probably still in memory in caches, unless you are really tight on memory. ...