Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* get_nprocs() returns 0 (number of CPUs)
@ 1999-09-08 17:22 Eran Guendelman
  1999-09-08 19:47 ` B. James Phillippe
  0 siblings, 1 reply; 5+ messages in thread
From: Eran Guendelman @ 1999-09-08 17:22 UTC (permalink / raw)
  To: axp-list

Hi.
I am running RH6.0 on a dual alpha machine.  A program I am writing needs
to know the number of CPUs.  I tried get_procs_conf() and get_nprocs(),
but they both return 0.  Is this a known bug?  Is there a fix?
/proc/cpuinfo clearly states "cpus detected : 2".  I know, I *could* parse
this file to get the number of processors, but I'd rather not do it that
way.  Also, the program "top" doesn't say anything about having 2 CPUs.
Is it possibly using these same system calls and not detecting the two
CPUs?

Thanks for any help. 


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-09-08 22:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-09-08 17:22 get_nprocs() returns 0 (number of CPUs) Eran Guendelman
1999-09-08 19:47 ` B. James Phillippe
1999-09-08 20:31   ` Eran Guendelman
1999-09-08 21:23     ` Suyudi Koeswanto
1999-09-08 22:01       ` Eran Guendelman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox