File: README.solaris

package info (click to toggle)
libproc-processtable-perl 0.51-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 520 kB
  • ctags: 602
  • sloc: ansic: 4,142; perl: 378; makefile: 15
file content (39 lines) | stat: -rw-r--r-- 1,401 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
SUPPORTED ATTRIBUTES
====================
  uid         UID of process
  gid         GID of process
  euid        effective UID of process
  egid        effective GID of process
  pid         process ID
  ppid        parent process ID
  pgrp        process group
  sess        session ID
  priority    priority of process
  ttynum      tty number of process
  flags       flags of process
  time        user + system time                 
  ctime       child user + system time
  size        virtual memory size (bytes)
  rss         resident set size (bytes)
  wchan       address of current system call 
  fname       file name
  start       start time (seconds since the epoch)
  pctcpu      percent cpu used since process started
  state       state of process
  pctmem      percent memory
  cmndline    full command line of process
  ttydev      path of process's tty

Thread
======
One can enable thread support by adding -DPROCESSTABLE_THREAD to the DEFINE line in Makefile.PL.
Once this is done, one can invoke Proc::ProcessTable module from multiple threads within the
same process.

BUGS
====
There is an 80-character limit for the cmndline field; this is a
limitation of the Solaris proc filesystem (at least up to Solaris
2.7). The only way to get at commandlines longer than that is to read
/dev/kmem, which would be a major pain. Hopefully sun will fix this at
some point in the future.