21.02.2013 Views

AIX 5L Problem Determination - IBM Redbooks

AIX 5L Problem Determination - IBM Redbooks

AIX 5L Problem Determination - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

files are read-only, but some of them can also be written to and be used for<br />

process control purposes.<br />

The ownership of the files in the /proc file system is the same as for the<br />

processes they represent. Therefore, regular users can only access /proc files<br />

that belong to their own processes. For example, a process is waiting for<br />

standard input. When you look at an active process, a lot of the information<br />

would constantly change:<br />

# errpt -a|more<br />

.....<br />

.....<br />

# ps -ef|grep errpt<br />

root 12586 17594 1 16:53:00 pts/3 0:00 grep errpt<br />

root 22214 8882 0 16:49:39 pts/1 0:00 errpt -a<br />

# ls -al /proc/22214<br />

total 0<br />

dr-xr-xr-x 1 root system 0 Sep 17 16:56 .<br />

dr-xr-xr-x 1 root system 0 Sep 17 16:56 ..<br />

-rw------- 1 root system 0 Sep 17 16:56 as<br />

-r-------- 1 root system 128 Sep 17 16:56 cred<br />

--w------- 1 root system 0 Sep 17 16:56 ctl<br />

dr-xr-xr-x 1 root system 0 Sep 17 16:56 lwp<br />

-r-------- 1 root system 0 Sep 17 16:56 map<br />

dr-x------ 1 root system 0 Sep 17 16:56 object<br />

-r--r--r-- 1 root system 448 Sep 17 16:56 psinfo<br />

-r-------- 1 root system 1024 Sep 17 16:56 sigact<br />

-r-------- 1 root system 1520 Sep 17 16:56 status<br />

-r--r--r-- 1 root system 0 Sep 17 16:56 sysent<br />

Table 7-2 provides the functions of the pseudo files listed in the previous output.<br />

Table 7-2 Functions of pseudo files in /proc/ directory<br />

Pseudo file name Function<br />

as Read/write access to address space<br />

cred Credentials<br />

ctl Write access to control process, for example, stop or resume<br />

lwp directory Kernel thread information<br />

map Virtual address map<br />

object directory Map file names<br />

psinfo Information for the ps command; readable by everyone<br />

sigact Signal status<br />

Chapter 7. LVM, file system, and disk problem determination 163

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!