LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-03-2014, 04:41 AM   #16
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513

None of it.

I/O has a tendency to occur in bursts. Processes that compute things tend to fill up buffers, when the buffers fill sufficiently, the I/O starts - it also means that the processes get delayed requesting additional buffers... Multiple threads allow for the compute processes to alternate - while some are filling buffer, others are having buffers emptied.

The general rule of thumb is to have two "ready to run" processes going for each core - that way the CPU is fairly busy... and the DMA can also be busy transferring data. Now the system still has some overhead to manage the processes, scheduling/sorting/consolidating buffers for I/O, so you do need something around 5% for the overhead. If you want to monitor the system then that gets counted as additional overhead. That means it would be nice to have an additional core not 100% loaded so that the monitoring isn't too sluggish.

In a desktop, you can roughly count the X server + window manager as a load for a single core. (when the window manager/applications are busy the X server is waiting for things to do). It won't be as responsive as an idle system... but it is usable. That leaves the rest of the cores available for compute processes. If you have 4 cores, that would imply that you should be able to have 6 compute bound processes and still have a relatively usable desktop.

Now there are a number of system configuration details that affect this - for instance, if you are using a desktop system based on cgroups (such as Fedora), you have less control - all processes started from within the desktop will contend for the CPU time - causing thrashing within that one cgroup. For these systems it would be much better to have the cpu bound processes under their own cgroup (one cgroup for each process) - that way they will each get a full share of the total CPU. Each cgroup scheduling then counts as a unit (6 for the compute processes + the desktop) leaving one for overhead.

This is part of the difference between servers and desktops. The configuration of a server is geared to making throughput a priority (which is what cgroups were designed for), rather than a desktop where the configuration is focused on making the desktop appear fast.
 
1 members found this post helpful.
Old 05-03-2014, 12:49 PM   #17
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
jpollard, thanks. :-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 100% CPU load UnrealX Linux - Server 8 02-04-2011 08:04 AM
How to generate 100% CPU load kushalkoolwal Linux - Software 4 08-04-2008 01:09 PM
Why does yelp use 100% CPU load? dongli Linux - Newbie 1 08-02-2008 06:32 PM
CPU load 100% with Firefox. sblantipodi Linux - Software 5 01-23-2008 02:50 AM
CPU Load Always at 100% freddie_leaf Debian 2 09-25-2005 06:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration