Small single-user mode limits [Was: fsck_ufs: cannot alloc]

Dmitry Pryanishnikov dmitry at atlantis.dp.ua
Sat Oct 7 21:50:32 UTC 2006


Hello!

On Sat, 7 Oct 2006, Marc G. Fournier wrote:
> Server just crashed, rebooted and trying to do an fsck, reports the above ...

    Well, allocating 2Gb is a little too much. However I observe a related
problem. Has anyone noticed that process limits within single-user shell
are _way_ too low. 'ulimit -a' shows 128Mb for data segment (-d) and only
8Mb for the stack (-s). After booting to the multiuser mode my root has
1Gb for -d and 1Gb for -s (login.conf says 'unlimited' for both, and
/boot/loader.conf sets kern.maxdsiz and kern.maxssiz to 1Gb for both).
But where those small single-user defaults (-d 128M, -s 8Mb) hardwired? They 
are not in /.profile nor in /etc/profile nor in .profile. And such restrictive 
process limits _do_ prevent fsck_msdosfs from checking my large (51Gb) FAT32 
partition from being checked from single-user mode while there is no problem 
in both multi-user mode _and_ /etc/rc execution. Problem is common for CURRENT
and RELENG_6.

Sincerely, Dmitry
-- 
Atlantis ISP, System Administrator
e-mail:  dmitry at atlantis.dp.ua
nic-hdl: LYNX-RIPE


More information about the freebsd-stable mailing list