Hi Guys,
I've VERY new to OpenVZ so forgive me if this is a silly post.
We want to run a container with a TMPFS mount with a size limit of say 200M. We need this 200M to be guaranteed available. So I did the following on the container as a test:
mkdir /mnt/test
mount -t tmpfs -o noexec,nosuid,size=200M tmpfs /mnt/test
dd if=/dev/zero of=/mnt/test/file bs=1M count=100
This should produce a file of 100M, but it stops at 88M and says "No space left on device"
This is the results of "free -m" on the container:
free -m
total used free shared buffers cached
Mem: 2048 134 1913 0 0 0
-/+ buffers/cache: 134 1913
Swap: 0 0 0
and this is "df -h" on the container:
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 892G 4.5G 842G 1% /
none 1.0G 4.0K 1.0G 1% /dev
tmpfs 200M 85M 116M 43% /mnt/test
I've also adjusted the vmguarpages and privvmpages like this:
vzctl set vpsid --vmguarpages $((256 * 1024)) --save
vzctl set vpsid --privvmpages $((256 * 2048)) --save
Ideas?