3

I just got a mail from Linode saying that my account "has exceeded the notification threshold (1000) for disk io rate by averaging 1017.36 for the last 2 hours. "

My question is just out of curious: From the literal meaning, disk io rate must mean the rate of read/write to the server's disk. But because I've never got any notification like this during the past few years, I am interested in knowing what has caused this and what it has to do with my website.

Does pageview generate disk i/o? Does download generat disk i/o? Or only literally copying or creation of files generate it? And is it related to my website's overall performance and popularity?

I just want a brief introcution so I can research further by myself, detailed explanation is appreciated but not necessary.

shenkwen
  • 197
  • 2
  • 12
  • 3
    Why is it easier to ask here rather than going direct to Linode ? – user9517 Mar 10 '16 at 17:14
  • uhh... because I love SE? – shenkwen Mar 10 '16 at 20:04
  • Check to see if you're getting a lot of SSH login attempts by running `lastb` - this was causing additional IO load for me. After changing to a non-standard port on the server, the IO dropped. (And so did the hacking attempts.) – shootz Jun 20 '17 at 16:10

2 Answers2

3

Those messages you get from Linode are not warnings - they're in response to user-configurable thresholds for resource utilization. While these notifications do not necessarily mean that anything is wrong on your VM or that you need to change anything, a sudden increase in IO/CPU/etc. can be indicative of something going awry, so you'll need to dig into your logs to make sure that you can identify the source of the additional IO load.

Regarding your larger questions about IO: anything that touches the disk (either reads or writes) is considered IO. Page views will surely cause IO from writing log files, but it's likely that the php/mysql data needed to build the pageview are already cached in RAM, so they won't necessarily cause IO.

EEAA
  • 108,414
  • 18
  • 172
  • 242
  • > Page views will surely cause IO from writing log files, - yes, but not "A page view" as log files are going to be buffered. – TomTom Jun 20 '17 at 17:05
0

Any read or write operation generates IO. As does swapping. Do free -m to see if you are using swap, if you are get more RAM or reduce your RAM usage. Also page loads read from the disk, so yes it generates IO, a good work around is to use memcached.