Subject: Re: re-limit?
To: None <mcmahill@mtl.mit.edu>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 04/18/2000 18:37:08
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.

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--