help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Number of CPU(-core)s and giving it as the --jobs argument t


From: Dieter Wilhelm
Subject: Re: Getting Number of CPU(-core)s and giving it as the --jobs argument to GNU Make
Date: Tue, 11 Sep 2007 22:20:54 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Peter Dyballa <Peter_Dyballa@Web.DE> writes:

> Am 11.09.2007 um 16:53 schrieb Nordlöw:
>
>> How can I, from within Emacs in a platform independent way, read out
>> the number of CPUs/cores my local machine has?
>
> Apropos cpu? And then checking the manual pages? Reading a file in /
> proc file system might work, too.

I checked the following:

dieter@debby:~$ cat /proc/cpuinfo|grep "proc\|cores\|model"
processor       : 0
model           : 15
model name      : Intel(R) Core(TM)2 CPU          6400  @ 2.13GHz
cpu cores       : 2
processor       : 1
model           : 15
model name      : Intel(R) Core(TM)2 CPU          6400  @ 2.13GHz
cpu cores       : 2

That's a bit confusing, I thought I had *one* processor with *two*
cores and the content in /proc/cpuinfo claims two processor, 0 and 1
with two cores, respectively, where am I wrong?

-- 
    Best wishes

    H. Dieter Wilhelm
    Darmstadt, Germany




reply via email to

[Prev in Thread] Current Thread [Next in Thread]