OpenVZ Forum


Home » General » Support » TMPFS Limitations (Can't grow tmpfs beyond a specific size.)
icon9.gif  TMPFS Limitations [message #40512] Fri, 27 August 2010 07:06 Go to previous message
AlexFox is currently offline  AlexFox
Messages: 3
Registered: August 2010
Junior Member
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?
 
Read Message icon9.gif
Read Message icon14.gif
Previous Topic: Ext4 ?
Next Topic: OpenVZ Container issue
Goto Forum:
  


Current Time: Sat Jul 27 17:14:09 GMT 2024

Total time taken to generate the page: 0.02695 seconds