Subject: Re: re-limit?
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Simon Burge <simonb@netbsd.org>
List: netbsd-help
Date: 04/19/2000 10:53:39
Manuel Bouyer wrote:

> On Tue, Apr 18, 2000 at 09:31:31AM -0400, mcmahill@mtl.mit.edu wrote:
> > 
> > 
> > Is there a way to change the memory limits on an already running job?  Ie,
> > I should have done 'unlimit datasize' _before_ starting this job, but its
> > now 2 days into it and I don't want to stop it and start over.  
> 
> If it's current you can use sysctl:
> sysctl -w proc.<pid>.rlimit.datasize.soft=<the number you want>
> 
> where <pid> is the PID of the process and <the number you want> can be, for
> example, the result of
> sysctl proc.<pid>.rlimit.datasize.hard
> 
> see sysctl(8) and sysctl(3) for details.

Hmm, that's easier than writing kernel memory :-)

Simon.