Any limitations to the "top" command?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Any limitations to the "top" command?
# 1  
Old 07-10-2002
Question Any limitations to the "top" command?

Anyone know of any limitations? Also, does anyone know a great way to determine which processes are hogging CPU?

TIA
# 2  
Old 07-10-2002
What OS and version and exactly what limitations to top? It should show what processes are hogging the CPU at any given time - else sar may give you a clue.

What is the system running (applications)? What are the complaints?
# 3  
Old 07-10-2002
AIX 4.3 type->PowerPC_RS64-III
4 - 450Mhz processors
12GB RAM

I guess an example might be when we are experiencing slow downs of our application, and we look at "top", it will tell us that we have 2GB of real memory free, yet there 3rd party reports that show we a paging A LOT. How can this be? We have 12GB total free memory.

Any ideas?
# 4  
Old 07-10-2002
It would help to know the application. Also, unless you have been watching this server and have a clear history of what it has done and where it has gone, there isn't much you can speculate at.

What has changed? Added many more users? Database (assumtion) has grown 2+ times as large?

Been awhile since I've played with AIX but there are many tools included with it that you should be able to utilize to find what may be causing problems - but first you have to be sure you know that this "paging" is really a problem. Don't always believe it just because someone says so. It could be as simple as a user running reports that should be done during the night.

Check what's running on the system during these times.
Get someone to call when they see the problem - someone you believe to be truthful and who knows what they are talking about.
Become friends with your DBA (if applicable) - they can give insight to the application database.

Check on IBM's web site for more tools and resources.
# 5  
Old 07-10-2002
Just to give you an idea of what were running:

Lawson Software application (ERP package similar to PeopleSoft)

Applications and database are on seperate servers, which are very similar.

800-900 users daily

Around 4:00pm EST EVERY DAY our applications batch job queue is jammed, and we can have 40-50 jobs "waiting" to run. According to "top", we have plenty of free memory available and CPU% never gets below 10 on any of the processors. Is this just too many users pounding away at the application at the same time? database issues? Everyone is trying to say it's memory, but I'm trying to convince them that it is the application.

Thanks for your input.
# 6  
Old 07-10-2002
Again, this is something that one would have to watch to really give a good answer to. You need to monitor the server, know how many users are on (especially during the times that folks are complaining about), have the DBA look into what is being done (what causes those 40 to 50 jobs to backup...a report that started at 15:00?) You need to start sar if it isn't already running (or some other type of monitoring software that you can get a report from)

Following run on our (SUN) servers - where we have the diskspace we leave a month's worth of data - else as much as we can (usually a week).

in sys crontab:
0,10,20,30,40,50 * * * 0-6 /usr/lib/sa/sa1

script sa1 (came with SUN OS and HP-UX - probably on AIX also)

working with one of the files from yesterday (off a server running Peoplesoft with limited users {it's being decommissioned}) where backups was the only time we had heavy hits...output of sar -qucgf /var/adm/sa/sa09 - would actual report for every 10 minutes.
00:00:01 pgout/s ppgout/s pgfree/s pgscan/s %ufs_ipf
01:00:00 0.02 0.04 0.04 0.00 0.00
01:10:01 3.94 23.59 118.25 442.87 0.00
01:20:00 1.12 1.29 0.98 0.26 0.00
01:30:00 1.58 1.72 0.73 0.21 0.00
.....
Average 0.68 1.70 2.58 4.06 0.00
# 7  
Old 07-11-2002
Quote:
Originally posted by lawadm1
Around 4:00pm EST EVERY DAY our applications batch job queue is jammed, and we can have 40-50 jobs "waiting" to run. According to "top", we have plenty of free memory available and CPU% never gets below 10 on any of the processors.
The very function of batch queue is to throttle the jobs. Let me describe the standard unix batch system....

The standard "batch" command that comes with unix is controlled by a file called queuedefs. If you don't turn the queuedefs file, then you get the defaults. And the defaults are that two jobs in the batch queue can be running at once. While two jobs are running, the other jobs wait. It doesn't matter how many cpu's or memory pages are idle. Two jobs is two jobs.

You can tune this if it's too low. But the idea is that batch jobs don't need to be run immediately. Putting a job in a batch queue and then complaining that the job isn't running immediately is a little odd. If you want to run a job immediately, simply run it.

Now I've been describing the standard unix batch system. But I'm guessing that your application's batch system is similiar. I would look carefully at the documentation for it to see if the number of jobs can be increased. Also remember that a batch system is reserving system resources so that they are available to non-batch jobs. You need to understand your mix of jobs. If everything is going through the batch system, you need to ask why.

And about paging... your os probably uses the paging system to get stuff into core. You want to ignore page-in's and look at page-out's.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

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)
Discussion started by: asjaiswal
2 Replies

2. UNIX for Dummies Questions & Answers

How to put "top" command in crontob?

Hi, how to put "top" command in crontab through script in suse linux. Below script is working fine, but it is not working when sheduled in crontab script scheduled in cron: health.sh --------- #! /bin/ksh top |head -5 >output.txt Thanks Suresh (3 Replies)
Discussion started by: suresh3566
3 Replies

3. HP-UX

Understanding "top" command

Hi all, I need a clarification about the top command in HP-UX. If I run: top -s300 I see the screen refresh every 5 minutes. From the "man top" I understand that the values displayed every 5 minutes are instantaneous, not average on the previous 5 minutes. Is this interpretation correct? ... (3 Replies)
Discussion started by: Evan
3 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

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

5. Shell Programming and Scripting

Retrieve RAM memory size from "top" command output

Hi, I am trying to get the system RAM size from "top" command's output by the following but it is not working. top | sed "s/^Mem.**\(*\), *//" (10 Replies)
Discussion started by: royalibrahim
10 Replies

6. AIX

AIX 5.3 - Discrepancies between "top" and "vmstat"

Can someone explain the differences I'm seeing below in TOP and VMSTAT commands on my AIX 5.3 server? Thanks! CPUs: 4; load averages: 0.86, 0.97, 0.97 18:09:26 926 processes: 4 stopped, 922 running CPU states: 78.4% idle, 8.5% user, 12.6% kernel, 0.3% wait Memory: 23680M Total.... (1 Reply)
Discussion started by: troym72
1 Replies

7. UNIX for Dummies Questions & Answers

start top command in "solaris mode"

Ever noticed that using the top command on a multiple cpu box can often give totally misleading answers, like 230%, when you think that 100% should be the max? Well, that's because top has a bizarre mode called "Irix mode" wherein if you have 4 cpus, the %CPU column of top can go up to 400%. I... (1 Reply)
Discussion started by: fabulous2
1 Replies

8. UNIX for Dummies Questions & Answers

running command "top" in cron

hi all, i would like to collect stat. about the cpu usage every 30 mins so, I set up the cron job sth like 0,30 * * * * * /usr/bin/top -d 1 >> $STAT i know cron doesn't have a TERM output, so error occurs. any ideas or work around for this?? many thanks (3 Replies)
Discussion started by: freddy1228
3 Replies

9. Shell Programming and Scripting

substr() limitations in "AWK" program..!!!

Is there any limitation for the function substr() Iam trying to assign some 11 digit number value to variable. And printing the variable. This is printing invalid values. cur_val=substr($0,36,11); printf "Current Value is: %d\n",cur_val I tried till 9 digits length, it was working fine. If... (6 Replies)
Discussion started by: lokiman
6 Replies

10. Debian

Debian: doubt in "top" %CPU and "sar" output

Hi All, I am running my application on a dual cpu debian linux 3.0 (2.4.19 kernel). For my application: <sar -U ALL> CPU %user %nice %system %idle ... 10:58:04 0 153.10 0.00 38.76 0.00 10:58:04 1 3.88 0.00 4.26 ... (0 Replies)
Discussion started by: jaduks
0 Replies
Login or Register to Ask a Question