[SLL] determine current limits for running process?
Jeremy C. Reed
reed at reedmedia.net
Thu Sep 11 07:29:30 PDT 2008
How can I find out the current resource limits for a running process?
I tried looking under my /proc file system per a PID but didn't see what I
am looking for?
I tried on 2.6.16.13 but need to know how on 2.4.21 kernel.
This is how I do it on NetBSD:
$ sudo sysctl proc.114.rlimit.descriptors
proc.114.rlimit.descriptors.soft = 64
proc.114.rlimit.descriptors.hard = 1772
Any clues for Linux would be great.
I already know how to run limit or ulimit -a in a shell to see what its
limits are, but I am also looking at already running processes that do
have capability to attempt to change their own resource limits.
More information about the linux-list
mailing list