04-11-2002
Scheduling Policy Of Process
Hello
How to know the scheduling policy of the process in
HP-UX.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I would like to schedule a command at a specific time on my system.I know that theres a file named at.alow and at.deny in my system. I can find the at.deny file but not an at.allow file .
Is there anyway out or i have to go and talk to the system administrator itself , or any other way of... (1 Reply)
Discussion started by: prashantuc
1 Replies
2. Programming
hi there i m having a confusion here with the looping in this example below. can someone help me out!?
#include<stdio.h>
main()
{
char it = 'a';
char stop = 'z';
int x,ret;
for(; it<'f';it++)
{
// for(x=0; x<32000;x++)
... (4 Replies)
Discussion started by: a25khan
4 Replies
3. UNIX for Dummies Questions & Answers
I have searched all over the SCO website and can't seem to find an answer to this error message. Has anyone seen the following error, and if so what steps do I need to take to fix it? I don't really want to reload the entire OS if I don't have to.
LOGIN: ERROR- Failed to initialize policy... (1 Reply)
Discussion started by: mikeinmi
1 Replies
4. Shell Programming and Scripting
Hi forum,
I have a problem concerning job or process scheduling and control.
I have to run 24 jobs (could be more sometimes less) of the same programme with different parameters. The machine this code is running on is an 8-core machine, so I was thinking that running all the processes at once... (0 Replies)
Discussion started by: deiphon
0 Replies
5. AIX
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
6. UNIX for Dummies Questions & Answers
Hello, i'm absolutely new to the whole Operating Systems thing. I am pretty much level 0.
My assignment is to "simulate the execution of a stream of processes by a computer system, one CPU, many terminals 12 disk drives, 30 public mailboxes.
The professor runs a series of inputs which is a... (1 Reply)
Discussion started by: JaneSkylar
1 Replies
7. Cybersecurity
I'm working on developing a patch policy for a mid-size and quickly growing company. Patches have been at the bottom of the totem pole for years. I possess the ability and care enough to straighten it out. However I'd like some others input on the best way to handle the patch policy.
From when... (1 Reply)
Discussion started by: jlouki01
1 Replies
8. AIX
I need help. I have set a password policy. But I want to dis allow setting user name as password.
My policy is as below...
min length =8
min diff=2
min alpha=2
max repeats=2
dictionary= /usr/share/dict/words
Still user can set his username as password (i.e. Jackie1234).
Code tags for... (11 Replies)
Discussion started by: powerAIX
11 Replies
9. Shell Programming and Scripting
I want to extract the process having highest utilization on each processor core
and then output its information (PID etc.) to a file. How can I do it by using either top or ps command?
Thanks. (1 Reply)
Discussion started by: Vaibhavs1985
1 Replies
CHRT(1) Linux User's Manual CHRT(1)
NAME
chrt - manipulate real-time attributes of a process
SYNOPSIS
chrt [options] prio command [arg]...
chrt [options] -p [prio] pid
DESCRIPTION
chrt(1) sets or retrieves the real-time scheduling attributes of an existing PID, or runs COMMAND with the given attributes. Both policy
(one of SCHED_OTHER, SCHED_FIFO, SCHED_RR, SCHED_BATCH, or SCHED_IDLE) and priority can be set and retrieved.
The SCHED_BATCH policy is supported since Linux 2.6.16. The SCHED_IDLE policy is supported since Linux 2.6.23.
The SCHED_RESET_ON_FORK flag for policies SCHED_RR and SCHED_FIFO is supported since Linux 2.6.31.
OPTIONS
-p, --pid
operate on an existing PID and do not launch a new task
-b, --batch
set scheduling policy to SCHED_BATCH (Linux specific)
-f, --fifo
set scheduling policy to SCHED_FIFO
-i, --idle
set scheduling policy to SCHED_IDLE (Linux specific)
-m, --max
show minimum and maximum valid priorities, then exit
-o, --other
set policy scheduling policy to SCHED_OTHER
-r, --rr
set scheduling policy to SCHED_RR (the default)
-R, --reset-on-fork
add SCHED_RESET_ON_FORK flag to the SCHED_FIFO or SCHED_RR scheduling policy (Linux specific)
-v, --verbose
show status information
-h, --help
display usage information and exit
-V, --version
display version information and exit
USAGE
The default behavior is to run a new command::
chrt prio command [arguments]
You can also retrieve the real-time attributes of an existing task:
chrt -p pid
Or set them:
chrt -p prio pid
PERMISSIONS
A user must possess CAP_SYS_NICE to change the scheduling attributes of a process. Any user can retrieve the scheduling information.
NOTES
Only SCHED_FIFO, SCHED_OTHER and SCHED_RR are part of POSIX 1003.1b Process Scheduling. The other scheduling attributes may be ignored on
some systems.
AUTHOR
Written by Robert M. Love.
COPYRIGHT
Copyright (C) 2004 Robert M. Love
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
SEE ALSO
taskset(1), nice(1), renice(1)
See sched_setscheduler(2) for a description of the Linux scheduling scheme.
AVAILABILITY
The chrt command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
schedutils June 2010 CHRT(1)