|
sar - Collect, report, or save system activity information.
sadf - display collected data with various formats. do Excela!
sar -[RESSOURCE] interval count
sar -f /var/log/sa/saxx
sar -A - raport o wszystkim
sar -A 3 5 - co 3 sekundy sprawdzi, pokaze lacznie 5 wynikow
sar -o - tworzy output file
/var/log/sa
RESSOURCE:
DYSK -b Report I/O and transfer rate statistics
DYSK -B Report paging statistics.
BLOCK DEVICE -d Report activity for each block device
lista urządzeń - -j { ID | LABEL | PATH | UUID | ... }. Display persistent device names
POWER -m Report power management statistics
NETWORK -n Report network statistics.
PROCESSORS -p Report per-processor statistics for the specified processor
-u [ ALL ] Report CPU utilization.
TASKS QUEQUES - -q Report queue length and load averages
-w Report task creation and system switching activity
MEMORY -r Report memory utilization statistics. / -R Report memory statistics
SWAP -S Report swap space utilization statistics.
-W Report swapping statistics. The following values are displayed:
FILES -v Report status of inode, file and other kernel tables.
TERMINAL -y Report TTY device activity
pidstat - procesy, wątki, children
pidstat interval count
pidstat -C komenda
pidstat -l - wyswietli razem z komenda
-t Also display statistics for threads associated with selected tasks
-T { TASK | CHILD | ALL }
troubleshooting:
- serwer ntp defaultowo sie wylacza, jezeli ma duze opoznienie
- na podstawie offset i jitter serwer ntp oblicza pooling interval (co ile odpytuje inne serwery)
- im wiekszy pool, tym serwer rzadziej odpytuje - tym lepiej
- ntpd -d albo ntpd -D 100 - poziom debugowania
iostat - Report Central Processing Unit (CPU) statistics and input/output statistics for devices, partitions and net-
work filesystems (NFS).
The iostat command generates three types of reports:
the CPU Utilization report, the Device Utilization report the
Network Filesystem report.
-c Display the CPU utilization report.
-d Display the device utilization report.
-h Make the NFS report displayed by option -n easier to read by a human.
-x extended
FILES
/proc/stat contains system statistics.
/proc/uptime contains system uptime.
/proc/partitions contains disk statistics (for pre 2.5 kernels that have been patched).
/proc/diskstats contains disks statistics (for post 2.5 kernels).
/sys contains statistics for block devices (post 2.5 kernels).
/proc/self/mountstats contains statistics for network filesystems.
/dev/disk contains persistent device names.
mpstat - Report processors related statistics. The mpstat command writes to standard output activities for each available processor,
processor 0 being the first one.
/etc/sysconfig/sysstat - plik konfiguracyjny dla sar
nfsiostat - Emulate iostat for NFS mount points using /proc/self/mountstats
/proc/self/mountstats
nfsstat
nfsstat - list NFS statistics
FILES
/proc/net/rpc/nfsd
procfs-based interface to kernel NFS server statistics.
/proc/net/rpc/nfs
procfs-based interface to kernel NFS client statistics.
/proc/mounts
procfs-based interface to the mounted filesystems.
color: #146b9d;
|