is ‘nice’ command useful on a multi-CPU UNIX system?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers is ‘nice’ command useful on a multi-CPU UNIX system?
# 1  
Old 02-02-2006
is ‘nice’ command useful on a multi-CPU UNIX system?

Can someone tell me this. thanks
# 2  
Old 02-03-2006
If you have more runable processes than you have cpu's, nice could be useful. In the unlikely event that you only have one process that you want to run, then even with a single cpu, nice can't do anything...(nothing else to nice down). But on unix, there are always enough processes that you could find something to nice. The thing is though, that I rarely use nice. The unix scheduler is very good and I just let it pick the priorities. If you're thinking that nice used to be more useful than it is today, you're right. But that is more due to cpu speed, rather than number. Today's cpus have clocks running at Gigahertz speed and have super-scalar architectures that can execute mutiple instructions every cycle. Most unix processes wind up waiting on i/o, and high priority or no, they can't run until their data arrives. When your processes are voluntarily surrendering the cpu before they use all of their timeslice, nice can't really impact very much. It's not that unusual to have a heavy load, but lots of cpu idle time. The other big factor is advancements in scheduling algorithms. Still, if you have multiple processes do calculations with no i/o and competing for the same cpu, nice can have a big impact on which one does the most calculations. That's not the mix of processes that most of us have.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Load average in a multi CPU machine

I had the query as to whether the load average in a multi CPU machine should be (load average/no of CPUs) We have 4 CPU on our VMware RHEL instance, so the load average should be Load average/4. I hope, my question is clear. Please revert with the reply to my query. Regards (0 Replies)
Discussion started by: RHCE
0 Replies

2. Shell Programming and Scripting

How to use nice command?

Dear Friends, I have a directory when i take du of that directory it takes alot of memory and cpu and I/O, i want to use nice to run my script that have du command slowly so it won't take I/O and cpu, please suggest. (6 Replies)
Discussion started by: learnbash
6 Replies

3. UNIX for Advanced & Expert Users

NMON Physical Averages display for multi CPU Server

We have some AIX Unix Servers with 4 or 6 CPU and when type this command “c” in nmon always displays each cpu % with Averages on buttom. However we have several Servers with 18 CPU's and it only shows 16 17 on main page. Does nmon have some command that would show remaining with totals for Physical... (3 Replies)
Discussion started by: groosha
3 Replies

4. UNIX for Dummies Questions & Answers

Unix Top Command and sorting by CPU Usage

Ok, so I am using the Top command on my linux VPS to try and see the processes using the most CPU %. I hit the P to sort by CPU % but it wants to sort them from lowest to highest (ascending). My Telnet-SSH screen is only about 60 rows high so the processes with the highest CPU % usage are at the... (6 Replies)
Discussion started by: davemehta
6 Replies

5. Solaris

Multi CPU Solaris system shows 100% CPU usage.

Hello Friends, On one of my Solaris 10 box, CPU usage shows 100% using "sar", "vmstat". However, it has 4 CPUs and prstat and glance are not showing enough processes to justify high CPU utilization. ========================================================================= $ prstat -a ... (4 Replies)
Discussion started by: mahive
4 Replies

6. UNIX for Dummies Questions & Answers

System call code - nice()

Hi there, i'm trying to find the implementation code for the system call nice(). Since it's a system call i'm having problems finding where it would be? is it in the linux kernel directory somewhere? I would assume it would be a file called nice.c or something like this. Thanks in advance! (2 Replies)
Discussion started by: sport23
2 Replies

7. UNIX for Dummies Questions & Answers

The nice command

hello everybody: I have some job running on tru64 system and Im the root, due to limited resources I end up with my job ( vdump) for example taking the lowest share, I researched the nice command on the net, but couldnt get enough info, can I use it to already running process or I only use it... (1 Reply)
Discussion started by: aladdin
1 Replies

8. 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

9. Debian

top for Debian multi-cpu box...

I have a quad cpu Debian box running as an email server. I'm looking to see how the cpu's are being used. Top just shows them alltogether with the 4 processes running. Does anyone know how I can get Top to show me each cpu like the HP-UX top does? Thanks. top - 14:56:08 up 2:35, 1 user, ... (1 Reply)
Discussion started by: natter
1 Replies
Login or Register to Ask a Question