Solved

System monitor for SCO Open Server 5.0.5

Posted on 2004-03-26
3
1,213 Views
Last Modified: 2013-12-16
How can I find out what resources are being used by my Unix Box?  I want to see something where I can see what processes are using the processor, memory & disk and to what extent.

Something like the task manager in Windows where each process is listed and you can view the memory usage, processor usage etc...


0
Comment
Question by:saunaG
  • 2
3 Comments
 
LVL 20

Accepted Solution

by:
tfewster earned 500 total points
ID: 10694031
`ps` can show you CPU & memory usage per process; Check the man page, but a couple of examples would be:
ps -ef   # Show "full" output for all processes
ps -e -o args -o user -o pcpu -o vsz    # Equivalent to the info Windows task manager gives

`sar` can be used to keep track of overall system performance
0
 

Author Comment

by:saunaG
ID: 10705125
thats some good stuff, thanks.
When I posted this my disks were going crazy with activity.  Since there is noting in ps regarding disk activity, is it safe to assume that whatever was making the disks work so hard would probably have a high value for %CPU usage?

When I run the command now, (disks are quiet) no process is over 1%, do you think whatever was writing to disk would be significantly higher?

Cheers!
0
 
LVL 20

Expert Comment

by:tfewster
ID: 10707492
Unfortunately there's no easy answer to that - In general you would expect to see a correlation, but a badly designed database query could do huge amounts of  input/output and use very little real CPU;  Or many concurrent users/processes can fill physical memory up so that the system starts swapping processes out to swap (disk), which is very slow.

The first thing to do is to get some baseline figures when the system is running normally;  Have sar running all the time to collect stats every 10 minutes or so; Save the output of ps to a file so you have something to compare against when the system is heavily loaded.  I can't remember if OpenServer has the `top` command - If so, that gives a handy snapshot of system performance.

Work out how your disks are laid out; Conventional wisdom says operating system, applications programs and data should be on seperate physical disks, so you can see from the disk activity where the bottleneck is; Once you know how the system works in real life, you can juggle data locations to spread the load best.

http://docsrv.sco.com:507/en/PERFORM/CONTENTS.html is a detailed performance tuning guide - Read the section on Quick system tuning for some common problems/symptoms and suggestions on resolving them. You may have to buy more memory, disks or faster CPUs to get the performance you want, but the guide will help you get the most out of what you already own.

http://www.sarcheck.com/scosr5.htm claims to monitor & analyse performance and makes tuning recommendations, if you need quick fixes and don't have time to become a SCO guru ;-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now