Re: number of processors detected

2004-07-10 Thread David Goodenough
On Saturday 10 July 2004 21:12, Joakim Franzen wrote: > Hi, > > Just installed the latest debian-sarge and have the 2.6.6-smp kernel > package added. What is really strange is that debian detects 4 > processors but the server only has 2. > > The system is a Dell PowerEdge 1600 with dual 2.4GHz Xeon

Re: number of processors detected

2004-07-10 Thread Jacob S.
On Sat, 10 Jul 2004 22:12:13 +0200 Joakim Franzen <[EMAIL PROTECTED]> wrote: > Hi, > > Just installed the latest debian-sarge and have the 2.6.6-smp kernel > package added. What is really strange is that debian detects 4 > processors but the server only has 2. > > The system is a Dell PowerEdg

Re: Number of processors

2000-12-06 Thread Michael Sauer
> A little off topic... > > Does anyone know how to get the number of CPU's > that a machine has using the "C" programming > language?Any URL's on the subject? open /proc/cpuinfo and look how many processor entries it has. mfg Mischel S aus P Homepage: http://fsinfo.cs.uni-sb.de/~waldi

Re: Number of processors

2000-12-05 Thread Jeff Green
surely you cannot have a truly portable system that enumerates "cpus" after all who says there has to be one? Do numerical or I/O co-processors count as cpus? unless the architecture is defined it makes no sense, and if the architecture is defined you may as well define something like /proc and if

Re: Number of processors

2000-12-05 Thread Phil Brutsche
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 A long time ago, in a galaxy far, far way, someone said... > Nope. We have to use some "C" or "C++" system/function call. Our > programmers don't want to depend on the /proc file system being > available. If you're looking for an OS independant way

Re: Number of processors

2000-12-05 Thread William T Wilson
On Tue, 5 Dec 2000, Christopher W. Aiken wrote: > Nope. We have to use some "C" or "C++" system/function call. Our > programmers don't want to depend on the /proc file system being > available. Any reasonable Linux system will have the /proc file system. There is no way to do it in C. If ther

Re: Number of processors

2000-12-05 Thread Chad '^chewie' Walstrom
Christopher W. Aiken wrote: > Does anyone know how to get the number of CPU's that a machine has > using the "C" programming language?Any URL's on the subject? This is specific to the kernel you are talking to. DOS has different API than Linux for retrieving this information. Of course, you

Re: Number of processors

2000-12-05 Thread Nathan E Norman
On Tue, Dec 05, 2000 at 02:53:01PM -0500, Christopher W. Aiken wrote: > On Tue, 5 Dec 2000, Harry Henry Gebel wrote: > > Nope. We have to use some "C" or "C++" system/function > call. Our programmers don't want to depend on the > /proc file system being available. I doubt there is such a system

Re: Number of processors

2000-12-05 Thread Christopher W. Aiken
On Tue, 5 Dec 2000, Harry Henry Gebel wrote: -|On Tue, Dec 05, 2000 at 02:01:05PM -0500, Christopher W. Aiken wrote: -|> Does anyone know how to get the number of CPU's -|> that a machine has using the "C" programming -|> language?Any URL's on the subject? -| -|There's probably can easier way

Re: Number of processors

2000-12-05 Thread Michal F. Hanula
On Tue, Dec 05, 2000 at 02:01:05PM -0500, Christopher W. Aiken wrote: > A little off topic... > > Does anyone know how to get the number of CPU's > that a machine has using the "C" programming > language?Any URL's on the subject? > > Thanks you... > What about parsing /proc/cpuinfo? (this r