Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Oct 2006 00:50:24 +0300 (EEST)
From:      Dmitry Pryanishnikov <dmitry@atlantis.dp.ua>
To:        "Marc G. Fournier" <scrappy@freebsd.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Small single-user mode limits [Was: fsck_ufs: cannot alloc]
Message-ID:  <20061008003331.C62469@atlantis.atlantis.dp.ua>
In-Reply-To: <10CABEA101FD2742AEA66291@ganymede.hub.org>
References:  <10CABEA101FD2742AEA66291@ganymede.hub.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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@atlantis.dp.ua
nic-hdl: LYNX-RIPE



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061008003331.C62469>