LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 01-27-2011, 06:37 PM   #1
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Load peaks... but cannot identify the reason


I am running a soft real-time system. That is, response times do not have to be guaranteed to be constant or very short, but the system has to react to real-time events an act accordingly.

The system comprises about 15 processes for process control, all PHP, TCL and Bash scripts. Each process has a number of tasks to be executed. Tasks inside those processes run roughly each 200 ms, 1 second, 2 seconds or 15 seconds.

All processes communicate with each other thru a MySQL database. For example, one process rewrites a table every 1 second, the second process reads from this table every 200 ms etc.

Apache runs to serve a web based user interface. Web pages also access the MySQL database to enter settings, or display status. Most status web pages are refreshed every 2 seconds through AJAX scripts.

The entire system is on intranet and cannot be accessed from the outside. So it is impossible that suddenly a few hundred users access this server.

The top command shows a CPU percentage for the MySQL process between 10 and 20%. All process control processes run well below 3%. Processes are started one after another, and have a sleep statement in their process loops. So I am not starting a task at a defined time, but simply after the process has been put to sleep. I assume that after some time because of the different processing times, any correlation in timing of the processes has disappeared.

Total CPU % for user processes run between 15%-20% on one core and 10%-15% on the other core.

The average 1-min processor load is about 0.8-1.2. My problem is that every few minutes (somewhere between 5-10 minutes) my 1-min average processor load increases to 4 for some time (about 30-60 seconds), and then decays back to the lower values. In all that time, the CPU % does not increase.

I know the avg load and CPU % are two entirely different values, but I expect to see at least some correlation between a load of 4 and CPU %.

There is no problem with the system, but I find it scary that I cannot explain this load average peak. After all, a value of 4 means that at certain times processes are waiting to be scheduled.

Any suggestion as how to find the cause?

jlinkels
 
Old 01-27-2011, 06:48 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Have you looked for processes in uninterruptible sleep (state D), %wa in top? Or is that included in "the CPU % does not increase"
 
Old 01-27-2011, 08:00 PM   #3
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Original Poster
Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
The %wa stays at 0.0 to 0.3%

However I should have added in my post that idle time is 60-70%.

jlinkels
 
  


Reply



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
how to identify reason of reboot/shutdown Ammad Linux - General 2 03-15-2010 01:48 AM
High load average with no reason wmasry Linux - Server 2 01-13-2010 03:21 PM
High load average for no apparent reason permalac Linux - Server 12 03-09-2009 11:13 AM
cpu load hits 100% for no reason?? cinetron Linux - General 20 10-08-2007 12:44 PM
LXer: A reason why Dell probably won't pre-load OpenOffice LXer Syndicated Linux News 0 03-17-2007 01:46 PM

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

All times are GMT -5. The time now is 01:48 AM.

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