From: patchkov@acs1.acs.ucalgary.ca (Serguei Patchkovskii)
Subject: Re: psrinfo -v performance issue
Date: 2000/01/24 [thread overview]
Message-ID: <86iajk$hu2$1@nserve1.acs.ucalgary.ca> (raw)
In-Reply-To: jyl-2401001931320001@macg6-5.mrc-lmb.cam.ac.uk
Jan Lowe (jyl@mrc-lmb.cam.ac.uk) wrote:
: The problem is that psrinfo takes a long time to complete (up to 5s) and is not
: acceptable to have in everyone's .cshrc file.
: QUESTION: is there another (faster) way of getting the same information about
: the processor(s) ?
'psrinfo -v' spends most of the time reading /var/adm/wtmp; I guess that it that
gets excessively large, you *might* have a relatively long delay here. You can
always rotate /var/adm/wtmp at system reboot, or, you can simply get the answer
you want by doing getsysinfo(GSI_CPU) (see the manual page). All the necessary
defines are in /usr/include/machine/hal/cpuconf.h
Cheers,
/Serge.P
--
home page: http://www.cobalt.chem.ucalgary.ca/ps/
next prev parent reply other threads:[~2000-01-24 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-24 5:00 psrinfo -v performance issue Jan Lowe
2000-01-24 5:00 ` Serguei Patchkovskii [this message]
2000-02-10 5:00 ` Anders Grund
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox