Bug 243523

Summary: The default size of tmpmfs is not sufficient for pkg operation
Product: Base System Reporter: Victor Sudakov <vas>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Some People CC: emaste, vas
Priority: ---    
Version: 12.1-RELEASE   
Hardware: Any   
OS: Any   

Description Victor Sudakov 2020-01-22 17:09:19 UTC
The default size of tmpmfs (tmpsize="20m") is not sufficient for pkg operation. If you do not increase the size of /tmp, "pkg update" operations will fail with the message:

pkg: archive_read_extract(extract error): No space left on device

Workaround: increase the size of the RAM disk on /tmp, or unmount the RAM disk.

Proposed solution: the default tmpsize in /etc/defaults/rc.conf should be set to a higher value.
Comment 1 Ed Maste freebsd_committer 2020-09-07 20:24:13 UTC
What size did you end up using?
Comment 2 Victor Sudakov 2020-09-08 13:04:15 UTC
(In reply to Ed Maste from comment #1)
I have actually given up using RAM for /tmp as I don't see much sense in it. My current FreeBSD systems are on ZFS where zroot/tmp is mounted on /tmp.