07-21-2005
Hi guys,
I think I've found it. The default priority was set in the program to SCHED_FIFO. Unfortunatly this is only allowed for root on the linux environment (unlike solaris?!).
I only wonder why it does not have the same problem if I link dynamicly. If somebody could answer me that I would be really greatful, because I really want to understand what I am doing.
Grtz,
Miriam
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm kicking Unix questions out like Bruce Lee. So I'm copying a directory of files, in each directory I inevitablly get this:
I get that for usually the same set of directories/files in each folder. Is there a way to override this when copying files? (4 Replies)
Discussion started by: JPigford
4 Replies
2. UNIX for Dummies Questions & Answers
I have a c-source file that is evidently seen by unix as a binary file. When doing a diff between it and older versions with substantial differences, diff will only return "files differ".
I have tried cat-ing the file to another file; tried using the "-h" on the diff; I have tried ftp-ing it... (7 Replies)
Discussion started by: C-Prog-Man
7 Replies
3. Shell Programming and Scripting
Greetings, using ksh on Solaris, I am trying to identify the current version of a package installed on multiple servers using if statement in a precursor to upgrading.
I have searched the forums and have found many hits, reviewed 3 pages and have tried the different variations noted there. Also... (3 Replies)
Discussion started by: 22blaze
3 Replies
4. UNIX for Dummies Questions & Answers
Does anyone know why this could be happening? User tries to save into a directory, but gets the error message.
I checked permissions on directory and see the following:
drwxrwxr-x 10 root pm 1024 Nov 22 14:46 Folder 1
drwxrwxr-x 10 root pm 1024 Oct 19 ... (1 Reply)
Discussion started by: scrivic
1 Replies
5. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
6. Solaris
Hello,
I am supposed to check the RAID health of a system but when I type metastat it says "there are no existing databases"
Does this mean that there is no RAID configured at all? Is there any other utility I should try?
I know the system has two disks.
Tanks! (8 Replies)
Discussion started by: cevspencer
8 Replies
7. Solaris
I provision Solaris10 using jumpstart. I know we can enable IPv6 by setting protocol_ipv6=yes in the sysidcfg file. Is there a way to assign Static IPv6 address using sysidcfg/jumpstart method (1 Reply)
Discussion started by: hemalsid
1 Replies
8. Shell Programming and Scripting
Hello All,
I am running source command on my project configuration file app.cfg which has conditional statements with make file systax E.g ifeq ($(APP_CMP_DIR),trunk).
When I source this file it throws error: syntax error near unexpected token... (1 Reply)
Discussion started by: anand.shah
1 Replies
9. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT OPENSOLARIS
chrt
CHRT(1) User Commands CHRT(1)
NAME
chrt - manipulate the real-time attributes of a process
SYNOPSIS
chrt [options] priority command [argument...]
chrt [options] -p [priority] pid
DESCRIPTION
chrt sets or retrieves the real-time scheduling attributes of an existing pid, or runs command with the given attributes.
POLICIES
-o, --other
Set scheduling policy to SCHED_OTHER. This is the default Linux scheduling policy.
-f, --fifo
Set scheduling policy to SCHED_FIFO.
-r, --rr
Set scheduling policy to SCHED_RR. When no policy is defined, the SCHED_RR is used as the default.
-b, --batch
Set scheduling policy to SCHED_BATCH (Linux-specific, supported since 2.6.16). The priority argument has to be set to zero.
-i, --idle
Set scheduling policy to SCHED_IDLE (Linux-specific, supported since 2.6.23). The priority argument has to be set to zero.
-d, --deadline
Set scheduling policy to SCHED_DEADLINE (Linux-specific, supported since 3.14). The priority argument has to be set to zero. See
also --sched-runtime, --sched-deadline and --sched-period. The relation between the options required by the kernel is runtime <=
deadline <= period. chrt copies period to deadline if --sched-deadline is not specified and deadline to runtime if --sched-runtime
is not specified. It means that at least --sched-period has to be specified. See sched(7) for more details.
SCHEDULING OPTIONS
-T, --sched-runtime nanoseconds
Specifies runtime parameter for SCHED_DEADLINE policy (Linux-specific).
-P, --sched-period nanoseconds
Specifies period parameter for SCHED_DEADLINE policy (Linux-specific).
-D, --sched-deadline nanoseconds
Specifies deadline parameter for SCHED_DEADLINE policy (Linux-specific).
-R, --reset-on-fork
Add SCHED_RESET_ON_FORK flag to the SCHED_FIFO or SCHED_RR scheduling policy (Linux-specific, supported since 2.6.31).
OPTIONS
-a, --all-tasks
Set or retrieve the scheduling attributes of all the tasks (threads) for a given PID.
-m, --max
Show minimum and maximum valid priorities, then exit.
-p, --pid
Operate on an existing PID and do not launch a new task.
-v, --verbose
Show status information.
-V, --version
Display version information and exit.
-h, --help
Display help text and exit.
USAGE
The default behavior is to run a new command:
chrt priority command [arguments]
You can also retrieve the real-time attributes of an existing task:
chrt -p pid
Or set them:
chrt -r -p priority 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.
Linux' default scheduling policy is SCHED_OTHER.
SEE ALSO
nice(1), renice(1), taskset(1), sched(7)
See sched_setscheduler(2) for a description of the Linux scheduling scheme.
AUTHORS
Robert Love <rml@tech9.net>
Karel Zak <kzak@redhat.com>
AVAILABILITY
The chrt command is part of the util-linux package and is available from https://www.kernel.org/pub/linux/utils/util-linux/.
util-linux January 2016 CHRT(1)