Sponsored Content
Full Discussion: top and nice
Operating Systems HP-UX top and nice Post 302162959 by Perderabo on Wednesday 30th of January 2008 09:22:10 PM
Old 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

Very Nice

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 Have Top Display The Top 20 Processes??

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

[Top output] NICE % high ?

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

nice command and nice() system call

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

Top command in AIX 4.2 (no topas, no nmon, no top)?

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

Need a list of top 10 CPU using processes (also top 10 memory hogs, separately)

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

Top cmd showing NICE value 97% -what to tune?

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

nice and renice

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

Very high nice percentage in top command

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?

A nice YT video on A.I

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
NICE(3) 						   BSD Library Functions Manual 						   NICE(3)

NAME
nice -- set program scheduling priority LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <unistd.h> int nice(int incr); DESCRIPTION
This interface is obsoleted by setpriority(2). The nice() function obtains the scheduling priority of the process from the system and sets it to the priority value specified in incr. The priority is a value in the range -20 to 20. The default priority is 0; lower priorities cause more favorable scheduling. Only a process with appropriate privileges may lower priorities. Children inherit the priority of their parent processes via fork(2). RETURN VALUES
Upon successful completion, nice() returns the new nice value minus NZERO. Otherwise, -1 is returned, the process' nice value is not changed, and errno is set to indicate the error. ERRORS
The nice() function will fail if: [EPERM] The incr argument is negative and the caller does not have appropriate privileges. SEE ALSO
nice(1), fork(2), setpriority(2), renice(8) STANDARDS
The nice() function conforms to X/Open Portability Guide Issue 4, Version 2 (``XPG4.2''). HISTORY
A nice() syscall appeared in Version 6 AT&T UNIX. BSD
April 30, 2011 BSD
All times are GMT -4. The time now is 02:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy