ps report (on tru64)


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users ps report (on tru64)
# 1  
Old 03-06-2007
ps report (on tru64)

hi,
i have 10 processes running on a tru64
machine with 16 cpu. when i am checking the states of these processes
with ps command, i saw that almost never more than 3 of them are in the
R(unning) state. (generally they are in the S(leeping) state).

although there are many other processes running on the same machine,
my expectation is to see most of my processes in the running state,
because top reports generally we have 20%-50% idle cpu,

even if they are waiting for some resource (e.g: io), they should be
in U(ninterruptable) state, am i wrong?

how can this sleeping state problem can be explained?
# 2  
Old 03-06-2007
If a process is waiting for a resource it will almost always be asleep and will be woken by the kernel when the resource is available. CPU's do not simply run processes...it might be running kernel code to make those needed resources available. An idle CPU is looping repeatedly scanning the run queue looking for something to do... no other state is counted as idle.

The exception to sleeping for a resource is spinlocking...just looping until the resource is free (because the resource is expected to be locked very briefly). This happens in the kernel in an SMP environment. 16 cpus is a lot and you probably spend a fair amount of time spinlocked. Spinlocking if why you can't have unlimited numbers of cpu's on an SMP box...you reach a point where you spinlock too much.
# 3  
Old 03-07-2007
S(leeping) state means that process is waiting for a resource.
then, is it possible to determine what is that resource?
process is waiting for what?
using lsof, iostat,netstat,vmstat or something else on tru64?

thanks in advance
# 4  
Old 03-07-2007
Well, I have never used Tru64, so I'm not sure how hard that will be. But at some level the answer is yes, it is possible. A sleeping process will have a value usually called a "wait channel" that relates to what it is waiting for. ps often can display this field labelled "WCHAN" or something like that. It is a address in the kernel's memory space. Sometimes you can figure it out with adb. Some recent BSD versions actually decode this field. HP has a product called Glance that can decode it for HP-UX. I know that HP has a version of Glance for Solaris. I don't know if they have one for Tru64 or not. If they do, it is worth getting. It is the best performance tool I have seen.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

[Solved] Tru64 vm

Hi, One of our old Digital Alpha Server has died (CPU Failure). I want to recover a file from that server. Backups were done via Networker, however, cross platform recovery is not supported and I don't have any other TRU64 server available. Is there a VM or Emulator available which can get... (1 Reply)
Discussion started by: Mack1982
1 Replies

2. UNIX for Dummies Questions & Answers

Tru64

Two part question, I was told that you can download Tru64 5.1b for free, is this true and if so where? Second part, could I load this on a XP Pro PC with vmware? (1 Reply)
Discussion started by: Troberts50
1 Replies

3. UNIX for Dummies Questions & Answers

tru64

hi i am trying to get ssh server on tru64 5.1 can anyone help? thanks ed. (1 Reply)
Discussion started by: deusprogrammer
1 Replies

4. HP-UX

HP-UX and Tru64

I had buy two old workstation: a Digital alpha 21164 and a HP C360... What version of tru64 on alpha and HP-UX on HP C360 run on those boxes? Where i can buy/download a small/workstation-base (if exists) version of those operating system ? Tnx in advance (1 Reply)
Discussion started by: antani
1 Replies

5. HP-UX

Unix HP Tru64

Hi experts, I hope someone can help me with these simple tasks as I am new in Unix environment. I need to create a file system for backup purpose, therefore I need to know the commands in Unix. 1) What is the command to check my disk drives to see how much available space is not allocated... (2 Replies)
Discussion started by: kingsto88
2 Replies

6. UNIX for Dummies Questions & Answers

Cannot boot Tru64

Hi, I just got an AlphaServer DS10 in my lap with a note 'Fix it !'. It's just that I'm not very good with unix. Anyways, it seems like the osf_boot file is missing from root. I can boot the server in singel user mode with the Tru64 5.1 cd and from there open a console window. When I checked... (0 Replies)
Discussion started by: magher
0 Replies

7. UNIX for Dummies Questions & Answers

Top in Tru64

Hi all. Anyone know what permissions or anything is needed to give users the privileges to see top statistics information ? I ask this because I have a user on which I execute top from and display just this info load averages: 0.49, 0.47, 0.46 ... (3 Replies)
Discussion started by: fidodido
3 Replies

8. UNIX for Dummies Questions & Answers

download TRU64

Does anybody know where did I find Tru64 Unix software ? (2 Replies)
Discussion started by: msudin
2 Replies
Login or Register to Ask a Question