LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-06-2013, 11:52 AM   #1
simplex5
LQ Newbie
 
Registered: Nov 2013
Posts: 1

Rep: Reputation: Disabled
Post can nice value of a process be changed which is already in memory


say a process is executing and i just see that its priority should be changed then what is the way to change its nice value to do the same
 
Old 11-06-2013, 11:53 AM   #2
paladin.michael
Member
 
Registered: Jun 2011
Location: Danbury, CT, USA
Distribution: Kubuntu, Slackware, Debian, FreePBX
Posts: 72

Rep: Reputation: 22
Have a look at the renice command.
 
Old 11-07-2013, 05:02 AM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,688

Rep: Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259
Quote:
Originally Posted by simplex5 View Post
say a process is executing and i just see that its priority should be changed then what is the way to change its nice value to do the same
It sort of depends on your distribution.

The renice command can change the listed priority.

But if your system is using cgroups (control groups - for controlling multiple processes as a unit), it will have little to no effect. Nice values are only used inside a cgroup, and the scheduling of cgroups (which is a global scheduling) overrides the nice values. The end result is that processes within a cgroup (as controlled by the nice value) only order the processes within that cgroup. It doesn't have any effect on processes in other cgroups.
 
  


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
Nice Value of a Process jaypas Linux - Newbie 8 05-02-2017 03:26 PM
How to change the nice value of a process? akhile04 Linux - Newbie 1 08-05-2013 03:46 AM
Process nice value, priority fakie_flip Linux - Software 6 11-13-2012 03:24 PM
LXer: Be nice with your process on Linux LXer Syndicated Linux News 0 07-29-2011 09:11 PM


All times are GMT -5. The time now is 06:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration