Thanks to this answer I was able to see the total reads+writes for my apache webserver:
[root@barricade ~]# cat /proc/diskstats | grep sda 8 0 sda 653416 315344 72474412 17441745 4597621 15680121 156902978 282408636 0 80171663 299835582 8 1 sda1 595 245 4696 528 3 0 18 0 0 527 527 8 2 sda2 652661 315089 72468356 17440939 3932716 15680121 156902960 236353355 0 49417302 253779925 If I interpret the number correctly, the disk has done 653.416 reads and.. 4.597.621 writes?!? this webserver basically serves HTML pages (PHP+MySQL) it's impossible that is generating more writes than reads?
What am I misunderstanding?
Edit: iostat seems to confirm this... still, I'm puzzled...
[root@barricade ~]# iostat Linux 2.6.32-431.20.3.el6.x86_64 (barricade.zane.it) 08/08/2014 _x86_64_ (4 CPU) avg-cpu: %user %nice %system %iowait %steal %idle 3,45 0,00 0,82 2,58 0,00 93,15 Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn sda 5,29 72,99 158,06 72474540 156951762 dm-0 13,36 7,07 104,99 7018170 104254024 dm-1 0,35 1,84 0,96 1828536 956040 dm-2 7,03 64,07 52,11 63621098 51741680