Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Jul 20, 2012 2:34 pm 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
In the Linode Manager I see CPU topping out at 200% instead of 400%. Does anyone know why? Of course if I were limited to 2 CPU cores instead of 4, that would explain it - but I have received no notice from Linode that that has occurred, and they still charge me for 4 cores so something else must be causing the problem.

James


Top
   
PostPosted: Fri Jul 20, 2012 2:38 pm 
Offline
Sysop

Joined: Sat Nov 27, 2010 3:32 am
Posts: 180
Website: https://blog.timheckman.net/
Location: San Francisco, CA
Not aware of anything. Have you looked at 'htop' to see your usage in real time?

-Tim

_________________
'If debugging is the process of removing bugs, then programming must be the process of putting them in.' //Edsger Dijkstra
'Nothing is withheld from us which we have conceived to do.' | 'Do things that have never been done.' //Russell Kirsch


Top
   
PostPosted: Fri Jul 20, 2012 3:23 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Mine are working fine I've one peaking at 240% (it never does enough to get it to 400)

_________________
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
   
PostPosted: Fri Jul 20, 2012 3:53 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
obs wrote:
Mine are working fine I've one peaking at 240% (it never does enough to get it to 400)

Mine never seems to reach 30% :-)

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
PostPosted: Fri Jul 20, 2012 4:07 pm 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
theckman wrote:
Have you looked at 'htop' to see your usage in real time?


Load in top was more than four, yet the Linode Manager cpu graph maxed out at 200% when it should have been 400%. Something is wrong. I will keep an eye on it now that I know about the problem.

James

Edit: I looked at the past history in the Linode Manager, and this started roughly three weeks ago.


Top
   
PostPosted: Fri Jul 20, 2012 5:30 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:18 am
Posts: 681
zunzun wrote:
Edit: I looked at the past history in the Linode Manager, and this started roughly three weeks ago.

Any local changes or possibility for the applications themselves to be interlocking in a way that prevents simultaneous execution or could perhaps make them I/O bound rather than CPU bound.

Or, maybe there's a new guest on your host also bursting as much as possible, so best case you two end up sharing the cores. I don't know how the host Xen allocates cores, but depending on Linode size there has to be some complete overlaps, or at least cases where there is just never an opportunity to have all 4 cores.

-- David

PS: Not sure I'd consider it fair to say Linode is charging you for four cores (unless this is like a Linode 16GB). The charge is for a pro-rated portion of the host per number of guests, so on a 512 for example it only guarantees about 20% of a single core, with the burst to 4 cores purely on an availability basis. True, bursting usually works fine and makes the service work as well as it does. But it's not like being unable to reach 4 cores is depriving you of something you paid for, again unless you're on one of the largest plans with very few guests.


Top
   
PostPosted: Sat Jul 21, 2012 8:35 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
db3l wrote:
Any local changes or possibility for the applications themselves to be interlocking in a way that prevents simultaneous execution or could perhaps make them I/O bound rather than CPU bound.


Then load would not have been over four in top, and it was.

I will open a support ticket to ask if my Linode is being CPU limited in any way and share the answer.

James


Top
   
PostPosted: Sat Jul 21, 2012 8:50 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
zunzun wrote:
I will open a support ticket to ask if my Linode is being CPU limited in any way and share the answer.



Support Ticket Question: Is my Linode being CPU-limited in any way?

Support Ticket Answer: Your CPU is not limited in any way at this time.

James


Top
   
PostPosted: Sat Jul 21, 2012 10:03 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
zunzun wrote:
Support Ticket Answer: Your CPU is not limited in any way at this time.


not limited in any way at this time.

at this time

ಠ_ಠ

(NOTE: I know zunzun's workload, and Linode, and am mostly picking on the very careful wording of that. This is not an accusation that CPU was being limited in any way at any other time. Just... amusing.)

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
PostPosted: Sat Jul 21, 2012 3:06 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:18 am
Posts: 681
zunzun wrote:
db3l wrote:
Any local changes or possibility for the applications themselves to be interlocking in a way that prevents simultaneous execution or could perhaps make them I/O bound rather than CPU bound.


Then load would not have been over four in top, and it was.


I'm pretty sure Linux includes iowait processes in the load value, so yes, it could be over 4 and yet not be CPU bound. But if your iowait% was also very low, then I'd probably agree something else was going on.

-- David


Top
   
PostPosted: Sat Jul 21, 2012 10:25 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
Shouldn't this be simple to benchmark? Take a program that will spike the CPU like the pi.py spigot generator. Establish a baseline for 100% CPU:
Code:
python pi.py > baseline.out & sleep 300; kill %1


Then run four instances at once:
Code:
for f in 1 2 3 4; do python pi.py > $f.out & done; sleep 300; kill %1 %2 %3 %4


ls -l *.out will show how many digits of pi each process calculated, which should then tell you whether each of the four instances had access to 100% CPU or if they were somehow limited. Of course they won't be exactly equal to the baseline, but if you're being limited to 200% the difference should be obvious. (This assumes that any limiting is applied as an aggregate across all CPUs, and is not implemented by throttling each individual CPU to 50%.)


Top
   
PostPosted: Sun Jul 22, 2012 7:50 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
Vance wrote:
Shouldn't this be simple to benchmark?


You are correct, direct CPU benchmarking is simple. I will do some benchmarking today, and also try Arch Linux in addition to the current Ubuntu.

James


Top
   
PostPosted: Sun Jul 22, 2012 10:02 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
This is the host. I created a new Ubuntu instance, and with "host load is low" on both servers I ran the same cpu-intensive benchmark. The existing server ran the benchmark in half an hour: the new instance took 15 minutes.

I will move my site over the the new instance this afternoon.

James


Top
   
PostPosted: Sun Jul 22, 2012 2:19 pm 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
As usual the Linode staff speedily took care of the problem, migrating my somewhat cpu-intensive web site Linode to a new host. The new host completed my cpu load test in just under 10 minutes, which I see as being 3 times faster than the old host.

James


Top
   
PostPosted: Sun Jul 22, 2012 2:38 pm 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
After the migration, the Linode Manager CPU graphs are back to normal.

James


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


Who is online

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