01-12-2011
The CPU in use by a process may vary for every run time slice, although for some situations it helps to run the same lwp on the same CPU if possible.
Maybe with some wide ps options (w or x, it varies), you can see what the java proc is running. You can make the interval lower, and see who shows up often. Sometimes the scheduling column changes, and you need a ps -o (as I recall) with specific columns relevant to who is using how much of what.
Top is great, too, but can be a bit busy and leaves no log.
10 More Discussions You Might Find Interesting
1. Solaris
Good morning,
I need some help figuring out what's eating up my cpu. My application can't get enough cpu to do its job. this is a sunfire V440 2CPU's at 1/593 GHZ with 8GB of memory. In the morning hours the box is at less than 3%. I can't figure out what else is using the CPU. We use foglight and... (2 Replies)
Discussion started by: bbouhaik
2 Replies
2. AIX
Hi am facing high cpu utilization on my sybase server.
I have P550
Number Of Processors: 4
Processor Clock Speed: 1656 MHz
CPU Type: 64-bit
Kernel Type: 32-bit
LPAR Info: 1 65-D837E
Memory Size: 7840 MB
in topas it shows
Name PID CPU% PgSp Owner
dataserv 565264 ... (1 Reply)
Discussion started by: vjm
1 Replies
3. Solaris
In Production system there is 12 Non-Global Zones. So in that 12 Non-Global zones one of the Non-Global zone taking 60-70% CPU usage and load average become very high.
Running processors are 52 only.
Please advise me is there any way to reduce the CPU sharing Utilization. (Most Urgent)
... (9 Replies)
Discussion started by: murthy76
9 Replies
4. Shell Programming and Scripting
Hi All,
i have a script that finds the file with .txt .zip .Z .gzip that are 3 days old in directory /abc/def and removes them
find /abc/def -name '0*.txt' -mtime +6 -exec rm {} \;
find /abc/def -name '0*.zip' -mtime +6 -exec rm {} \;
find /abc/def -name '0*.gzip' -mtime +6... (3 Replies)
Discussion started by: mad_man12
3 Replies
5. Shell Programming and Scripting
There is a script which processes the incoming files from a particular directory and sleeps if it doesnt find any. Currently, i have been told that eventhough there are no files to process, the CPU utilization is very high. An independent evaluation by advisory specialist has found this script does... (2 Replies)
Discussion started by: nandu
2 Replies
6. Solaris
Hi,
I am working on a solaris app processor and the vsh goes high from time to time. I have executed various ps commands and switches and have found that it looks like the rlogind daemon is terminating vsh and not cleaning up after itself. There are also something like 10 zombies hanging around... (2 Replies)
Discussion started by: troystevens
2 Replies
7. Shell Programming and Scripting
Hello all,
I am very new to unix and trying to solve this problem.
I have cluster of 3 nodes. when I run TOP command on each server, I see a two GZIP processess with very high CPU utilization even,if I don't go backups or unzipping.
Can somebody tell me what is the problem, I don't want... (1 Reply)
Discussion started by: nnani
1 Replies
8. UNIX for Advanced & Expert Users
Hi,
i am observing few processes taking high CPU and when i got some more detials about them it looks like this
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
9452 xmp 25 0 16736 1224 860 R 100.0 0.0 903:54.18 ffmpeg -i -
9777 xmp 25 0 16736 1224 ... (1 Reply)
Discussion started by: Siddheshk
1 Replies
9. Red Hat
Hi Experts,
I need to understand few basic things regarding top command result from one of the node i have collected:
Cpu0 : 4.6%us, 2.0%sy, 0.0%ni, 91.4%id, 1.3%wa, 0.3%hi, 0.3%si, 0.0%st
Cpu1 : 0.0%us, 0.3%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Cpu2 : ... (5 Replies)
Discussion started by: mackjack87
5 Replies
10. Red Hat
Hi,
Please suggest how to troubleshoot, kswapd is utilizing high cpu?
also wanted to know which parameters are important and needs to be added with sar command for monitoring the performance of Linux (Oracle 5.8 -64 bit
Please guide me.
I am facing the issue where server is getting... (0 Replies)
Discussion started by: manoj.solaris
0 Replies
IONICE(1) User Commands IONICE(1)
NAME
ionice - set or get process I/O scheduling class and priority
SYNOPSIS
ionice [-c class] [-n level] [-t] -p PID...
ionice [-c class] [-n level] [-t] -P PGID...
ionice [-c class] [-n level] [-t] -u UID...
ionice [-c class] [-n level] [-t] command [argument...]
DESCRIPTION
This program sets or gets the I/O scheduling class and priority for a program. If no arguments or just -p is given, ionice will query the
current I/O scheduling class and priority for that process.
When command is given, ionice will run this command with the given arguments. If no class is specified, then command will be executed with
the "best-effort" scheduling class. The default priority level is 4.
As of this writing, a process can be in one of three scheduling classes:
Idle A program running with idle I/O priority will only get disk time when no other program has asked for disk I/O for a defined grace
period. The impact of an idle I/O process on normal system activity should be zero. This scheduling class does not take a priority
argument. Presently, this scheduling class is permitted for an ordinary user (since kernel 2.6.25).
Best-effort
This is the effective scheduling class for any process that has not asked for a specific I/O priority. This class takes a priority
argument from 0-7, with a lower number being higher priority. Programs running at the same best-effort priority are served in a
round-robin fashion.
Note that before kernel 2.6.26 a process that has not asked for an I/O priority formally uses "none" as scheduling class, but the
I/O scheduler will treat such processes as if it were in the best-effort class. The priority within the best-effort class will be
dynamically derived from the CPU nice level of the process: io_priority = (cpu_nice + 20) / 5.
For kernels after 2.6.26 with the CFQ I/O scheduler, a process that has not asked for an I/O priority inherits its CPU scheduling
class. The I/O priority is derived from the CPU nice level of the process (same as before kernel 2.6.26).
Realtime
The RT scheduling class is given first access to the disk, regardless of what else is going on in the system. Thus the RT class
needs to be used with some care, as it can starve other processes. As with the best-effort class, 8 priority levels are defined
denoting how big a time slice a given process will receive on each scheduling window. This scheduling class is not permitted for an
ordinary (i.e., non-root) user.
OPTIONS
-c, --class class
Specify the name or number of the scheduling class to use; 0 for none, 1 for realtime, 2 for best-effort, 3 for idle.
-n, --classdata level
Specify the scheduling class data. This only has an effect if the class accepts an argument. For realtime and best-effort, 0-7 are
valid data (priority levels), and 0 represents the highest priority level.
-p, --pid PID...
Specify the process IDs of running processes for which to get or set the scheduling parameters.
-P, --pgid PGID...
Specify the process group IDs of running processes for which to get or set the scheduling parameters.
-t, --ignore
Ignore failure to set the requested priority. If command was specified, run it even in case it was not possible to set the desired
scheduling priority, which can happen due to insufficient privileges or an old kernel version.
-h, --help
Display help text and exit.
-u, --uid UID...
Specify the user IDs of running processes for which to get or set the scheduling parameters.
-V, --version
Display version information and exit.
EXAMPLES
# ionice -c 3 -p 89
Sets process with PID 89 as an idle I/O process.
# ionice -c 2 -n 0 bash
Runs 'bash' as a best-effort program with highest priority.
# ionice -p 89 91
Prints the class and priority of the processes with PID 89 and 91.
NOTES
Linux supports I/O scheduling priorities and classes since 2.6.13 with the CFQ I/O scheduler.
AUTHORS
Jens Axboe <jens@axboe.dk>
Karel Zak <kzak@redhat.com>
SEE ALSO
ioprio_set(2)
AVAILABILITY
The ionice command is part of the util-linux package and is available from https://www.kernel.org/pub/linux/utils/util-linux/.
util-linux July 2011 IONICE(1)