A couple more followups to this-

I found this document:
http://docs.sun.com/app/docs/doc/817-0404/6mg74vs9q?a=view says that tmpfs:tmpfs_minfree can be set to ensure that tmpfs leaves a specific amount of swap space for the rest of the system. By default it's set to 256 pages, and pagesize on my machines is 8192B, so that's 2MB assured to be free. Setting this variable to a higher variable will limit the max size of a tmpfs. For example, here are some settings on my test server along with the size of a default tmpfs:

# no tmpfs:tmpfs_minfree setting (default)
swap                   2.1G     0K   2.1G     0%    /mnt

# tmpfs:tmpfs_minfree=62500
swap                   1.6G     0K   1.6G     0%    /mnt

# tmpfs:tmpfs_minfree=125000
swap                   1.1G     0K   1.1G     0%    /mnt

# tmpfs:tmpfs_minfree=187500
swap                   657M     0K   657M     0%    /mnt



Additionally, i had the fortune to attend a Solaris 10 Boot Camp today during which i asked the presenter about limiting resources. I saw a slide that said memory sets are available in Sol10U1, and the presenter said that swap sets are in the works. For now, she said it is possible to create a project in the global zone with RSS and VM limits and start a zone in that project. Supposedly the Sun Management Center - Solaris Container Manager eases the implementation of such projects for zones as well as other zone settings, but it's currently a for-pay product.
http://www.sun.com/software/products/container_mgr/


-f
http://www.blackant.net/
_______________________________________________
Solaris-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/solaris-users

Reply via email to