====== vmstat コマンド ====== ===== インストール ===== # opkg update && opkg install procps-ng-vmstat Downloading https://fw.gl-inet.com/releases/kmod-3.2/ar71xx/nand/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_core Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/sync_kmod-3.2/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_sync Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/base/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_base Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/gli_pub/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_gli_pub Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/packages/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_packages Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/luci/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_luci Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/routing/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_routing Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/telephony/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_telephony Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/glinet/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_glinet ifstat - 1.1-1 - ifstat is a tool to report network interfaces bandwidth just like vmstat/iostat do for other system counters. It can monitor local interfaces by polling the kernel counters, or remote hosts interfaces using SNMP. procps-ng-vmstat - 3.3.11-4 - Installs the applet vmstat. root@TomoyanWRT-GL:~# opkg update && opkg install procps-ng-vmstat Downloading https://fw.gl-inet.com/releases/kmod-3.2/ar71xx/nand/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_core Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/sync_kmod-3.2/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_sync Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/base/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_base Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/gli_pub/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_gli_pub Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/packages/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_packages Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/luci/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_luci Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/routing/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_routing Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/telephony/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_telephony Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/glinet/Packages.gz Updated list of available packages in /var/opkg-lists/glinet_glinet Installing procps-ng-vmstat (3.3.11-4) to root... Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/packages/procps-ng-vmstat_3.3.11-4_mips_24kc.ipk Installing terminfo (6.1-1) to root... Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/base/terminfo_6.1-1_mips_24kc.ipk Installing libncurses (6.1-1) to root... Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/base/libncurses_6.1-1_mips_24kc.ipk Installing procps-ng (3.3.11-4) to root... Downloading https://fw.gl-inet.com/releases/packages-3.x/ar71xx/packages/procps-ng_3.3.11-4_mips_24kc.ipk Configuring terminfo. Configuring libncurses. Configuring procps-ng. Configuring procps-ng-vmstat. ===== 動作確認 ===== # vmstat --help Usage: vmstat [options] [delay [count]] Options: -a, --active active/inactive memory -f, --forks number of forks since boot -m, --slabs slabinfo -n, --one-header do not redisplay header -s, --stats event counter statistics -d, --disk disk statistics -D, --disk-sum summarize disk statistics -p, --partition partition specific statistics -S, --unit define display unit -w, --wide wide output -t, --timestamp show timestamp -h, --help display this help and exit -V, --version output version information and exit For more details see vmstat(8). ===== 実行例 ===== # vmstat 1 procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 0 0 0 21728 5404 58020 0 0 0 0 7 21 9 20 70 1 0 0 0 0 21476 5404 58276 0 0 0 0 589 431 3 7 90 0 0 0 0 0 21188 5404 58468 0 0 0 0 494 402 3 13 83 1 0 ===== 参考文献 ===== [[https://qiita.com/kunihirotanaka/items/21194f77713aa0663e3b|LinuxのI/OやCPUの負荷とロードアベレージの関係を詳しく見てみる - Qiita]]\\