kern/155411: [regression] [8.2-release] [tmpfs]: mount: tmpfs : No space left on device

Gleb Kurtsou gleb.kurtsou at gmail.com
Thu Mar 10 13:20:13 UTC 2011


The following reply was made to PR kern/155411; it has been noted by GNATS.

From: Gleb Kurtsou <gleb.kurtsou at gmail.com>
To: bug-followup at FreeBSD.org, pgollucci at FreeBSD.org
Cc:  
Subject: Re: kern/155411: [regression] [8.2-release] [tmpfs]: mount: tmpfs :
 No space left on device
Date: Thu, 10 Mar 2011 14:53:54 +0200

 Could you test the patch. It changes the way tmpfs grows, sets
 filesystem default size to half of RAM by default.  Tmpfs no longer
 depends on inactive/wired memory stats, but checks if swap is nearly
 full. I've added vfs.tmpfs.swap_reserved sysctl to limit tmpfs growth.
 
 Bottom line is, that you should specify meaningful filesystem size to
 prevent resource exhaustion.
 
 In my tests system didn't panic nor invoked OOM killer while consuming
 nearly all available ram and swap.
 
 Patch:
 http://marc.info/?l=freebsd-fs&m=129735686129438&w=2
 
 It also handles test case described in OpenSolaris bug report for me:
 http://marc.info/?l=freebsd-fs&m=129747362722933&w=2
 
 Thanks,
 Gleb.


More information about the freebsd-fs mailing list