SUMMARY#2: tmpfs bytes/inode ratio?

From: David Luyer <david_at_luyer.net>
Date: Mon Jun 03 2002 - 23:36:24 EDT
Thanks to Bill Cullen for solving my problem relating to running out of
inodes on tmpfs.  He sent through this reference on google groups:

http://groups.google.com/groups?hl=en&lr=lang_en&ie=UTF8&oe=UTF8&safe=of
f&threadm=87ceef%24jju%241%40pegasus.csx.cam.ac.uk&rnum=16&prev=/groups%
3Ftab%3Dwg%26sa%3DN%26num%3D100%26hl%3Den%26lr%3Dlang_en%26ie%3DUTF8%26o
e%3DUTF8%26safe%3Doff%26as_qdr%3Dall%26q%3Dsolaris%2Btmpfs%2Bkernel

   >>Is it possible to increase the number of inodes in a tmpfs
   >>filesystem?
   >>how?
   >
   >Only by magic in /etc/system. I think the right location to
   >modify is "tmpfs_maxkmem" and that it is about 240 * the inode
   >limit. The default value increases with the physical memory size.

   I just got round to testing this (Solaris 2.6, SPARCstation 5).
   Adding

     set tmpfs:tmpfs_maxkmem = 3600000

   to /etc/system does indeed cause "df -t /tmp" to show a limit of
   precisely 15000 inodes.

This wasn't 100% accurate by Solaris 2.8; I had to allocate 368 bytes
per inode, however the tmpfs:tmpfs_maxkmem is the key;

   set tmpfs:tmpfs_maxkmem = 12058624

gives 32768 inodes shared across all mounted tmpfs filesystems on
Solaris 2.8.

David.
--
David Luyer                                     Phone:   +61 3 9674 7525
Network Development Manager    P A C I F I C    Fax:     +61 3 9699 8693
Pacific Internet (Australia)  I N T E R N E T   Mobile:  +61 4 1111 BYTE
http://www.pacific.net.au/                      NASDAQ:  PCNTF
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Mon Jun 3 23:41:06 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:45 EST