SA-200-S10
System Administration for the Oracle Solaris 10 OS Part 1

Menu

Introduction

Introducing the Oracle Solaris 10 OS Directory Hierarchy

Managing Local Disk Devices

Describing Interface Configurations

Managing USF File Systems

ZFS File System

Performing Mounts and Unmounts

Performing Package Administration

Managing Software Patches

Using Boot PROM Commands

Using the Grand Unified Bootloader (GRUB)

Performing Legacy Boot and Shutdown Procedures

Service Management Facility (SMF)

Performing User Administration

Controlling System Processes

Oracle Solaris 10 Operating System Installation Requirements


Backing Up a Mounted File System With a UFS Snapshot

Performing File System Backups

Performing File System Restores

Controlling System Processes
 

Oracle Documentation

Solaris 10 Common Desktop Environment User Collection Chapter 19 Using Process Manager

Ways to Automatically Execute System Tasks.

prstat (1M)

signal.h (3HEAD)

kill (1)


blogs:

Richard McDougall's Weblog Using prstat to estimate memory slow-downs

other:

From Brendan Gregg's site, this document takes the reader through a examination of Suns' prstat(1M) and the open source top command using dtrace.

The Sun Developers Article written for Solaris 8 but is still a good introduction to the prstat command Topping top in Solaris 8 with prstat

PCP is a script that enables administrators to see what open TCP ports are in use on a Solaris system.

Vic Abell's Home Page, author of Unix administrative tool lsof (for LiSt Open Files) which displays information about files open to Unix processes.


To display various statistics for processes and projects that are currently running on your system, use the prstat command with the -J option:


% prstat -J
          PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP
 21634 jtd      5512K 4848K cpu0    44    0   0:00.00 0.3% prstat/1
   324 root       29M   75M sleep   59    0   0:08.27 0.2% Xsun/1
 15497 jtd        48M   41M sleep   49    0   0:08.26 0.1% adeptedit/1
   328 root     2856K 2600K sleep   58    0   0:00.00 0.0% mibiisa/11
  1979 jtd      1568K 1352K sleep   49    0   0:00.00 0.0% csh/1
  1977 jtd      7256K 5512K sleep   49    0   0:00.00 0.0% dtterm/1
   192 root     3680K 2856K sleep   58    0   0:00.36 0.0% automountd/5
  1845 jtd        24M   22M sleep   49    0   0:00.29 0.0% dtmail/11
  1009 jtd      9864K 8384K sleep   49    0   0:00.59 0.0% dtwm/8
   114 root     1640K  704K sleep   58    0   0:01.16 0.0% in.routed/1
   180 daemon   2704K 1944K sleep   58    0   0:00.00 0.0% statd/4
   145 root     2120K 1520K sleep   58    0   0:00.00 0.0% ypbind/1
   181 root     1864K 1336K sleep   51    0   0:00.00 0.0% lockd/1
   173 root     2584K 2136K sleep   58    0   0:00.00 0.0% inetd/1
   135 root     2960K 1424K sleep    0    0   0:00.00 0.0% keyserv/4
PROJID    NPROC  SIZE   RSS MEMORY      TIME  CPU PROJECT
    10       52  400M  271M    68%   0:11.45 0.4% booksite
     0       35  113M  129M    32%   0:10.46 0.2% system

Total: 87 processes, 205 lwps, load averages: 0.05, 0.02, 0.02

To display various statistics for processes and tasks that are currently running on your system, use the prstat command with the -T option:


% prstat -T
   PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP
 23023 root       26M   20M sleep   59    0   0:03:18 0.6% Xsun/1
 23476 jtd        51M   45M sleep   49    0   0:04:31 0.5% adeptedit/1
 23432 jtd      6928K 5064K sleep   59    0   0:00:00 0.1% dtterm/1
 28959 jtd        26M   18M sleep   49    0   0:00:18 0.0% .netscape.bin/1
 23116 jtd      9232K 8104K sleep   59    0   0:00:27 0.0% dtwm/5
 29010 jtd      5144K 4664K cpu0    59    0   0:00:00 0.0% prstat/1
   200 root     3096K 1024K sleep   59    0   0:00:00 0.0% lpsched/1
   161 root     2120K 1600K sleep   59    0   0:00:00 0.0% lockd/2
   170 root     5888K 4248K sleep   59    0   0:03:10 0.0% automountd/3
   132 root     2120K 1408K sleep   59    0   0:00:00 0.0% ypbind/1
   162 daemon   2504K 1936K sleep   59    0   0:00:00 0.0% statd/2
   146 root     2560K 2008K sleep   59    0   0:00:00 0.0% inetd/1
   122 root     2336K 1264K sleep   59    0   0:00:00 0.0% keyserv/2
   119 root     2336K 1496K sleep   59    0   0:00:02 0.0% rpcbind/1
   104 root     1664K  672K sleep   59    0   0:00:03 0.0% in.rdisc/1
TASKID    NPROC  SIZE   RSS MEMORY      TIME  CPU PROJECT
   222       30  229M  161M    44%   0:05:54 0.6% group.staff
   223        1   26M   20M   5.3%   0:03:18 0.6% group.staff
    12        1   61M   33M   8.9%   0:00:31 0.0% group.staff
     1       33   85M   53M    14%   0:03:33 0.0% system

Total: 65 processes, 154 lwps, load averages: 0.04, 0.05, 0.06  

The signals currently defined by <signal.h> are as follows:

Name 

Value 

Default 

Event 

SIGHUP

Exit 

Hangup (see termio(7I))

SIGINT

Exit 

Interrupt (see termio(7I))

SIGQUIT

Core 

Quit (see termio(7I))

SIGILL

Core 

Illegal Instruction 

SIGTRAP

Core 

Trace or Breakpoint Trap 

SIGABRT

Core 

Abort 

SIGEMT

Core 

Emulation Trap 

SIGFPE

Core 

Arithmetic Exception 

SIGKILL

Exit 

Killed 

SIGBUS

10 

Core 

Bus Error 

SIGSEGV

11 

Core 

Segmentation Fault 

SIGSYS

12 

Core 

Bad System Call 

SIGPIPE

13 

Exit 

Broken Pipe 

SIGALRM

14 

Exit 

Alarm Clock 

SIGTERM

15 

Exit 

Terminated 

SIGUSR1

16 

Exit 

User Signal 1 

SIGUSR2

17 

Exit 

User Signal 2 

SIGCHLD

18 

Ignore 

Child Status Changed 

SIGPWR

19 

Ignore 

Power Fail or Restart 

SIGWINCH

20 

Ignore 

Window Size Change 

SIGURG

21 

Ignore 

Urgent Socket Condition 

SIGPOLL

22 

Exit 

Pollable Event (see streamio(7I))

SIGSTOP

23 

Stop 

Stopped (signal) 

SIGTSTP

24 

Stop 

Stopped (user) (see termio(7I))

SIGCONT

25 

Ignore 

Continued 

SIGTTIN

26 

Stop 

Stopped (tty input) (see termio(7I))

SIGTTOU

27 

Stop 

Stopped (tty output) (see termio(7I))

SIGVTALRM

28 

Exit 

Virtual Timer Expired 

SIGPROF

29 

Exit 

Profiling Timer Expired 

SIGXCPU

30 

Core 

CPU time limit exceeded (see getrlimit(2))

SIGXFSZ

31 

Core 

File size limit exceeded (see getrlimit(2))

SIGWAITING

32 

Ignore 

Reserved 

SIGLWP

33 

Ignore 

Reserved 

SIGFREEZE

34 

Ignore 

Check point Freeze 

SIGTHAW

35 

Ignore 

Check point Thaw 

SIGCANCEL

36 

Ignore 

Reserved for threading support 

SIGLOST

37 

Exit 

Resource lost (for example, record–lock lost)  

SIGXRES

38 

Ignore 

Resource control exceeded (see setrctl(2))

SIGJVM1

39 

Ignore 

Reserved for Java Virtual Machine 1 

SIGJVM2

40 

Ignore 

Reserved for Java Virtual Machine 2 

SIGRTMIN

*

Exit 

First real time signal 

(SIGRTMIN+1)

Exit 

Second real time signal 

. . .

 

 

 

(SIGRTMAX-1)

Exit 

Second-to-last real time signal 

SIGRTMAX

*

Exit 

Last real time signal