Tried that out too, but is the same as %CPU in aux; man page:
Code:
pcpu
Indicates the ratio of CPU time used to CPU time available, expressed as a percentage. The default header for
this field is %CPU.
---------- Post updated at 01:55 PM ---------- Previous update was at 01:40 PM ----------
An update for the C column - not sure if you already found that; from the Performance Tools Handbook (Redbook):
Quote:
8.2.3 Displaying the processes in order of being penalized
The following command line is useful for determining which processes are being
penalized by the Virtual Memory Manager. See 1.2.2, “Processes and threads”
on page 6 for details about penalizing processes. The maximum value for the C
column is 120. The report in Example 8-6 displays the C column sorted in reverse
numerical order.
Example 8-6 Displaying the processes in order of being penalized
# ps -eakl | head -1 ; ps -eakl | sort -rn +5
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
303 A 0 1290 0 120 255 -- b016 8 - 8570:28 wait
303 A 0 1032 0 120 255 -- a815 8 - 8540:22 wait
303 A 0 774 0 120 255 -- a014 8 - 8568:09 wait
303 A 0 516 0 120 255 -- 9813 8 - 8590:49 wait
303 A 0 0 0 120 16 -- 9012 12 - 3:53 swapper
240001 A 0 25828 1 34 187 24 2040 1172 30bf6fd8 - 27:25 xmwlm
200001 A 0 36434 25250 4 181 20 da3e 460 pts/4 0:00 ps
240001 A 0 25250 29830 2 181 20 59ef 1020 pts/4 0:01 ksh
200001 A 0 36682 25250 2 181 20 69c9 300 30b4a6fc pts/4 0:00 sort
200001 A 0 34898 25250 2 181 20 4b6a 236 3098fce0 pts/4 0:00 head
...(lines omitted)...
Ignoring the wait processes, which will always show 120, the xmwlm process is
being penalized by the CPU. When this occurs, the process is awarded less CPU
time, thereby stopping xmwlm from monopolizing the CPU and giving more time
to the other processes.
---------- Post updated at 03:27 PM ---------- Previous update was at 01:55 PM ----------
Another update - you could check if any of the following produces any usable output for you:
Hi,
I have a process that can be seen after "ps aux" command.
However when I do "top" command. This process
cannot be seen.
How can this happen? Is there anything wrong
with my code? (3 Replies)
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Hi guys,
I am still kinda new to Linux.
Script template I found on the net and adapted for our environment:
#!/bin/sh
#set -x
ADMIN="admin@mydomain.com"
ALERT=10
df -H | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while read output;
do
#echo $output
... (2 Replies)
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)
The system don't boot.
on the screen appears following:
press enter to maintenance (or type CTRL-D to continue)...I checked with format command.
... the slices "0-root","1-swap","2-backup" exist.
...the slises "3-var","6-usr" -unassigned. :( (16 Replies)
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
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)
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
LEARN ABOUT NETBSD
cpuset_set
CPUSET(3) BSD Library Functions Manual CPUSET(3)NAME
cpuset_create, cpuset_destroy, cpuset_zero, cpuset_set, cpuset_clr, cpuset_isset, cpuset_size -- dynamic CPU sets
SYNOPSIS
#include <sched.h>
cpuset_t *
cpuset_create(void);
void
cpuset_destroy(cpuset_t *set);
void
cpuset_zero(cpuset_t *set);
int
cpuset_set(cpuid_t cpu, cpuset_t *set);
int
cpuset_clr(cpuid_t cpu, cpuset_t *set);
int
cpuset_isset(cpuid_t cpu, const cpuset_t *set);
size_t
cpuset_size(const cpuset_t *set);
DESCRIPTION
This section describes the functions used to create, set, use and destroy the dynamic CPU sets.
This API can be used with the POSIX threads, see pthread(3) and affinity(3).
The ID of the primary CPU in the system is 0.
FUNCTIONS
cpuset_create()
Allocates and initializes a clean CPU-set. Returns the pointer to the CPU-set, or NULL on failure.
cpuset_destroy(set)
Destroy the CPU-set specified by set.
cpuset_zero(set)
Makes the CPU-set specified by set clean, that is, memory is initialized to zero bytes, and none of the CPUs set.
cpuset_set(cpu, set)
Sets the CPU specified by cpu in set. Returns zero on success, and -1 if cpu is invalid.
cpuset_clr(cpu, set)
Clears the CPU specified by cpu in the CPU-set set. Returns zero on success, and -1 if cpu is invalid.
cpuset_isset(cpu, set)
Checks if CPU specified by cpu is set in the CPU-set set. Returns the positive number if set, zero if not set, and -1 if cpu is
invalid.
cpuset_size(set)
Returns the size in bytes of CPU-set specified by set.
SEE ALSO affinity(3), pset(3), sched(3), schedctl(8), kcpuset(9)HISTORY
The dynamic CPU sets appeared in NetBSD 5.0.
BSD November 2, 2011 BSD