01-30-2008
The only way to affect nice is to explicitly set via the nice() or setpriority() system calls which are usually invoked by the nice and renice commands. There is other stuff that could affect priority, but the other stuff can't affect the nice value. The nice value is under the explicit control of the user.
The fact that one box has niced processes while the other does not pretty much means that they are indeed difference. But it is not too surprising the the niced processes underperform the processes running at standard priority. That is what is supposed to happen.
But it sounds like the solution is simple. Since you think they are supposed to be the same, why not simply copy the good one to the bad one?
10 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
Just a quick message to say great work to Neo and any others who have helped with the upgrade - the layout, appearance and functionality of this forum ROCKS.
By far the best I have seen.
Excellent! (1 Reply)
Discussion started by: alwayslearningunix
1 Replies
2. UNIX for Dummies Questions & Answers
how can i do that in a script withough havin the script halt at the section where the top command is located. am writign a script that will send me the out put of unx commands if the load average of a machine goes beyond the recommended number.
top -n 20
i want to save this output to a file... (1 Reply)
Discussion started by: TRUEST
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I've got some CPU bottleneck on a HP-UX 11 server : i didn't
understand it until i discover i've got an unusual high percentage
of NICE% CPU regarding my DBRMS process (Sybase 12.x).
How do i have to understand it and how to resolve it ?
Thx. (0 Replies)
Discussion started by: eliador2001
0 Replies
4. Programming
Hi I want to implement the nice command in the shell that I am building. I came to know that there is a corresponding nice() system call for the same. But since I will be forking different processes to run different commands typed on the command prompt, is there any way I can make a command... (2 Replies)
Discussion started by: tejbuch
2 Replies
5. AIX
Is there a 'top' command equivalent in AIX 4.2 ?
I already checked and I do not see the following ones anywhere:
top
nmon
topas (1 Reply)
Discussion started by: Browser_ice
1 Replies
6. AIX
Okay, I am trying to come up with a multi-platform script to report top ten CPU and memory hog processes, which will be run by our enterprise monitoring application as an auto-action item when the CPU and Memory utilization gets reported as higher than a certain threshold
I use top on other... (5 Replies)
Discussion started by: thenomad
5 Replies
7. HP-UX
Running 2 VM Guests on an HPUX Integrity Server. One Guest runs great, the other is always at a high NICE value and 0% idle as shown in TOP:
What do you think should be tuned to bring down the NICE and increase IDLE %? Thanks in advance
-hpuxadmin
slow VM GUEST
Load averages: 2.56,... (5 Replies)
Discussion started by: hpuxadmin
5 Replies
8. AIX
hello ,
We would like to increase the priority of the oracle process . Process(240001 ) should get the priority like the process(240103 ). Am not sure what value i should mention in the renice command(aix 6.1). Please assist me.
240001 A oracle 26804312 1 0 60 20... (2 Replies)
Discussion started by: gowthamakanthan
2 Replies
9. BSD
Hello Folks,
Recently our FreeBSD 7.1 i386 system became very sluggish.
Nothing much is happening over there & whatever is running takes eternity to complete.
All the troubleshooting hinted towards a very high nice percentage.
Can that be the culprit?
Pasting snippets of top command,... (7 Replies)
Discussion started by: vibhor_agarwali
7 Replies
10. What is on Your Mind?
Hello All,
Just went through a nice YT video of A.I
Age of A.I YT video
See who is the host of this video :) if you are a Hollywood fan(a bit spoiler)
I hope to learn something of it someday, technology is really growing day by day, cheers.
Thanks,
R. Singh (8 Replies)
Discussion started by: RavinderSingh13
8 Replies
RENICE(1) User Commands RENICE(1)
NAME
renice - alter priority of running processes
SYNOPSIS
renice [-n] priority [-g|-p|-u] identifier...
DESCRIPTION
renice alters the scheduling priority of one or more running processes. The first argument is the priority value to be used. The other
arguments are interpreted as process IDs (by default), process group IDs, user IDs, or user names. renice'ing a process group causes all
processes in the process group to have their scheduling priority altered. renice'ing a user causes all processes owned by the user to have
their scheduling priority altered.
OPTIONS
-n, --priority priority
Specify the scheduling priority to be used for the process, process group, or user. Use of the option -n or --priority is optional,
but when used it must be the first argument.
-g, --pgrp
Interpret the succeeding arguments as process group IDs.
-p, --pid
Interpret the succeeding arguments as process IDs (the default).
-u, --user
Interpret the succeeding arguments as usernames or UIDs.
-V, --version
Display version information and exit.
-h, --help
Display help text and exit.
EXAMPLES
The following command would change the priority of the processes with PIDs 987 and 32, plus all processes owned by the users daemon and
root:
renice +1 987 -u daemon root -p 32
NOTES
Users other than the superuser may only alter the priority of processes they own. Furthermore, an unprivileged user can only increase the
``nice value'' (i.e., choose a lower priority) and such changes are irreversible unless (since Linux 2.6.12) the user has a suitable
``nice'' resource limit (see ulimit(1) and getrlimit(2)).
The superuser may alter the priority of any process and set the priority to any value in the range -20 to 19. Useful priorities are: 19
(the affected processes will run only when nothing else in the system wants to), 0 (the ``base'' scheduling priority), anything negative
(to make things go very fast).
FILES
/etc/passwd
to map user names to user IDs
SEE ALSO
nice(1), getpriority(2), setpriority(2), credentials(7), sched(7)
HISTORY
The renice command appeared in 4.0BSD.
AVAILABILITY
The renice command is part of the util-linux package and is available from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils
/util-linux/>.
util-linux July 2014 RENICE(1)