From owner-freebsd-questions@FreeBSD.ORG Thu May 20 15:26:50 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBB31106564A for ; Thu, 20 May 2010 15:26:50 +0000 (UTC) (envelope-from Vikash.Badal@is.co.za) Received: from phobytor.is.co.za (phobytor.is.co.za [196.4.160.171]) by mx1.freebsd.org (Postfix) with ESMTP id F38D28FC18 for ; Thu, 20 May 2010 15:26:49 +0000 (UTC) Received: from phobytor.is.co.za (localhost [127.0.0.1]) by phobytor.is.co.za (Postfix) with ESMTP id A614B3BAC31 for ; Thu, 20 May 2010 17:26:47 +0200 (SAST) Received: from rs-beta.mfw.is.co.za (rs-beta.mfw.is.co.za [196.26.2.114]) by phobytor.is.co.za (Postfix) with ESMTP id 6DE3E3BAB83 for ; Thu, 20 May 2010 17:26:47 +0200 (SAST) Received: from root by rs-beta.mfw.is.co.za with local (Exim 4.69) (envelope-from ) id 1OF6v5-000HuE-0S for freebsd-questions@freebsd.org; Thu, 20 May 2010 16:40:19 +0200 Received: from exim by rs-beta.mfw.is.co.za with split (Exim 4.69) (envelope-from ) id 1OF6ux-000Htw-9p for freebsd-questions@freebsd.org; Thu, 20 May 2010 16:40:11 +0200 Received: from [196.26.2.106] (helo=ZABRYSVISMFW) by rs-beta.mfw.is.co.za with esmtp (Exim 4.69) (envelope-from ) id 1OF6ux-000Htt-8b for freebsd-questions@freebsd.org; Thu, 20 May 2010 16:40:11 +0200 Received: from zabrysvisexhub3.af.didata.local (Not Verified[10.1.8.38]) by ZABRYSVISMFW with MailMarshal (v6,5,4,7535) id ; Thu, 20 May 2010 17:26:45 +0200 Received: from ZABRYSVISEXMBX1.af.didata.local ([fe80::914a:a14c:13c1:d279]) by zabrysvisexhub3.af.didata.local ([fe80::9023:67c3:e2b7:a5ba%10]) with mapi; Thu, 20 May 2010 17:26:04 +0200 From: Vikash Badal To: "freebsd-questions@freebsd.org" Date: Thu, 20 May 2010 17:26:32 +0200 Thread-Topic: increasing memory for no root users on freebsd 8.0 Thread-Index: Acr4MNOpslW7izgNTDKwj78fOnCELg== Message-ID: <9B425C841283E0418B1825D40CBCFA613D9E2686EF@ZABRYSVISEXMBX1.af.didata.local> Accept-Language: en-US, en-ZA Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-ZA Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Recipient-Count: 1 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-Virus-Scanned: ClamAV using ClamSMTP Subject: increasing memory for no root users on freebsd 8.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2010 15:26:50 -0000 Can someone assist me with tunning freebsd 8.0 so that I can allocate mor= e memory to a process that is not owned by root or running as root. >From top=20 I get this line before it coredumps. PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND 1161 nntpd 1500 44 0 502M 303M STOP 1:27 0.00% nntpd The server has: real memory =3D 4294967296 (4096 MB) avail memory =3D 3145883648 (3000 MB) /boot/loader.conf kern.maxdsiz=3D"768M" kern.maxssiz=3D"768M" kern.maxtsiz=3D"768M" limits Resource limits (current): =20 cputime infinity secs =20 filesize infinity kB =20 datasize 786432 kB =20 stacksize 786432 kB =20 coredumpsize infinity kB =20 memoryuse infinity kB =20 memorylocked infinity kB =20 maxprocesses 5547 =20 openfiles 11095 =20 sbsize infinity bytes =20 vmemoryuse infinity kB =20 pseudo-terminals infinity =20 swapuse infinity kB according to tuning(7) =20 The kern.dfldsiz and kern.dflssiz tunables set the default soft li= mits =20 for process data and stack size respectively. Processes may incre= ase =20 these up to the hard limits by calling setrlimit(2). The kern.max= dsiz, =20 kern.maxssiz, and kern.maxtsiz tunables set the hard limits for pr= ocess =20 data, stack, and text size respectively; processes may not exceed = these =20 limits. The kern.sgrowsiz tunable controls how much the stack seg= ment =20 will grow when a process needs to allocate more stack. But setting these values in /boot/loader.conf does not seem to solve the = memory limits that I am hitting. Any idea where I'm going wrong ? Thanks Please note: This email and its content are subject to the disclaimer as = displayed at the following link http://www.is.co.za/legal/E-mail+Confiden= tiality+Notice+and+Disclaimer.htm. Should you not have Web access, send a= =20mail to disclaimers@is.co.za and a copy will be emailed to you.