Port-vax archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Clock drift and other open issues: Collecting information



On 2023-12-30 21:14, Mouse wrote:
That's one reason I tend to use sysctl for querying, and sysctl -w
for changing, resource limits.  (The other is that the syntax is
significantly less shell-dependent.)
The problem with that is that you can deal with the hard limits, but
tricky with process limits.  The classic "what commands must be
built-in in a shell".

proc.$$.rlimit (rather than proc.curproc.rlimit) is your friend in that
regard.

Cool. I didn't know you had access to random process rlimits that way. Nice.

The "what commands must be built-in" applies only when there's no
interface that lets a separate process affect the settings for the
shell.  When the interface is setrlimit(), that's so, but with sysctl a
child process _can_ affect the shell's resource limits.

I had missed some details on that one. Thanks.

  Johnny

--
Johnny Billquist                  || "I'm on a bus
                                  ||  on a psychedelic trip
email: bqt%softjar.se@localhost             ||  Reading murder books
pdp is alive!                     ||  tryin' to stay hip" - B. Idol


Home | Main Index | Thread Index | Old Index