11-16-2009
Why do you need that ?
Is this homework ?
Why don't you answer the questions asked in post #4 ?
In any case, you cannot guarantee a process will use 90% of a CPU or 90% of all CPUs. That depends on CPU availability/ what other processes and the kernel are doing.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
What command do you use to verify if the CPU utilization. Example. If the CPU is at 98%?
Thanks (4 Replies)
Discussion started by: kimosilk
4 Replies
2. UNIX for Advanced & Expert Users
On user complains about the performance of web application, as a part application support, we use following commands to see the CPU utilization in the UNIX using ‘sar' command. Some times it goes below 20 and even reaches 0.
HLW$~> sar -u 10 60
SunOS HLW 5.8 Generic_117350-14 sun4u ... (2 Replies)
Discussion started by: thinakarmani
2 Replies
3. UNIX for Dummies Questions & Answers
Hi, iam new to AIX and had a basic question.
I was asked to give a chart of CPU utilization in percentage for every hour.
where can i look for information and which column should i look at?
I would be very thankful if somebody could respond.
Thanks!
karthik (1 Reply)
Discussion started by: karthikosu
1 Replies
4. Shell Programming and Scripting
Dear friends,
I am doing a report daily for all most 30 more serves... i need to check out CPU utlization bu (top command, 100 - (ideal value))
and Memory utilization too
could some one help me how can i get it directly, if scripts also no problem..
i will very thankful if some one... (3 Replies)
Discussion started by: bullz26
3 Replies
5. Shell Programming and Scripting
Hi to All,
Would you please help me.
I would like to know, In Unix How to know CPU utilization for every process.
Thanks in Advance.
Thanks,
Divyang (3 Replies)
Discussion started by: div_Neev
3 Replies
6. UNIX for Dummies Questions & Answers
hi,
i want to know cpu utilizatiion per process per cpu..for single processor also if multicore in linux ..to use these values in shell script to kill processes exceeding cpu utilization.ps (pcpu) command does not give exact values..top does not give persistant values..psstat,vmstat..does njot... (3 Replies)
Discussion started by: pankajd
3 Replies
7. AIX
Hi All,
Can some one help me in finding % CPU Utilization ?
From VMSTAT command, How we can find % utilization ?
Thanks (3 Replies)
Discussion started by: VBudatha
3 Replies
8. Shell Programming and Scripting
I know how to check the CPU utilization and memory space
like:
vmstat
top
free
What i want ot check on my linux system is...
how much CPU are available on my system and do i need to put extra CPU.
Also need to check the hardware configuration and the space related to the same
... (3 Replies)
Discussion started by: j_panky
3 Replies
9. UNIX for Advanced & Expert Users
Hi,
any commande on AIX 6.1 that shows me total CPU utilization ?
I saw curt in documentation but there should be a trace file before.
Thank you. (1 Reply)
Discussion started by: big123456
1 Replies
10. Red Hat
Hi,
i am new to linux/RHEL 6.0 and i have two questions.
1) How to get the CPU utilization and Memory Utilization of all Services running currently?
2) How to get the CPU utilization and Memory Utilization of all Applications running currently?
Please help me to find the script.
... (2 Replies)
Discussion started by: nossam
2 Replies
LEARN ABOUT NETBSD
psrset
PSRSET(8) BSD System Manager's Manual PSRSET(8)
NAME
psrset -- control processor sets
SYNOPSIS
psrset [setid ...]
psrset -a setid cpuid ...
psrset -b setid pid ...
psrset -c [cpuid ...]
psrset -d setid
psrset -e setid command
psrset -i [setid ...]
psrset -p
psrset -r cpuid ...
psrset -u pid ...
DESCRIPTION
The psrset command can be used to control and inspect processor sets.
The system always contains at least one processor set: the default set. The default set must contain at least one online processor (CPU) at
all times.
Available options:
-a Assign one or more processors (CPUs) to the set setid. In the current implementation, a CPU may only be present in one set. CPU IDs
are as reported and used by the cpuctl(8) command.
-b Bind one or more processes to the set setid. All LWPs within the processes will be affected. Bindings are inherited when new LWPs
or processes are forked. However, setting a new binding on a parent process does not affect the bindings of its existing child pro-
cesses.
-c Create a new processor set. If successful, the ID of the new set will be printed. If a list of CPU IDs is provided, those CPUs will
be assigned to the set upon creation. Otherwise, the set will be created empty.
-d Delete the processor set specified by setid. Any LWPs bound to the set will be re-bound to the default processor set.
-e Execute a command within the processor set specified by setid.
-i List all processor sets. For each set, print the member CPUs. If psrset is run without any options, it behaves as if -i were given.
-p List all CPUs. For each CPU, print the associated processor set.
-r Remove a CPU from its current set, and return it back to the default processor set.
-u Bind the specified processes to the system default processor set.
SEE ALSO
pset(3), cpuctl(8), schedctl(8)
HISTORY
The psrset command first appeared in NetBSD 5.0.
BSD
September 23, 2008 BSD