10-05-2009
Processor and Its speed
Hi
I need a command to know how many processors are available and what is their speed in UNIX.
Thanks
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a D series HP server with HP UNIX 10.20 as the OS. How will I obtain the processor speed and memory of the machine. I have 'root' privileges. (4 Replies)
Discussion started by: augustinep
4 Replies
2. Solaris
how do i tell the processor speed on solaris 8? (2 Replies)
Discussion started by: csaunders
2 Replies
3. Filesystems, Disks and Memory
Hello,
I have a Supermicro server with a P4SCI mother board running Debian Sarge 3.1. This is the "dmidecode" output related to RAM info:
RAM speed information is incomplete.. "Current Speed: Unknown", is there anyway/soft to get the speed of installed RAM modules? thanks!!
Regards :)... (0 Replies)
Discussion started by: Santi
0 Replies
4. Shell Programming and Scripting
Hi Everyone
I am new to unix. I ahve few quries that i would like to post.
Is there any way by which i get the unique processor Id. Actually i am unable to find any logic and method to get access to Processor Id.
Is it possible to get it. I read it on Intel site that the new processor do no... (1 Reply)
Discussion started by: atul.saxena
1 Replies
5. AIX
Question is on setting of Physical and Virtual processors for LPARs to make proper use of virtualization capabilities.
Environment is a 8-way p570 with 4 LPARs.
lparVIO1 and lparVIO2:
AIX 5300-04-01
Mode/Type= Shared-SMT/Capped
Minimum Processors= 0.10
Desired Processors= 0.50
Maximum... (1 Reply)
Discussion started by: guttew
1 Replies
6. AIX
Guys...
Hows it going???
I have been going through the hardware spec of IBM system p systems.. and here i am confused
for IBM Power 520 Express it says
Processor cores:
One, two or four 64-bit 4.2 GHz POWER6 with AltiVec™ SIMD and Hardware Decimal Floating-Point acceleration
... (1 Reply)
Discussion started by: balaji_prk
1 Replies
7. UNIX for Dummies Questions & Answers
How to find out whether the system has multiple processors.
In multiprocessor system how to get their names or ids
How to send command to a particular processor ( can we use rsh) (6 Replies)
Discussion started by: anjum
6 Replies
8. Filesystems, Disks and Memory
I analysed disk performance with blktrace and get some data:
read:
8,3 4 2141 2.882115217 3342 Q R 195732187 + 32
8,3 4 2142 2.882116411 3342 G R 195732187 + 32
8,3 4 2144 2.882117647 3342 I R 195732187 + 32
8,3 4 2145 ... (1 Reply)
Discussion started by: W.C.C
1 Replies
9. UNIX for Dummies Questions & Answers
hello Admins,
how to find number of processor in unix machine. (2 Replies)
Discussion started by: vipinkumarr89
2 Replies
LEARN ABOUT LINUX
get_nprocs_conf
GET_NPROCS(3) Linux Programmer's Manual GET_NPROCS(3)
NAME
get_nprocs, get_nprocs_conf - get number of processors
SYNOPSIS
#include <sys/sysinfo.h>
int get_nprocs(void);
int get_nprocs_conf(void);
DESCRIPTION
The function get_nprocs_conf() returns the number of processors configured by the operating system.
The function get_nprocs() returns the number of processors currently available in the system. This may be less than the number returned by
get_nprocs_conf() because processors may be offline (e.g., on hotpluggable systems).
RETURN VALUE
As given in DESCRIPTION.
CONFORMING TO
These functions are GNU extensions.
NOTES
The current implementation of these functions is rather expensive, since they open and parse files in the /sys filesystem each time they
are called.
The following sysconf(3) calls make use of the functions documented on this page to return the same information.
np = sysconf(_SC_NPROCESSORS_CONF); /* processors configured */
np = sysconf(_SC_NPROCESSORS_ONLN); /* processors available */
EXAMPLE
The following example shows how get_nprocs() and get_nprocs_conf() can be used.
#include <stdio.h>
#include <sys/sysinfo.h>
int
main(int argc, char *argv[])
{
printf("This system has %d processors configured and "
"%d processors available.
",
get_nprocs_conf(), get_nprocs());
return 0;
}
GNU
2012-03-20 GET_NPROCS(3)