- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to Know frequency of CPUs
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 02:02 AM
06-17-2004 02:02 AM
How to Know frequency of CPUs
How can I know frequency of CPUs on HP UX system ? Plz note that i don't have root priviledge. Like in Solaris command is
/usr/sbin/psrinfo -v
This command does not require root priviledge in solaris. Every general user can run this command. Please tell me same function command on HP UX system.
Thanks in Advance
Peeyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 02:07 AM
06-17-2004 02:07 AM
Re: How to Know frequency of CPUs
launch SAM:
# sam ---> Performance Monitor ---> System Properties ---> clock frequency
Otherwise by commandline:
# echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem
It will obtain a number which will be the CPU frequency.
HTH.
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 02:19 AM
06-17-2004 02:19 AM
Re: How to Know frequency of CPUs
dynamic site you can compare 2 or more OSs...
http://bhami.com/rosetta.html
Another static site...
http://www.unixguide.net/unixguide.shtml
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 02:23 AM
06-17-2004 02:23 AM
Re: How to Know frequency of CPUs
SAM won't help me beacuse i am connected with server with telnet and command adb i think require root permission.
plz some other solution.
Regards,
Peeyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 02:23 AM
06-17-2004 02:23 AM
Re: How to Know frequency of CPUs
HPUX=/stand/vmunix
MHZ=$(echo itick_per_tick/D \
| adb -k $HPUX /dev/kmem \
| tail -1 \
| awk '{print $2/10000}')
echo $MHZ
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 02:25 AM
06-17-2004 02:25 AM
Re: How to Know frequency of CPUs
Thats all I use on my boxes...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 02:29 AM
06-17-2004 02:29 AM
Re: How to Know frequency of CPUs
Here's a little script...
#!/bin/ksh
#
# Taken from the HP/UniGraphics FAQ
# You must be ROOT to execute this since it uses adb to
# examine the running kernel
#
GetKernelSymbol()
{
echo "$1/D" | \
adb -k $hpux /dev/kmem | \
tr "\012" " " | \
read junk junk2 kval
}
hpux=/hp-ux
rev=$(uname -r | cut -d. -f2)
if ((rev > 9)); then hpux=/stand/vmunix ;fi
/bin/uname -a
GetKernelSymbol "processor_count"
print CPU Count: $kval
GetKernelSymbol "itick_per_tick"
let speed=kval/10000
print CPU Speed: $speed MHz
if ((rev > 10)); then
print CPU HW Support: `getconf HW_CPU_SUPP_BITS`-bit
print Kernel Support: `getconf KERNEL_BITS`-bit
GetKernelSymbol "memory_installed_in_machine"
else
GetKernelSymbol "physmem"
fi
let mb=kval*4/1024 # convert pages to MB
print RAM Size: $mb MB
GetKernelSymbol "bufpages"
let mb=kval*4/1024 # convert pages to MB
print bufpages: $mb MB
GetKernelSymbol "maxuprc"
print maxuprc: $kval
GetKernelSymbol "maxvgs"
print maxvgs: $kval
GetKernelSymbol "maxfiles"
print maxfiles: $kval
GetKernelSymbol "max_thread_proc"
print max_thread_proc: $kval
GetKernelSymbol "nfile"
print nfile: $kval
GetKernelSymbol "nflocks"
print nflock: $kval
GetKernelSymbol "nproc"
print nproc: $kval
GetKernelSymbol "ninode"
print ninode: $kval
GetKernelSymbol "vfd_cw"
print shmmax: $kval
GetKernelSymbol "shmmni"
print shmmni: $kval
GetKernelSymbol "dbc_max_pct"
print dbc_max_pct: $kval
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 02:40 AM
06-17-2004 02:40 AM
Re: How to Know frequency of CPUs
Then it is not a problem if you are in telnet.
It is not possible to know it by a NOT-root user!
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 02:44 AM
06-17-2004 02:44 AM
Re: How to Know frequency of CPUs
kstat -m cpu_info
Bruno
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 02:49 AM
06-17-2004 02:49 AM
Re: How to Know frequency of CPUs
echo itick_per_tick/D | adb /hp-ux /dev/kmem | tail -n1 \
| awk '{print $2 / 10000, "MHZ"}'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 02:53 AM
06-17-2004 02:53 AM
Re: How to Know frequency of CPUs
echo "selclass qualifier cpu;info;wait;infolog"|cstm
One of the output lines will look like this:
Instruction Cache [Kbyte]: N/A Processor Speed: 875000000
for an 875 MHz processor.
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 02:56 AM
06-17-2004 02:56 AM
Re: How to Know frequency of CPUs
echo "selclass qualifier cpu;info;wait;infolog"|cstm
does not require root access, but you may have to specify the full path of /usr/sbin/cstm.
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 02:59 AM
06-17-2004 02:59 AM
Re: How to Know frequency of CPUs
anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2004 03:06 AM
06-17-2004 03:06 AM
Re: How to Know frequency of CPUs
What is my CPU speed?
d3:/ 103 # echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem
itick_per_usec:
itick_per_usec: 240
d3:/ 104 #
Or with Perl:
a5:/wrk 108 > perl -MUnix::Processors -le'print join"\t",$_->id,$_->state,$_->type,$_->clock for @{Unix::Processors->new()->processors}'
0 online HP PA-RISC 2.0 750
1 online HP PA-RISC 2.0 750
a5:/wrk 109 >
For the adb version one indeed does need root access. But you can get it without root access too, using a small C-program calling
if (pstat_getprocessor (&psp, sizeof (psp), 1, 0)) {
clock = psp.psp_iticksperclktick / 10000;
}
This is what the perl module does
My HP ITRC site pages can be found at (please use LA as primary choice):
USA Los Angeles http://mirrors.develooper.com/hpux/
SGP Singapore https://www.beepz.com/personal/merijn/
USA Chicago http://ww.hpux.ws/merijn/
NL Hoofddorp http://www.cmve.net/~merijn/
Enjoy, have FUN! H.Merijn