磁盘IO
#!/bin/sh
CURRENT_DIR=$(
cd $(dirname $0)
pwd
)
PIDFILE="$CURRENT_DIR/disk.pid"
iostat -x -k -d 1 1>>io-disk.log &
pidstat -d 1 1>>io-thread.log &
pid=$!
echo $pid >$PIDFILE
echo 'io-logs started !'
网络IO
nohup dstat -t -n -N eth0 --output dstat.svc
标签:log,记录,pid,信息,echo,io,disk,DIR
From: https://www.cnblogs.com/xwjh/p/17141696.html