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
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
> 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
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
-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
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
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
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
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
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
10 matches
Mail list logo