Showing posts with label Linux monitoring. Show all posts
Showing posts with label Linux monitoring. Show all posts

Tuesday, March 3, 2009

System calls analysys tool

strace -cp 18875

% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 77.61    0.019695           0    782458       read
 12.31    0.003123           0      9456        write
  3.60    0.000913           0     47291        fcntl64
  3.32    0.000843           0      9463         open
  1.34    0.000341           0     18920        close
  1.27    0.000323           0     18914        dup2
  0.55    0.000140           0      9457         rt_sigprocmask
  0.00    0.000000           0         6           fstat64
  0.00    0.000000           0        12          getdents64
------ ----------- ----------- --------- --------- ----------------
100.00    0.025378                895977           total


Tuesday, December 23, 2008

vmstat

vmstat

Report virtual memory statistics

SYNOPSIS

vmstat [-n] [delay [ count]]
vmstat[-V]

vmstat reports information about processes, memory, paging, block IO, traps, and cpu activity.

The first report produced gives averages since the last reboot. Additional reports give information on a sampling period of length delay. The process and memory reports are instantaneous in either case.


[root@]# vmstat 1
procs memory swap io system cpu
r b w swpd free buff cache si so bi bo in cs us sy id
0 0 0 6085936 91884 1707572 1333604 48 50 70 73 46 7 1 1 23
0 0 0 6085936 88464 1707608 1335120 0 0 1374 49 2750 1784 0 0 100
0 0 0 6085936 88048 1707660 1335952 0 0 753 913 2532 1883 0 0 100
0 0 0 6085936 87632 1707824 1337460 0 0 1282 908 2452 2054 0 0 100