ia64/171626: tmpfs should be noisier when the requested size cannot be allocated

Ian Jacobi <[email protected]>
Newsgroups gmane.os.freebsd.devel.ia64
Message-ID <[email protected]>
>Number:         171626
>Category:       ia64
>Synopsis:       tmpfs should be noisier when the requested size cannot be allocated
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ia64
>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:
>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:
>Unformatted:
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ia64
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.