12-11-2011
You need the renice command. It lets you change the priority of one process (or more).
You have to be superuser (root) to use the command to increase priority
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a problem with running jobs out of cron on Solaris 8.
Initially when one of the users on the box (other than root) attempted to save the crontab after modification by using "crontab -e", the message "Crontab: cannot open the crontab file in the crontab directory" was given.
I then... (7 Replies)
Discussion started by: mattd
7 Replies
2. UNIX for Dummies Questions & Answers
hi can i know what is the command and in which directory to
temporarily stop the cron service of my server?
here is my server information
thanks
SunOS statsfs07 5.8 Generic_117000-03 sun4u sparc SUNW,Ultra-4 (1 Reply)
Discussion started by: legato
1 Replies
3. AIX
hi to all
i'm a newbie on aix.
how would i block temporarily a few users in accessing our aix server so that other users may not be affected by th cpu usage...because if all of them accessing our server the CPU utilization goes high...
thanks
winky (3 Replies)
Discussion started by: winky
3 Replies
4. Shell Programming and Scripting
Issues:
Cron jobs are running everyday at 8PM to hot backup database, archivelog, and some other files.
Sometimes crontab scheduled backups need to be suspended for some other tasks randomly but doesn't happen all the time.
Objective:
I need to create simple script or command ( example :... (7 Replies)
Discussion started by: Paul.S
7 Replies
5. Solaris
Hi all
system Solaris 10 10/09 s10x_u8wos_08a X86
ufs file system
I would like to install SunStudio.
After the gui comes up it shows that i need to add swap space of at least 900m.
the command swap-s shows 880m free.
My question is can you temporarily increase swap by 1 or 2... (3 Replies)
Discussion started by: kc2dws
3 Replies
6. Solaris
I want to know how can in Solaris i can:
>Set Process priority to maximum
>Set Process Affinity.
Linke in windows task manager we can set process priority to following levels:
Low, Below Normal,Normal , Above Normal , High , Realtime
And we can set process affinity to run on all processors.... (10 Replies)
Discussion started by: mr_os
10 Replies
7. Shell Programming and Scripting
Hello everyone. I am new to shell scripting and i am required to create a shell script, the purpose of which i will explain below.
I am on a solaris server btw.
Before delving into the requirements, i will give youse an overview of what is currently in place and its purpose.
... (2 Replies)
Discussion started by: goddevil
2 Replies
8. HP-UX
Hello;
I am collecting global priority queue data from the following script:
/opt/perf/bin/glance -j2 -iterations 10 -adviser_only -syntax /home/dsljseo/glance.syntax
cat glance.syntax
print "global priority queue", gbl_pri_queue
The typical output:
global priority... (1 Reply)
Discussion started by: delphys
1 Replies
LEARN ABOUT ULTRIX
renice
renice(8) System Manager's Manual renice(8)
Name
renice - alter priority of running processes
Syntax
/etc/renice priority [ [ -p ] pid ... ] [ [ -g ] pgrp ... ] [ [ -u ] user ... ]
Description
The command alters the scheduling priority of one or more running processes. The who parameters are interpreted as process ID's, process
group ID's, or user names. Using on a process group causes all processes in the process group to have their scheduling priority altered.
Using on a user causes all processes owned by the user to have their scheduling priority altered. By default, the processes to be affected
are specified by their process ID's.
Options
To force who parameters to be interpreted as process group ID's, a may be specified. To force the who parameters to be interpreted as user
names, a may be given. Supplying will reset who interpretation to be (the default) process ID's.
Users other than the superuser may only alter the priority of processes they own, and can only monotonically increase their ``nice value''
within the range 0 to PRIO_MIN (20). (This prevents overriding administrative fiats.) The superuser can alter the priority of any process
and set the priority to any value in the range PRIO_MAX (-20) to PRIO_MIN. 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).
Examples
The following command changes the priority of process ID's 987 and 32, and all processes owned by users daemon and root:
/etc/renice +1 987 -u daemon root -p 32
Restrictions
If you make the priority very negative, then the process cannot be interrupted. To regain control you make the priority greater than zero.
Non-superusers cannot increase scheduling priorities of their own processes, even if they were the ones that decreased the priorities in
the first place.
Files
Maps user names to user IDs
See Also
getpriority(2), setpriority(2)
renice(8)