From owner-freebsd-stable@FreeBSD.ORG Sat Oct 7 21:50:32 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1AA7A16A40F; Sat, 7 Oct 2006 21:50:32 +0000 (UTC) (envelope-from dmitry@atlantis.dp.ua) Received: from postman.atlantis.dp.ua (postman.atlantis.dp.ua [193.108.47.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1140F43D46; Sat, 7 Oct 2006 21:50:30 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from atlantis.dp.ua (localhost [127.0.0.1]) by postman.atlantis.dp.ua (8.13.1/8.13.1) with ESMTP id k97LoO1e079850; Sun, 8 Oct 2006 00:50:24 +0300 (EEST) (envelope-from dmitry@atlantis.dp.ua) Received: from localhost (dmitry@localhost) by atlantis.dp.ua (8.13.1/8.13.1/Submit) with ESMTP id k97LoOnb079847; Sun, 8 Oct 2006 00:50:24 +0300 (EEST) (envelope-from dmitry@atlantis.dp.ua) Date: Sun, 8 Oct 2006 00:50:24 +0300 (EEST) From: Dmitry Pryanishnikov To: "Marc G. Fournier" In-Reply-To: <10CABEA101FD2742AEA66291@ganymede.hub.org> Message-ID: <20061008003331.C62469@atlantis.atlantis.dp.ua> References: <10CABEA101FD2742AEA66291@ganymede.hub.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-stable@freebsd.org Subject: Small single-user mode limits [Was: fsck_ufs: cannot alloc] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Oct 2006 21:50:32 -0000 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