From owner-freebsd-questions Tue Mar 3 12:20:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA24443 for freebsd-questions-outgoing; Tue, 3 Mar 1998 12:20:18 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mail.iconz.co.nz (mail.iconz.co.nz [202.14.100.36]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA24102 for ; Tue, 3 Mar 1998 12:19:03 -0800 (PST) (envelope-from jonc@pinnacle.co.nz) Received: from news.iconz.co.nz (status.gen.nz [202.14.100.1]) by mail.iconz.co.nz (8.8.7/8.8.7) with ESMTP id JAA041440888956271; Wed, 4 Mar 1998 09:17:51 +1300 (NZDT) Received: (from uucp@localhost) by news.iconz.co.nz (8.8.5/8.8.5) with UUCP id JAA16096; Wed, 4 Mar 1998 09:17:51 +1300 Received: from tui.pinnacle.co.nz (tui.pinnacle.co.nz [202.37.163.3]) by kakapo.pinnacle.co.nz (8.8.8/8.8.8) with ESMTP id JAA20396; Wed, 4 Mar 1998 09:05:11 +1300 (NZDT) Received: from localhost (jonc@localhost) by tui.pinnacle.co.nz (8.8.8/8.8.8) with SMTP id JAA07690; Wed, 4 Mar 1998 09:05:10 +1300 (NZDT) X-Authentication-Warning: tui.pinnacle.co.nz: jonc owned process doing -bs Date: Wed, 4 Mar 1998 09:05:10 +1300 (NZDT) From: Jonathan Chen To: Narayanan Iyer - MPG SLV cc: questions@FreeBSD.ORG Subject: Re: Memory Usage/Allocation In-Reply-To: <9803031858.AA07869@frx016> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 3 Mar 1998, Narayanan Iyer - MPG SLV wrote: > Hello > > I having some difficulty with FreeBSD 2.2.5 with respect > to memory allocation by processes. > > Example: > > a 7MB C file compiles when run as root. However, > results in "cpp:memory exhausted" when run as a > user. > > The complete executable is 49MB in size but even > when run as root generates "out of memory". You would have to check /etc/login.conf, which controls user resources. The man page is somewhat turgid, but the file itself is pretty easy to understand. If you want to allocate login classes against different types of users, you can do this with vipw(1), changing the 5th field in the passwd file. +-- | Jonathan Chen | --+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message