Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Debugging io usage
PostPosted: Fri Dec 03, 2010 11:22 am 
Offline
Senior Newbie

Joined: Fri Jan 29, 2010 7:34 am
Posts: 8
Hi,

I've had problems with using up memory and then VM leading to the expected page-thrashing and excessive IO consumption....

I was wondering if anyone on the forum had any suggestions about the best way to track this.

Linode suggested using iotop -o as a quick way of checking. I'm using Debian and used Aptitude to install it, but am getting a couple of errors:

Could not run iotop as some of the requirements are not met:
- Python >= 2.5 for AF_NETLINK support: Found
- Linux >= 2.6.20 with I/O accounting support: Not found

Python tells me it's 2.5.2 (and it says 'Found' above anyway, which is a bit odd as it says that requirement is not met)

But I'm not sure what to do about the Linux problem, as I'm just using one of the standard linux images that Linode provided. Any ideas?

I'm also looking for an elegant way to get my C++ daemon to know when VM is getting thrashed so I can get it to back away......

I'm looking around online and in books, but wondered if there were any quick 2 line nuggets of experience you might be able to share in the meantime.

Best wishes

Peter


Top
   
 Post subject:
PostPosted: Fri Dec 03, 2010 11:56 am 
Offline
Senior Member
User avatar

Joined: Fri Dec 11, 2009 7:09 pm
Posts: 168
I believe you need to go to the dashboard and boot with the latest paravirt kernel, instead of the latest stable.

_________________
--
Chris Bryant


Top
   
 Post subject:
PostPosted: Fri Dec 03, 2010 1:43 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
Chris is correct -- I just tried it out. iotop works on my test Linode with Latest 2.6 Paravirt 2.6.32.16-linode28, but when I reboot with Latest 2.6 Stable 2.6.18.8-linode22 I get your errors.

_________________
/ Peter


Top
   
 Post subject: Thank you
PostPosted: Fri Dec 03, 2010 4:57 pm 
Offline
Senior Newbie

Joined: Fri Jan 29, 2010 7:34 am
Posts: 8
Thanks very much - I'll try that. Always a bit nervous moving to a 'non-stable' kernel on a core production server. The ability to snapshot and revert quickly is quite attractive!

P


Top
   
 Post subject:
PostPosted: Fri Dec 03, 2010 5:14 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
I do believe that the "latest paravirt" kernels are considered stable, but that caker hadn't switched over to them as the default due to the clock drift issue; the paravirt kernels can't see the hardware clock, so the clock drifts.

One solution to this is to install ntp (which is as simple as running "sudo apt-get install ntp-simple" and you're done), which will keep the clock perfectly in sync.

The conundrum is that while the solution is simple and effective (and people should really be running ntp anyhow), it requires customer action. If Linode were to suddenly give everybody paravirtualized kernels, everybody's clock would start drifting and people might not realize that they need to do something to fix it (or how to fix it).

AFAIK, a lot of the newer distros you can deploy with Linode actually require the paravirt kernel anyhow, since the stable one is too out of date.


Top
   
 Post subject:
PostPosted: Fri Dec 03, 2010 7:29 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
I think the base installs linode provide all come with ntp now, I don't remember ever installing it manually.

_________________
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: Fri Dec 03, 2010 8:45 pm 
Offline
Senior Member

Joined: Thu May 21, 2009 3:19 am
Posts: 336
obs wrote:
I think the base installs linode provide all come with ntp now, I don't remember ever installing it manually.


It appears so. Just built a node using Linode's basic LAMP stack script and ntp is installed.


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


Who is online

Users browsing this forum: No registered users and 5 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