Professional Documents
Culture Documents
LWPs can make system calls and can block while waiting for resources. All LWPs in a
process share a common address space. IPC (interprocess communication) facilities exist
for coordinating access to shared resources.
LWPs contain the following information in their data structure:
By default, one LWP is assigned to each process; additional LWPs are created if all the
process's LWPs are sleeping and there are additional user threads that libthread can
schedule. The programmer can specify that threads are bound to LWPs.
Lightweight process information for a process can be examined with ps -elcL.
User Threads
User threads are scheduled on their LWPs via a scheduler in libthread. This scheduler
does implement priorities, but does not implement time slicing. If time slicing is desired,
it must be programmed in.
Locking issues must also be carefully considered by the programmer in order to prevent
several threads from blocking on a single resource.
User threads are also responsible for handling of SIGSEGV (segmentation violation)
signals, since the kernel does not keep track of user thread stacks.
Each thread has the following characteristics:
Priorities
The following command reports the five most active process of oracrp4s
kthr: Report the number of kernel threads in each of the three following states:
r in run queue
b blocked for resources I/O, paging, and so forth
w swapped
page reclaims - but see the -S option for how this field is modified.
minor faults - but see the -S option for how this field is modified.
kilobytes paged in
kilobytes paged out
kilobytes freed
anticipated short-term memory shortfall (Kbytes)
pages scanned by clock algorithm
V Command: sar 1 5
System activity reporter:
Reports activity after every 1 second 5 times and gives the average.
%usr: portion of time running in user mode
%sys: portion of time running in system mode
%wio: idle with some process waiting for block I/O
%idle: idle.
VI Command: psrinfo
Shows the status of the processors and the time since when the processors are online.
VII Command: prtconf
Used to check the total memory and other configurations of the server:
The second line shows the total memory installed in the computer in Megabytes.
Processor Temperatures: