Hi! > This patch against 2.6.11-rc1-bk6 adds /proc/<pid>/rlimit to export > per-process resource limit settings. It was written to help analyze > daemon core dump size settings, but may be more generally useful. > Tested on 2.6.10. Sample output: > > [EMAIL PROTECTED] ~ # cat /proc/__/rlimit > cpu unlimited unlimited > fsize unlimited unlimited > data unlimited unlimited > stack 8388608 unlimited > core 0 unlimited > rss unlimited unlimited > nproc 111 111 > nofile 1024 1024 > memlock 32768 32768 > as unlimited unlimited > locks unlimited unlimited > sigpending 1024 1024 > msgqueue 819200 819200 > > Feedback welcome.
It would be nice if you could make it "value-per-file". That way, it could become writable in future. If "max nice level" ever becomes rlimit, this would be very usefull. Pavel -- 64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/