From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f5ae59e64332558b X-Google-Attributes: gidfee84,public From: patchkov@acs1.acs.ucalgary.ca (Serguei Patchkovskii) Subject: Re: psrinfo -v performance issue Date: 2000/01/24 Message-ID: <86iajk$hu2$1@nserve1.acs.ucalgary.ca>#1/1 X-Deja-AN: 577047225 References: X-Complaints-To: news@ucalgary.ca X-Trace: nserve1.acs.ucalgary.ca 948743604 18370 136.159.34.221 (24 Jan 2000 19:53:24 GMT) Organization: University of Calgary NNTP-Posting-Date: 24 Jan 2000 19:53:24 GMT Newsgroups: comp.unix.osf.osf1 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/