On Tue, Apr 12, 2011 at 12:38:03PM +0100, Roger Leigh wrote: > On Mon, Apr 11, 2011 at 08:01:42PM +0100, Roger Leigh wrote: > > With the transition to /run and /run/lock as tmpfs filesystems, it > > would be desirable to provide sensible default size limits. Currently, > > we default to the tmpfs default of ½ RAM. But with several tmpfs > > filesystems, this does have the potential for the system to be OOMed > > by a user filling up more than one of the filesystems. A sensible > > default size limit would be useful here, for at least some of the > > filesystems. > > > > We currently allow specification of size limits for: > > /run (RUN_SIZE) > > /run/lock (LOCK_SIZE, optional) > > /dev/shm (SHM_SIZE) > > /tmp (TMP_SIZE, optional) > > > > [from temporary git repo at http://git.debian.org/?p=collab-maint/sysvinit;a=summary] > > > > In order to default to a sensible size, I would appreciate it if I > > could have some figures for the useage of these filesystems: e.g. > > > > % sudo du -sk /var/run /var/lock /dev/shm > > OK, some results: > > /var/run /var/lock /dev/shm > Min 9 0 0 > 5% percentile 60 0 0 > Mean 886 9 599 > Median 120 8 0 > 95% percentile 612 17 310 > Max 47696 52 80744 Forgot to mention, this is based on a sample set of 156 separate systems. Many thanks to everyone who mailed me with the stats! -- .''`. Roger Leigh : :' : Debian GNU/Linux http://people.debian.org/~rleigh/ `. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/ `- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
Attachment:
signature.asc
Description: Digital signature