I am currently working on an EC2 instance on AWS with EBS volume and I got an alert because I have constant I/O consumption even when server is idling.
the iotop command shows:
TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND
160 be/3 root 0.00 B 27.58 M 0.00 % 0.06 % [jbd2/xvda1-8]
10016 be/4 root 0.00 B 0.00 B 0.00 % 0.00 % [flush-202:1]
10014 be/4 postgres 0.00 B 947.35 M 0.00 % 0.00 % postgres: stats collector process
534 be/4 root 0.00 B 136.00 K 0.00 % 0.00 % dhclient3 -e IF_METRIC=100 -pf /var/run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -1 eth0
The postgresql run with postgis extension, the database is almost empty, so I really don't know why it is constantly collecting stats, sometimes there is also a postgres writting process. Another thing is the Jbd2 (ext4 journal) process which also constantly using I/O