From nobody@FreeBSD.org  Fri Sep 14 01:06:47 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 75DC8106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Sep 2012 01:06:47 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 60DF28FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Sep 2012 01:06:47 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q8E16lXL071383
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Sep 2012 01:06:47 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id q8E16lB0071368;
	Fri, 14 Sep 2012 01:06:47 GMT
	(envelope-from nobody)
Message-Id: <201209140106.q8E16lB0071368@red.freebsd.org>
Date: Fri, 14 Sep 2012 01:06:47 GMT
From: Ian Jacobi <pipian@pipian.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: tmpfs should be noisier when the requested size cannot be allocated
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         171626
>Category:       kern
>Synopsis:       [tmpfs] tmpfs should be noisier when the requested size cannot be allocated
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-fs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 14 01:10:15 UTC 2012
>Closed-Date:    
>Last-Modified:  Mon Oct 08 03:22:13 UTC 2012
>Originator:     Ian Jacobi
>Release:        9.0-STABLE
>Organization:
>Environment:
FreeBSD urd 9.0-STABLE FreeBSD 9.0-STABLE #6: Sat Feb 18 18:46:10 EST 2012     pipian@urd:/usr/obj/usr/src/sys/URD  amd64
>Description:
Although the tmpfs man page states that when the size parameter specified for a tmpfs mount is "larger than SIZE_MAX - PAGE_SIZE... the available amount of memory (including main memory and swap space) will be used." there is no indication logged in dmesg when this is the case, making it difficult to determine why a mounted tmpfs system may have been allocated a smaller size than expected when memory is low.

tmpfs should be noisier and print out a warning to dmesg about low available memory when the requested size cannot be allocated.
>How-To-Repeat:
Attempt to allocate more space to a tmpfs mount than is available in free RAM:

mount -t tmpfs -o rw,noauto,size=2684354560 tmpfs /tmp

(when available free RAM is less than 2.5GB)
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ia64->freebsd-amd64 
Responsible-Changed-By: marcel 
Responsible-Changed-When: Tue Sep 25 22:04:08 UTC 2012 
Responsible-Changed-Why:  
Change category to match environment. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=171626 
Responsible-Changed-From-To: freebsd-amd64->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Oct 8 03:21:50 UTC 2012 
Responsible-Changed-Why:  
reclassify. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=171626 
>Unformatted:
