Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Dec 1998 06:55:13 +0100 (CET)
From:      List User <listuser@netspace.net.au>
To:        freebsd-questions@FreeBSD.ORG
Message-ID:  <199812140555.GAA08385@doorway.home.lan>

next in thread | raw e-mail | index | archive | help
Newsgroups: freebsd.questions
Path: root
From: Sue Blake <sue@welearn.com.au>
Subject: Re: cannot fork
Content-Type: text/plain; charset=us-ascii
Received: (from sue@localhost)
	by phoenix.welearn.com.au (8.9.1/8.9.0) id MAA09302;
	Mon, 14 Dec 1998 12:57:57 +1100 (EST)
To: Ben Smithurst <ben>
Sender: owner-freebsd-questions@FreeBSD.ORG
Organization: Private News Host
Precedence: bulk
Message-ID: <19981214125752.03927@welearn.com.au>
X-Mailer: Mutt 0.88e
References: <19981213211314.57505@welearn.com.au> <19981213145942.D10841@scientia.demon.co.uk> <19981214070131.32240@welearn.com.au> <19981213204136.A17472@scientia.demon.co.uk>
Delivered-To: vmailer-questions@freebsd.org
X-Uidl: fa8cdf5af15aa68883184de1c620dd60
X-Loop: FreeBSD.ORG
Mime-Version: 1.0
In-Reply-To: <19981213204136.A17472@scientia.demon.co.uk>; from Ben Smithurst on Sun, Dec 13, 1998 at 08:41:36PM +0000
Cc: freebsd-questions
Date: Mon, 14 Dec 1998 01:57:52 GMT

On Sun, Dec 13, 1998 at 08:41:36PM +0000, Ben Smithurst wrote:
> Sue Blake wrote:
> 
> > Thanks Ben, it sounds like you're on the right track here even though
> > I understand ver little of what you've said.  Could you translate some
> > of it into "do this" style?
> >
> > I get that 'limits' is a command I can type, and it comes back with
> > maxprocesses-cur 64
> 
> What does
> 
> $ sysctl kern.maxproc
> 
> show? That's the system wide limit, which may be higher than your user
> limit. I'm guessing that while you're running X you could easily get 64
> processes. (`ps ax | wc -l' will tell you how many procs you have, near
> enough anyway.)

When I was supposed to be limited to 64 processes, I couldn't run more
than about 44 as shown with ps. Not a problem though. There must be a
few things going on that ps (as I'm using it) doesn't show.

> If kern.maxproc is a lot higher than 64, you can probably just alter
> some settings in /etc/login.conf to increase the per-user limits
> (following the instructions at the top of login.conf about rebuilding
> the database). To find out which class you are in, do `limits -U sue',
> or something:
> 
> $ limits -U ben
> Resource limits for class staff:
> 
> shows I'm in the `staff' class. You can change your class if needed
> using vipw, it's the fifth field along (which may well be blank, and can
> safely be left blank).

I was in default class. There's an xuser class but its 48 processes
seems a bit lean. As an experiment, I made another class:

sueclass:\
         :maxproc-cur=100:\
         :tc=default:

and did the "don't forget to" database thing like the file said, also
added myself to that class with vipw, then took a fresh login as my
humble self.

Now ps shows me 76 processes before I'm grounded, instead of 44.

That'll do fine, and I know how to change it and why :-)

> If kern.maxproc isn't much higher, rebuild your kernel,
> replacing the maxusers line in the kernel config file with
> 
> maxusers	64
> 
> or some such value. Reboot, check kern.maxproc and your limits, and see
> if things are working better.

Not necessary immediately, but that change is now ready for the
kernel rebuild in case I need to go much higher.

Thanks much for the full instructions!
I hope others who need this detail find it too.

-- 

Regards,
        -*Sue*-


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



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