On 2023-12-20, Why 42? The lists account. <li...@y42.org> wrote:
>
> Just tried the mount of /tmp manually from the command line at got:
> mount_mfs: mmap: Cannot allocate memory
>
> When I halved the size (memory) allocated (-s=2097152) it mounts
> successfully:
> mjoelnir:robb 20.12 19:50:02 # df -h /tmp
> Filesystem     Size    Used   Avail Capacity  Mounted on
> mfs:75507      1.9G    1.0K    1.8G     1%    /tmp
>
> Strange that it used to work. One day (!) I'll re-partition and allocate
> a partition/slice of "real" storage to /tmp instead of using mfs.

login.conf used to allow unlimited datasize for the 'daemon' class. That was
changed to cap at 4G (IIRC that was a prerequisite before we were allowed to
bump MAXDSIZ but I don't remember all the details now). This affects things
started from rc - the things particularly likely to run into memory limits
here are fsck, mounting mfs filesystems, maybe also running dump or
restore from single user mode - also ports daemons, though in most cases
we now provide a separate /etc/login.conf.d/daemonname file which raises
limits where needed.

If you have plenty of RAM you may want to bump that value.


Reply via email to