Backgrounding process with higher priority


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Backgrounding process with higher priority
# 1  
Old 01-09-2003
Backgrounding process with higher priority

I have been troubleshooting a mysterious performance problem with the nightly batch programs on our primary system for quite some time and just found something very interesting. All batch processes are running with a nice value of 24. I don't know what the default is on other systems but I do know that on HP-UX the default is 20.

I then did some investigating to find out that all processes that run in the background with an "&" automatically run with an offset of (+)4. And this coincides with the problems we've been seeing that when users start logging on in the morning the batch times increase significantly.

Does anyone have any suggestions on how to fix this? Is there a default setting I can change for this. We actually want the batch to finish as quickly as possible and if anything should be running with an offset of -4.
# 2  
Old 01-09-2003
# renice 20 -p <pid> ?
# 3  
Old 01-09-2003
You're right that I could issue a renice command. The problem is that there are 1000s of processes started during the batch. All of these process should have a higher priority than all of the user processes with a nice value of 20.

It seems to me that it would complicate things tremendously if I had to run a separate script after every process to determine the previous process' PID and then to renice it. I also think that this would be detrimental to the overall performance of the whole batch.

I also need a way to allow a non-superuser to renice a negative value. And can anyone tell me a way to determine a process nice value without using Top or Glance?
# 4  
Old 01-09-2003
set +o bgnice
is the command to tell the shell to not renice background jobs. Just run that command before you launch your background jobs.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Remove when date is higher

Dear Masters, I need to eliminate lines from file input 2 when the date in column 1 more than date in column 1 in file input 1 input 1 20141101|USA|CANSEL|496420000 20141101|USA|CANUT|1069740000 20141101|USA|CANTENG|625920000 20141102|USA|CANUT|413180000 20141103|USA|CANSEL|1364245000... (5 Replies)
Discussion started by: radius
5 Replies

2. AIX

THCOUNT (THCNT) higher than ThreadLimit for httpd process?

One issue I could see on AIX 5.3: At one of my customer they have got the ThreadLimit of 2500 set on web server in httpd.conf file. Currently 2000 users have logged in each attaing a single instance of httpd. While in ps -ef for httpd process it is showing thread count (thcount) almost 3000.... (3 Replies)
Discussion started by: aarora_98
3 Replies

3. AIX

Adjust disk scheduling priority for a process?

Hi all! Some dumb administrator run the weekly backup "by hand" on our AIX 5.3 server, which we use to deploy Websphere applications, during work hours. Using the server while the backup is taking place is almost imposible. Both the disks are working at 100% and it's almost unusable. Asking the... (2 Replies)
Discussion started by: shandrio
2 Replies

4. AIX

priority for process

hi how to change the priority of a process for eg.if a,b,c these there process are running and if i have to give the b process as high priority and high severe level what should i do (3 Replies)
Discussion started by: senmak
3 Replies

5. UNIX for Dummies Questions & Answers

how to Decrease priority of a particular process in time of process creation

how to decrease priority of a particular process in time of process creation... and also how to decrease priority of a particular process after process creation.. can any one please help me out... (2 Replies)
Discussion started by: Ramkum
2 Replies

6. Solaris

start a process with the highest priority

hello, I have a process lauched by non-root user. how to lauch this process with a very high priority? I know this has to do with nice command but how to allow a user to lauch his process with a very high priority and without ROOT intervention? PS: this process is always lauched from a... (2 Replies)
Discussion started by: melanie_pfefer
2 Replies

7. HP-UX

urgent help required on changing process priority using nice

Hi folks, Hope you can help me. I have a process that is currently running at nice 20 and need it to run faster (-10?). How do I change the process using nice? I have the process number and thought it would be along the lines of; nice -10 process_id but it doesn't seem to like that. (1 Reply)
Discussion started by: gshuttleworth
1 Replies

8. UNIX for Advanced & Expert Users

Increasing priority of a process

Hi! Experts, Is there anyway to incerase the priority of a process which is already started and running??.. I think nice can used for increase priority when we start the process.. But donno how to do when its already running.. Any help would be apreciated.. Jyoti (2 Replies)
Discussion started by: jyotipg
2 Replies
Login or Register to Ask a Question