07-16-2009
Solaris uses swap. AIX utilizes paging space. /usr/sbin/syncd does the appropriate task in AIX.
Swapper/syncd do not start the init service. They are responsible for cleaning/recovering virtual memory.
Here is a link that explains why paging is better than swap:
http://www.xent.com/FoRK-archive/may98/0300.html
Last edited by Padow; 07-16-2009 at 03:13 PM..
Reason: Added link
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Friends :p
I have a little problem please help me out. I have a Unix based OS Sun Server having oracle 8i as database on it. The server has one client with windows OS. The client uses developer 2000 (GUI) to run query and run processes. I want to know how can I know the PID of a process run... (3 Replies)
Discussion started by: vanand420
3 Replies
2. Solaris
hi all,
Is there a simple script anyone could through out to me, to find the pid of a process given the name. I actually need to bind this pid to a processor set. I would probably put these comamns in a shell script which would have.
a) kick start the executable
b) get the pid
c) bind it to a... (10 Replies)
Discussion started by: Naanu
10 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I need to get the pid of a process and have to store the pid in a variable and i want to use this value(pid) of the variable for some process. Please can anyone tell me how to get the pid of a process and store it in a variable. please help me on this.
Thanks in advance,
Amudha (7 Replies)
Discussion started by: samudha
7 Replies
4. Shell Programming and Scripting
Hi
I have written a shell script to find and kill the particular process. Here in shell script i have written the code like
cnt = $(ps -ef | grep Shree)
echo $cnt
I am getting the output
root 2326 2317 0 14:39:46 pts/1 0:28 Shree -f fdc.fbconf FDCapp.fbapp
Here I want to... (2 Replies)
Discussion started by: Shreedhar Naik
2 Replies
5. Shell Programming and Scripting
Hi all,
i was able to redirect pid of process to a file in the following way
ps aux|awk '$11 == "/Applications/ProjectX/DServer" >> /Applications/ProjectX/DServer.pid
it works fine but if one folder name caontains space its not working like below
ps aux|awk '$11 == "/Applications/Project\... (1 Reply)
Discussion started by: kirankumars
1 Replies
6. Programming
How do I run a process from a C++ p_thread and obtain its PID? Right now I am doing in a p_thread:
system("ampl method.run");
and into the main function (after running the thread mentioned before):
sleep(5); //Just to be sure that the thread is executing the ampl command
system("ps... (1 Reply)
Discussion started by: riccollado
1 Replies
7. Programming
Hi
I use linux OS.
I've already written a function that allow me to get the process name by pid. (searching in /proc). Now I'd like to perform the inverse task.I mean get the process pid by its name.
I could write a function that search in every folder in /proc for the process name, but i... (2 Replies)
Discussion started by: Dedalus
2 Replies
8. HP-UX
Hi all.
I need to get detailed information about a PID.
I have an app called Reflection X and it shows many things like Total CPU percent, User CPU (Nice) percent, FS Reads, etc.
My question is how can I get all that information on console?
Is there an archive with the detailed... (9 Replies)
Discussion started by: the0m3n
9 Replies
9. AIX
HI,
i used
ps -ef | grep 3539052 | grep -v grep
and i got a output like ths
root 3539052 3407918 0 May 07 - 709:31 /usr/sbin/syslogd
but what i need is instead of full path /usr/sbin/syslogd i want only the process name that is 'syslogd' here. (3 Replies)
Discussion started by: sumanthupar
3 Replies
10. AIX
Hi,
Below is the code snippet I use on Linux (Centos) to retrieve the Process Name, PID and memory consumed on Linux (Centos) host:-
top -b -n 1 | awk -v date="$tdydate" -v ip="$ip" 'NR>7 {print date","ip","$12,","$1,","$10}'
Any idea how the same can be retrieved on an AIX host? This... (1 Reply)
Discussion started by: Vipin Batra
1 Replies
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)