* processor speed
@ 2000-07-06 14:55 Evans, William
0 siblings, 0 replies; 2+ messages in thread
From: Evans, William @ 2000-07-06 14:55 UTC (permalink / raw)
To: tru64-unix-managers
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="--Boundary_(ID_oDrTfPsykovpNv0fQjtApw)", Size: 2826 bytes --]
--Boundary_(ID_oDrTfPsykovpNv0fQjtApw)
Content-type: text/plain; charset=iso-8859-1
I've recently been handed a short suspense project to collect hdw info on
all our department's servers, some 300+, several of which are DEC boxes.
One of the requirements is to collect processor speeds. On some of the DEC
servers, I've found entries in the messages file that gives me this info.
On others, I've used decevent to collect it but on a couple of the servers
neither the messages file nor decevent get me the processor speeds.
Does anyone have another method of determining the processor speed other
than to surf DEC web sites which I haven't time for?
As always, Thanks in advance for any help you can give,
Bill Evans
UNIX/NT Systems Administrator
<<...OLE_Obj...>>
....the recognized global leader in ensuring clients
achieve superior value in the Digital economy.
--Boundary_(ID_oDrTfPsykovpNv0fQjtApw)
Content-type: text/html; charset=iso-8859-1
Content-transfer-encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2652.35">
<TITLE>processor speed</TITLE>
</HEAD>
<BODY>
<P><FONT COLOR=3D"#0000FF" FACE=3D"Times New Roman">I've recently been =
handed a short suspense project to collect hdw info on all our =
department's servers, some 300+, several of which are DEC boxes. =
One of the requirements is to collect processor speeds. On some of the =
DEC servers, I've found entries in the messages file that gives me this =
info. On others, I've used decevent to collect it but on a couple =
of the servers neither the messages file nor decevent get me the =
processor speeds.</FONT></P>
<P><FONT COLOR=3D"#0000FF" FACE=3D"Times New Roman"> Does anyone =
have another method of determining the processor speed other than to =
surf DEC web sites which I haven't time for?</FONT></P>
<P><FONT COLOR=3D"#0000FF" FACE=3D"Times New Roman"> As always, =
Thanks in advance for any help you can give,</FONT>
</P>
<P><B><I><FONT COLOR=3D"#0000FF" SIZE=3D5 FACE=3D"Script MT Bold">Bill =
Evans</FONT></I></B>
<BR><B><I><FONT COLOR=3D"#0000FF" FACE=3D"Times New Roman">UNIX/NT =
Systems Administrator</FONT></I></B>
<BR><FONT FACE=3D"Arial" SIZE=3D2 COLOR=3D"#000000"> =
<<...OLE_Obj...>> </FONT><B></B><B><I></I></B>
<BR><FONT SIZE=3D2 FACE=3D"Times New =
Roman">  =
; =
....the recognized global leader in ensuring clients achieve superior =
value in the Digital economy.</FONT></P>
</BODY>
</HTML>
--Boundary_(ID_oDrTfPsykovpNv0fQjtApw)--
^ permalink raw reply [flat|nested] 2+ messages in thread
* Processor speed
@ 2002-11-20 2:57 Shanmugav Shanmuganatha
0 siblings, 0 replies; 2+ messages in thread
From: Shanmugav Shanmuganatha @ 2002-11-20 2:57 UTC (permalink / raw)
Hi,
I wrote a small C program to get the processor speed of a
multi-processor system. When I compiled the program I am
getting the following error.
cc -o proc proc_speed.c
ld:
Unresolved:
__sve_p_online
__sve_processor_info
I tried compiling the program with -D__SVE__, but that generated
other errors.
Any clues to make the compilation succesfull will be greatly
appreciated.
Thanks,
Shanmuganathan.
#include <stdio.h>
#include <sys/processor.h>
#include <string.h>
#include <unistd.h>
#include <limits.h>
#include <errno.h>
#define MAX_PROCESSORS 8 /* Info collected on this many
processors max */
main()
{
int processors[MAX_PROCESSORS];
int count = 0;
int i = 0;
int nConfigured = sysconf(_SC_NPROCESSORS_CONF);
for (i = 0; i < nConfigured; i++) {
int status = p_online(i, P_STATUS);
if (status == -1 && errno == EINVAL)
continue;
if (status == P_ONLINE && count < MAX_PROCESSORS) {
proc_info_t info;
processor_info(i, &info);
processors[count++] = info.pi_clock;
printf("Proc speed %d\n",info.pi_clock);
}
}
}
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-11-20 2:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-06 14:55 processor speed Evans, William
-- strict thread matches above, loose matches on Subject: below --
2002-11-20 2:57 Processor speed Shanmugav Shanmuganatha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox