From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dieter Wilhelm Newsgroups: gmane.emacs.help 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 Organization: The Church of Emacs Message-ID: <877imxc5sp.fsf@debby.local.net> References: <1189522398.029390.27390@50g2000hsm.googlegroups.com> <7C10B24D-B158-4C58-97DE-82441E1358AE@Web.DE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1189541967 25190 80.91.229.12 (11 Sep 2007 20:19:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2007 20:19:27 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, =?utf-8?Q?Nordl=C3=B6w?= To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 11 22:19:23 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IVCCY-0004Pz-An for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Sep 2007 22:19:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IVCCY-0003s0-7i for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Sep 2007 16:19:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IVCCK-0003qU-46 for help-gnu-emacs@gnu.org; Tue, 11 Sep 2007 16:19:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IVCCJ-0003q2-DW for help-gnu-emacs@gnu.org; Tue, 11 Sep 2007 16:18:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IVCCJ-0003px-8v for help-gnu-emacs@gnu.org; Tue, 11 Sep 2007 16:18:59 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.171]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IVCCI-0003Se-So for help-gnu-emacs@gnu.org; Tue, 11 Sep 2007 16:18:59 -0400 Original-Received: from drms-590c71ac.pool.einsundeins.de [89.12.113.172] (helo=debby.local.net) by mrelayeu.kundenserver.de (node=mrelayeu2) with ESMTP (Nemesis), id 0MKwtQ-1IVCCE3ZVj-00071W; Tue, 11 Sep 2007 22:18:55 +0200 Original-Received: from dieter by debby.local.net with local (Exim 4.63) (envelope-from ) id 1IVCEA-0005YZ-G6; Tue, 11 Sep 2007 22:20:54 +0200 In-Reply-To: <7C10B24D-B158-4C58-97DE-82441E1358AE@Web.DE> (Peter Dyballa's message of "Tue\, 11 Sep 2007 19\:16\:23 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Provags-ID: V01U2FsdGVkX1/XU0n8mJ72q9s6TRKdEM/kdtQVkCgsgYOPaRc EVTqY/yWmRudnvCrAoY1zeaY58eqMN3137I2klpYdqa64pEwCG jLMhKxw7NL2QwhsLB08J7T+QbOmTre5 X-Detected-Kernel: Linux 2.6? (barebone, rare!) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47506 Archived-At: Peter Dyballa writes: > Am 11.09.2007 um 16:53 schrieb Nordl=C3=B6w: > >> 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? --=20 Best wishes H. Dieter Wilhelm Darmstadt, Germany