LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
LinkBack Search this Thread
Old 10-14-2009, 09:35 AM   #1
michal017
Member
 
Registered: Jan 2004
Location: EU
Distribution: Debian
Posts: 78

Rep: Reputation: 15
Does CPU scheduler favor root?


Does Linux CPU scheduler favor processes running under root to processes running under non-superuser? The nice value is the same.
I can't find this information anywhere, however a test with my application tells me otherwise - in case of a high load I see problems of processes running under regular user, the ones running under root seem to be fine. Thanks.
 
Old 10-14-2009, 07:29 PM   #2
kakaka
Member
 
Registered: Sep 2003
Posts: 244

Rep: Reputation: 39
The nice *offset* is the same, or the resultant priority is the same?
 
Old 10-14-2009, 11:15 PM   #3
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 1
Posts: 199
Blog Entries: 2

Rep: Reputation: 28
I don't think it makes any difference who or what the user is.
 
Old 10-15-2009, 01:58 AM   #4
michal017
Member
 
Registered: Jan 2004
Location: EU
Distribution: Debian
Posts: 78

Original Poster
Rep: Reputation: 15
kakaka: if by nice *offset* you mean the value set by e.g. nice -n, then yes.. the resultant priority, as seen by e.g. 'top' could be different though
nigelc: yes, that's my conclusion as well by searching the web on this subject
 
Old 10-15-2009, 09:56 AM   #5
michal017
Member
 
Registered: Jan 2004
Location: EU
Distribution: Debian
Posts: 78

Original Poster
Rep: Reputation: 15
I see, that the priority, as shown in the PR column of top's output is 15 for processes running under root and 18 for processes running under regular user. The processes in question are almost identical, so I'm wondering why is there the priority difference.
 
Old 10-16-2009, 12:05 AM   #6
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 1
Posts: 199
Blog Entries: 2

Rep: Reputation: 28
The priority does change every now and then. Do a top then "r" re-nice a few and see what happens.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fair group CPU scheduler Zibi1981 Linux - Kernel 8 01-19-2008 09:35 PM
Bandwidth logging hogs 50% CPU and fills root fs PsychosisNode Linux - Software 1 12-16-2005 08:47 AM
XMMS crash, 100% cpu, even root cant kill it? gundelgauk Linux - Software 12 11-01-2003 03:59 PM
can anyone do me a favor? I need... C++freak Linux - Distributions 4 09-22-2002 11:16 AM
limiting non-root users cpu time nabil Linux - General 3 02-24-2002 06:32 AM


All times are GMT -5. The time now is 07:49 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration