Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Apr 02, 2011 7:30 pm 
Offline
Newbie

Joined: Sat Apr 02, 2011 7:01 pm
Posts: 3
i've recently been getting lots of disk io rate notifications in email. i looked at the 24 hour graph and found a cyclical pattern. i then looked at the 30d graph and found a scarier thing: the average io rate has been trending upward linearly the entire month.

i ran iotop -a -o -t -b | tee output.txt for a couple of hours, and the only thing out of the ordinary was kjournald. while i run a web server on this linode, there weren't any appreciable web requests to speak of.

even though kjournald was an outlier, it was only 60MB of disk io. i used vmstat simultaneously to try and line up the time of the disk io to the process that was causing it. the only thing i could find was that a spike in IO happened exactly 22 minutes apart. here are a few lines of vmstat output around the spike. the bo column always has upwards of 37000 blocks out, then another smaller line, and then yet smaller but noticeable couple of lines afterwards. you can also see the context switch column go wild.

are there tools i can use to determine the process that is running every 22 minutes in this way? is there a simple script i could write that monitors /proc in some way? i looked through user's crontabs and did not find anything in them. there are only a few users in the system (really just myself and some fake users for projects i am working on).

Code:
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
0  0  37156  33912  49288 325860    0    0     0     2   97   56  0  0 100  0
 0  0  37156  33912  49288 325868    0    0     0     9   99   58  0  0 100  0
 1  0  37156  30392  49300 327688    0    0    28 35730 16746 13233  3  3 82 12
 0  0  37156  32664  49292 326312    0    0     1 22774 10248 8391  2  2 85 11
 0  0  37156  32904  49292 326324    0    0     0     8  106   59  0  0 100  0
 0  0  37156  33036  49292 326336    0    0     0   448  147   59  0  0 100  0
 0  0  37156  33036  49292 326348    0    0     0     3  109   57  0  0 100  0

_________________
~s


Top
   
 Post subject:
PostPosted: Sat Apr 02, 2011 10:56 pm 
Offline
Senior Newbie

Joined: Wed Mar 23, 2011 9:42 pm
Posts: 11
Website: http://www.niden.net
Location: Charles Town, WV
Just a thought: How about cron jobs from software? For instance if you are running a vBulletin forum, they implement their own cron tasks based on traffic. 22 minutes could very well be that or something similar.

_________________
W: niden.net
T: nikosdimopoulos


Top
   
 Post subject:
PostPosted: Sun Apr 03, 2011 5:24 pm 
Offline
Newbie

Joined: Sat Apr 02, 2011 7:01 pm
Posts: 3
i tried looking at all cron jobs for all users and didn't find any. are you suggesting there is another place i should be looking for cron jobs?
[/b]

_________________
~s


Top
   
 Post subject:
PostPosted: Sun Apr 03, 2011 5:52 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
/etc/cron.d/

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Sun Apr 03, 2011 6:16 pm 
Offline
Senior Newbie

Joined: Wed Mar 23, 2011 9:42 pm
Posts: 11
Website: http://www.niden.net
Location: Charles Town, WV
shaheen wrote:
i tried looking at all cron jobs for all users and didn't find any. are you suggesting there is another place i should be looking for cron jobs?
[/b]


I was suggesting pseudo cron jobs. Cron jobs that are triggered by software and not by the actual cron tasks of the server. If you have for instance forum software on your server (say vBulletin, xenForo etc.) that has frequent visits per hour, some of the tasks that make that software run will be run from within the software and triggered by users/guests visits to that particular site/software.

I hope that helps.

_________________
W: niden.net

T: nikosdimopoulos


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group