LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-28-2011, 01:56 PM   #16
rfernandez
Member
 
Registered: Mar 2010
Location: Brazil
Distribution: Slackware64
Posts: 264

Rep: Reputation: 41

Quote:
Originally Posted by GazL View Post
Seems ok here.
Code:
root@slack:~# ps aux |head -1 ; ps aux |grep [m]igration
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         6  0.0  0.0      0     0 ?        S    09:35   0:00 [migration/0]
root         7  0.0  0.0      0     0 ?        S    09:35   0:00 [migration/1]
Here's what happening

Code:
$ ps aux | head -n 1 ; ps aux | grep [m]igration
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         6  0.0  0.0      0     0 ?        S    12:50   0:00 [migration/0]
root         8  0.0  0.0      0     0 ?        S    12:50   0:00 [migration/1]
root        13  0.0  0.0      0     0 ?        S    12:50   0:00 [migration/2]
root        17 93.2  0.0      0     0 ?        S    12:50 234:51 [migration/3]
But Total CPU is really <10%, right now.
 
Old 10-28-2011, 03:36 PM   #17
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Don't forget that the total is the percentage total across all 4 cpu, so 10% is a significant amount on a quad cpu box.

The %CPU figure from the 'ps;' command expresses as a percentage for each task the cpu time used / elapsed time of that task. It's not a snapshot of the current usage.

Can you post the output of a 'sar -P ALL 10 6' That'll give us a better understanding of what your real usage is.
 
Old 10-28-2011, 06:04 PM   #18
rfernandez
Member
 
Registered: Mar 2010
Location: Brazil
Distribution: Slackware64
Posts: 264

Rep: Reputation: 41
Sure thing.

Code:
$ sar -P ALL 10 6
Linux 3.1.0 (darkstar)  10/28/2011      _x86_64_        (4 CPU)

09:08:11 PM     CPU     %user     %nice   %system   %iowait    %steal     %idle
09:08:21 PM     all      4.23      0.00      2.50      0.23      0.00     93.05
09:08:21 PM       0      5.30      0.00      3.00      0.80      0.00     90.90
09:08:21 PM       1      4.00      0.00      2.60      0.00      0.00     93.40
09:08:21 PM       2      5.00      0.00      2.60      0.00      0.00     92.40
09:08:21 PM       3      2.61      0.00      1.81      0.00      0.00     95.58

09:08:21 PM     CPU     %user     %nice   %system   %iowait    %steal     %idle
09:08:31 PM     all      4.55      0.00      2.40      0.13      0.00     92.92
09:08:31 PM       0      5.71      0.00      2.70      0.60      0.00     90.99
09:08:31 PM       1      4.70      0.00      2.80      0.00      0.00     92.49
09:08:31 PM       2      4.60      0.00      2.60      0.00      0.00     92.80
09:08:31 PM       3      3.19      0.00      1.60      0.00      0.00     95.21

09:08:31 PM     CPU     %user     %nice   %system   %iowait    %steal     %idle
09:08:41 PM     all      2.90      0.00      1.88      0.38      0.00     94.84
09:08:41 PM       0      3.41      0.00      1.91      1.10      0.00     93.57
09:08:41 PM       1      2.40      0.00      1.30      0.00      0.00     96.30
09:08:41 PM       2      3.90      0.00      2.10      0.50      0.00     93.51
09:08:41 PM       3      2.00      0.00      2.20      0.00      0.00     95.80
                                                                                                                                                  
09:08:41 PM     CPU     %user     %nice   %system   %iowait    %steal     %idle                                                                   
09:08:51 PM     all      7.30      0.00      3.35      0.12      0.00     89.23
09:08:51 PM       0     10.16      0.00      4.78      0.30      0.00     84.76
09:08:51 PM       1      5.70      0.00      3.10      0.00      0.00     91.20
09:08:51 PM       2      7.31      0.00      3.40      0.00      0.00     89.29
09:08:51 PM       3      5.92      0.00      2.11      0.20      0.00     91.78

09:08:51 PM     CPU     %user     %nice   %system   %iowait    %steal     %idle
09:09:01 PM     all      6.32      0.00      2.97      0.30      0.00     90.40
09:09:01 PM       0      8.72      0.00      3.71      1.10      0.00     86.47
09:09:01 PM       1      5.30      0.00      2.60      0.00      0.00     92.10
09:09:01 PM       2      7.51      0.00      3.40      0.00      0.00     89.09
09:09:01 PM       3      3.70      0.00      2.10      0.00      0.00     94.20
meanwhile

Code:
$ ps aux | head -n 1 ; ps aux | grep [m]igration
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         6 53.5  0.0      0     0 ?        S    12:50 267:14 [migration/0]
root     27128  0.0  0.0      0     0 ?        S    20:57   0:00 [migration/1]
root     27132  0.0  0.0      0     0 ?        S    20:57   0:00 [migration/2]
root     27136  0.0  0.0      0     0 ?        S    20:57   0:00 [migration/3]
 
Old 10-28-2011, 06:54 PM   #19
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Well, that wasn't exactly what I expected. I was expecting each of those migration threads to be bound to an individual cpu with one doing all the work, which is clearly not the case from those stats.

I still think that cpu usage is a little high for an idle system, but I don't have a clue what's going on here or why that migration thread is registering so much activity.
 
Old 10-28-2011, 07:27 PM   #20
rfernandez
Member
 
Registered: Mar 2010
Location: Brazil
Distribution: Slackware64
Posts: 264

Rep: Reputation: 41
And that's why it's funny: it only register a high CPU usage but, in reality, there's no high cpu usage - the system is very quiet and calm.
 
Old 10-29-2011, 12:34 AM   #21
rfernandez
Member
 
Registered: Mar 2010
Location: Brazil
Distribution: Slackware64
Posts: 264

Rep: Reputation: 41
Right now, this is even weird:

Code:
$ ps aux | grep [m]igration
root         6 70.8  0.0      0     0 ?        S    Oct28 629:05 [migration/0]
root     27128  0.0  0.0      0     0 ?        S    Oct28   0:00 [migration/1]
root     27132 29.7  0.0      0     0 ?        S    Oct28 118:57 [migration/2]
root     27136 74.0  0.0      0     0 ?        S    Oct28 296:19 [migration/3]
and

Code:
$ sar -P ALL 10 6
Linux 3.1.0 (darkstar)  10/29/2011      _x86_64_        (4 CPU)

03:38:33 AM     CPU     %user     %nice   %system   %iowait    %steal     %idle
03:38:43 AM     all      6.47      0.00      3.11      0.38      0.00     90.05
03:38:43 AM       0      9.75      0.00      3.22      1.51      0.00     85.53
03:38:43 AM       1      5.52      0.00      3.21      0.00      0.00     91.27
03:38:43 AM       2      7.11      0.00      3.51      0.00      0.00     89.38
03:38:43 AM       3      3.52      0.00      2.21      0.00      0.00     94.27

03:38:43 AM     CPU     %user     %nice   %system   %iowait    %steal     %idle
03:38:53 AM     all      3.00      0.00      2.12      0.40      0.00     94.48
03:38:53 AM       0      4.09      0.00      2.39      1.60      0.00     91.92
03:38:53 AM       1      3.00      0.00      1.70      0.00      0.00     95.30
03:38:53 AM       2      2.30      0.00      2.40      0.00      0.00     95.30
03:38:53 AM       3      2.69      0.00      2.09      0.00      0.00     95.21

03:38:53 AM     CPU     %user     %nice   %system   %iowait    %steal     %idle
03:39:03 AM     all      1.83      0.00      1.28      0.23      0.00     96.67
03:39:03 AM       0      1.50      0.00      0.90      0.90      0.00     96.70
03:39:03 AM       1      1.40      0.00      0.90      0.00      0.00     97.70
03:39:03 AM       2      2.40      0.00      1.50      0.00      0.00     96.10
03:39:03 AM       3      2.01      0.00      1.91      0.00      0.00     96.08

03:39:03 AM     CPU     %user     %nice   %system   %iowait    %steal     %idle
03:39:13 AM     all      2.50      0.00      1.75      0.10      0.00     95.65
03:39:13 AM       0      2.91      0.00      1.60      0.30      0.00     95.19
03:39:13 AM       1      2.50      0.00      1.80      0.00      0.00     95.70
03:39:13 AM       2      2.60      0.00      2.10      0.00      0.00     95.30
03:39:13 AM       3      1.90      0.00      1.70      0.00      0.00     96.39
                                                                                                                                                  
03:39:13 AM     CPU     %user     %nice   %system   %iowait    %steal     %idle                                                                   
03:39:23 AM     all      2.40      0.00      1.72      0.20      0.00     95.68
03:39:23 AM       0      3.10      0.00      2.30      0.80      0.00     93.81
03:39:23 AM       1      1.90      0.00      1.40      0.00      0.00     96.71
03:39:23 AM       2      2.50      0.00      1.90      0.00      0.00     95.60
03:39:23 AM       3      2.19      0.00      1.09      0.00      0.00     96.72
once again

Code:
$ ps aux | grep [m]igration
root         6 70.7  0.0      0     0 ?        S    Oct28 629:05 [migration/0]
root     27128  0.0  0.0      0     0 ?        S    Oct28   0:00 [migration/1]
root     27132 29.6  0.0      0     0 ?        S    Oct28 118:57 [migration/2]
root     27136 73.7  0.0      0     0 ?        S    Oct28 296:19 [migration/3]
 
Old 10-29-2011, 04:03 AM   #22
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,783

Rep: Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460
Quote:
Originally Posted by rfernandez View Post
Everything is looking good, but does anyone see the migragtion/x using up to 90% CPU?
What kind of system is it? If it is a NUMA system, do you have CONFIG_NUMA set?
 
Old 10-29-2011, 04:11 AM   #23
rfernandez
Member
 
Registered: Mar 2010
Location: Brazil
Distribution: Slackware64
Posts: 264

Rep: Reputation: 41
I don't know what NUMA is, so as in the kernel config: # CONFIG_NUMA is not set.

The machine is a Dell Inspiron N5010 with Intel Core i5.
 
Old 10-29-2011, 04:27 AM   #24
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,783

Rep: Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460Reputation: 1460
Quote:
Originally Posted by rfernandez View Post
I don't know what NUMA is, so as in the kernel config: # CONFIG_NUMA is not set.

The machine is a Dell Inspiron N5010 with Intel Core i5.
OK, that's not the problem then.
 
  


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
LXer: Linux Unified Kernel Aims to Combine Linux, NT Kernel LXer Syndicated Linux News 0 05-28-2009 02:10 PM
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 08:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:32 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