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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Since this system is a 4-way SMP, the overall CPU usage is only 25 percent. To<br />

analyze what is actually happening on this system, use the trace facility. Notice<br />

that the process ID of aixterm is 19436.<br />

This aixterm command process seems to wait continuously; therefore, the<br />

tracing time is limited to one second.<br />

Using the following command sequence, all system events for one second are<br />

traced:<br />

# trace -a; sleep 1; trcstop<br />

It is not known what the aixterm process is doing since no event hook IDs can be<br />

specified at this point. The trace generates a raw trace file of the following size:<br />

# ls -l /var/adm/ras/trcfile<br />

-rw-rw-rw- 1 root system 557152 Jul 17 14:27 /var/adm/ras/trcfile<br />

Based on this file, a trace report can be generated with trcrpt. Since the<br />

process ID is known, you can use this information as a filter and limit the output<br />

of the report using the following commands:<br />

# trcrpt -p 19436 > /tmp/trace.out<br />

# ls -l /tmp/trace.out<br />

-rw-r--r-- 1 root system 201014 Jul 17 14:31 /tmp/trace.out<br />

The contents of the trace report is provided in the following example as an<br />

extracted part of the complete report (limited due to space constraints):<br />

Mon Jul 17 14:27:27 2000<br />

System: <strong>AIX</strong> server1 Node: 4<br />

Machine: 000BC6FD4C00<br />

Internet Address: 0903F038 9.3.240.56<br />

The system contains 4 cpus, of which 4 were traced.<br />

Buffering: Kernel Heap<br />

This is from a 32-bit kernel.<br />

trace -a<br />

ID ELAPSED_SEC DELTA_MSEC APPL SYSCALL KERNEL INTERRUPT<br />

100 0.004256674 4.256674 DECREMENTER<br />

INTERRUPT iar=D031EB<br />

60 cpuid=FFFFFFFF<br />

234 0.004258505 0.001831 clock: iar=D031EB60<br />

lr=D036CA24 [2503<br />

usec]<br />

112 0.004260143 0.001638 lock: lock lock<br />

addr=352118 loc<br />

k status=10000001 requested_mode=LOCK_READ return addr=2D80C name=0000.0000<br />

Chapter 9. System access and printer problem determination 215

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

Saved successfully!

Ooh no, something went wrong!