[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Slightly Off Topic] processor speed



On Wed, Dec 05, 2001, Dan Kenigsberg wrote about "Re: [Slightly Off Topic] processor speed":
>...
> However, on Sun/Alpha the best I can do is run psrinfo, but it is
> problematic since those systems are in some cases assymetric - and I cannot tell
> on which cpu my proccess is running.

Assymetric in the sense that you have two or more CPUs of different speeds?
This is weird...

Anyway, on Solaris you can do "ps -P" to see which CPU your process is bound
to. If it is not bound to a specific CPU it might constantly (on every context
switch) be assigned to a different CPU, so you'd have no idea what effective
CPU speed your program is getting. So, see pbind(1) on how to bind your process
to a specific CPU (for which psrinfo will give you its MHz value, whatever
that means...).

[not that this has anything to do with Linux...]

-- 
Nadav Har'El                        |   Wednesday, Dec  5 2001, 20 Kislev 5762
nyh@math.technion.ac.il             |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |Boat: A hole in the water surrounded by
http://nadav.harel.org.il           |wood into which one pours money.

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il