From owner-freebsd-hackers Mon May 25 06:27:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA17405 for freebsd-hackers-outgoing; Mon, 25 May 1998 06:27:24 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from zwei.siemens.at (zwei.siemens.at [193.81.246.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA17086 for ; Mon, 25 May 1998 06:25:35 -0700 (PDT) (envelope-from lada@pc8811.gud.siemens.at) Received: from pc8811.gud.siemens.at (root@[10.1.140.1]) by zwei.siemens.at with ESMTP id PAA29121; Mon, 25 May 1998 15:24:43 +0200 (MET DST) Received: from pc8811.gud.siemens.at (pc8811.gud.siemens.co.at [195.3.22.159]) by pc8811.gud.siemens.at (8.8.8/8.8.8) with ESMTP id PAA20140; Mon, 25 May 1998 15:25:36 +0200 (CEST) (envelope-from lada@pc8811.gud.siemens.at) Message-ID: X-Mailer: XFMail 1.2 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199805212206.RAA29017@am026091.res.ray.com> Date: Mon, 25 May 1998 15:25:36 +0200 (CEST) Organization: Siemens Austria AG From: Marino Ladavac To: "Gregory D. Moncreaff" Subject: RE: limits && /etc/login.conf Cc: hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I take it you are running a more or less default kernel with MAXUSERS set at 10 in config file. Thus, 360 file descriptors is a system wide maximum--no more than that many can exist at any given time. This maximum can be increased either by increasing MAXUSERS and rebuilding a kernel, or by setting the sysctl variables kern.maxfiles and kern.maxfilesperproc during the runtime. Take a look at kernel rebuild and sysctl manpage for the two approaches. FWIF, I'm going the sysctl way because I don't need that many mbufs, but I do need a lot of file descriptors (KDE apps eat fd's for breakfast). /Marino On 21-May-98 Gregory D. Moncreaff wrote: > > I'm trying to write a program that deals with a > couple of thousand descriptors and I'm confused > about how limits is reporting what should be > derived from login.conf. > > Trying a both a "default" and "root" class user, > I've set openfiles-cur/max to 1024 but when I > type `limit` or `limits` it reports 360 as the > openfiles limits. > > When I grep for `openfiles` in /etc/login.conf > I find no occurences of 360. Where did it come > from? > > How/should get/setrlimit work? when I call > getrlimit it reports a max of 360 and cur of 0? > > thanx, > -g > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message ---------------------------------- Marino Ladavac Date: 25-May-98 Time: 15:18:06 ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message