woensdag 21 juli 2010

AIX : Examining ulimits of running process

Currently, AIX does not allow to examine the ulimits of a running process through the /proc file system. F.e. in Linux this is possible, as shown in the following example:

# cat /proc/4121/limits
LimitSoft LimitHard LimitUnits
Max cpu timeunlimitedunlimitedms
Max file sizeunlimitedunlimitedbytes
Max data sizeunlimitedunlimitedbytes
Max stack size8388608unlimitedbytes
Max core file sizeulimitedunlimitedbytes
Max resident setunlimitedunlimitedbytes
. . .

The only alternative currently available in AIX is to use dbx and attach to the running process, as shown in the following example:

# dbx -a 700464
(dbx) proc rlimit
rlimit namerlimit_currlimit_max(units)
RLIMIT_CPU:(unlimited)(unlimited)sec
RLIMIT_FSIZE:(unlimited)(unlimited)bytes
RLIMIT_DATA:67108864100663296bytes
RLIMIT_STACK:335544324294967296bytes
RLIMIT_CORE:(unlimited)(unlimited)bytes
RLIMIT_RSS:(unlimited)(unlimited)bytes
. . .
(dbx) quit

The only major drawback from this alternative is that dbx interrupts the process by sending a SIGTRAP signal. After the dbx sessions finishes, the process terminates. A Design Change Request was made to address this.

Geen opmerkingen:

Een reactie posten