Webシステム開発の雑多なアウトプット

AWS、プログラム、OSS等を中心に良かった本も。

sarコマンドの見方

分類内容項目詳細
CPUCPU の利用状況CPUCPU番号 ※-u ではALL(全CPUの平均値)のみ出現
%userユーザ・モード状態であった割合
%nice優先度が通常より低いユーザ・モード状態での使用割合
%systemシステム・モード状態であった割合
%iowaitCPUが ディスクI/Oの待機によりアイドル状態であった割合
%idleその他の場合のアイドル状態であった割合
QUEUECPU実行待ち行列状況runq-sz実行待ちプロセスキュー(待ち行列)の長さ
plist-szNumber of processes in the process list.
ldavg-1過去1分間のキュー長
ldavg-5過去5分間のキュー長
ldavg-15過去15分間のキュー長
DISKブロック・デバイス動作DEV論理デバイス
tps1秒間あたりのデバイスに対するI/O数
rd_sec/s1秒間あたりのデバイスからの読込みセクタ数: 1セクタは512バイト
wr_sec/s1秒間あたりのデバイスに対する書込みセクタ数: 1セクタは512バイト
sect/s1秒間あたりのデバイスに対するI/Oセクタ数: 1セクタは512バイト
DISK-oldブロック・デバイス動作(旧)tps1秒間あたりのデバイスに対するI/O数
rtps1秒間あたりのデバイスに対する読込み要求数
wtps1秒間あたりのデバイスに対する書込み要求数
bread/s1秒間あたりのデバイスからの読込みブロック数:ブロックサイズは512バイト(カーネル2.4以上の場合[古いカーネル不定])
bwrtn/s1秒間あたりのデバイスに対する書込みブロック数
SWAPスワップ動作pswpin/s1秒間あたりのスワップインしたページ数
pswpout/s1秒間あたりのスワップアウトしたページ数
SWITCHスイッチ動作cswch/s1秒間あたりのコンテキストスイッチ回数
MEMORY
and
SWAP
メモリ/スワップ状況kbmemfree空きメモリサイズ:単位はKB
kbmemused物理メモリ使用サイズ(カーネル使用分は除く):単位はKB
%memusedメモリ使用率
kbmemshrd共有メモリとして使用されているメモリサイズ。カーネル2.4では常に0:単位はKB
kbbuffersカーネルがバッファとして使用しているメモリサイズ: 単位はKB
kbcachedキャッシュとして使用されているメモリサイズ: 単位はKB
kbswpfree空きスワップ領域サイズ:単位はKB
kbswpusedスワップ領域使用サイズ:単位はKB
%swpusedCPU番号 ※-u ではALL(全CPUの平均値)のみ出現
kbswpcadスワップ領域使用サイズ:単位はKB
MEMORYメモリ割当て動作frmpg/s1秒間あたりのシステムによって解放されたメモリページ数: 負の値はシステムによる割当てを意味する。ページサイズは4KB or 8KB(アーキテクチャ依存)
shmpg/sNumber of additionnal memory pages shared by the system per second. A negative value means fewer pages shared by the system.
bufpg/sNumber of additional memory pages used as buffers by the system per second. A negative value means fewer pages used as buffers by the system.
campg/sNumber of additional memory pages cached by the system per second. A negative value means fewer pages in the cache.
PAGEページング動作pgpgin/s1秒間あたりのページインサイズ:単位はKB/s
pgpgout/s1秒間あたりのページアウトサイズ:単位はKB/s
fault/sNumber of page faults (major + minor) made by the system per second (post 2.5 kernels only). This is not a count of page faults that generate I/O.
majflt/sNumber of major faults the system has made per second, those which have required loading a memory page from disk (post 2.5 kernels only).
activepgNumber of active (recently touched) pages in memory. Note that a page has a size of 4 kB or 8 kB according to the machine architecture.
inadtypgNumber of inactive dirty (modified or potentially modified) pages in memory.
inaclnpgNumber of inactive clean (not modified) pages in memory.
inatarpg"Inactive target" number of pages. This field is a 1-minute floating average of the number of pages the system needs to "steal" every second in order to satisfy memory demand.
NETWORKネットワーク状況IFACEインタフェース名
rxpck/s1秒間あたりの受信パケット数
txpck/s1秒間あたりの送信パケット数
rxbyt/s1秒間あたりの受信バイト数
txbyt/s1秒間あたりの送信バイト数
rxcmp/sNumber of compressed packets received per second (for cslip etc.).
txcmp/sNumber of compressed packets transmitted per second.
rxmcst/sNumber of multicast packets received per second.
NETWORK-
ERROR
ネットワークエラー状況IFACEインタフェース名
rxerr/s1秒間あたりの受信不良パケット数
txerr/s1秒間あたりの送信エラーパケット数
coll/s1秒間あたりの衝突パケット数
rxdrop/s1秒間あたりのバッファ溢れによる受信パケットドロップ数
txdrop/s1秒間あたりのバッファ溢れによる送信パケットドロップ数
txcarr/sNumber of carrier-errors that happened per second while transmitting packets.
rxfram/sNumber of frame alignment errors that happened per second on received packets.
rxfifo/sNumber of FIFO overrun errors that happened per second on received packets.
txfifo/sNumber of FIFO overrun errors that happened per second on transmitted packets.
SOCKETソケット状況totsck使用中ソケット数
tcpsck使用中TCPソケット数
udpsck使用中UDPソケット数
rawsck使用中RAWソケット数
ip-fragIPフラグメント数
PROCESSプロセス状況proc/s1秒間あたりのプロセス生成数
INODE
and
TABLES
各種テーブル/Iノード状況dentunusdNumber of unused cache entries in the directory cache.
file-szNumber of used file handles.
%file-szPercentage of used file handles with regard to the maximum number of file handles that the Linux kernel can allocate.
inode-szNumber of used inode handlers.
super-szNumber of super block handlers allocated by the kernel.
%super-szPercentage of allocated super block handlers with regard to the maximum number of super block handlers that Linux can allocate.
dquot-szNumber of allocated disk quota entries.
%dquot-szPercentage of allocated disk quota entries with regard to the maximum number of cached disk quota entries that can be allocated.
rtsig-szNumber of queued RT signals.
%rtsig-szPercentage of queued RT signals with regard to the maximum number of RT signals that can be queued.
INTERRUPT割込み状況INTRinterrupt number The SUM keyword indicates that the total number of interrupts
proc/snumber of interrupts received per second is to be displayed
TTYTTYデバイス動作TTYSerial line number
rcvin/sNumber of receive interrupts per second for current serial line.
xmtin/sNumber of transmit interrupts per second for current serial line.