From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Unknown Newsgroups: gmane.emacs.help Subject: Re: Getting Number of CPU(-core)s and giving it as the --jobs argument to GNU Make Date: Wed, 12 Sep 2007 02:30:53 -0400 Message-ID: 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: 7bit X-Trace: sea.gmane.org 1189579281 20999 80.91.229.12 (12 Sep 2007 06:41:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Sep 2007 06:41:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 12 08:41:18 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 1IVLuR-0002Km-Hr for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Sep 2007 08:41:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IVLuO-0002er-UA for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Sep 2007 02:41:08 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 12 Sep 2007 01:30:53 -0500 Original-From: Michael Trausch <"mike|s/\\x40/\\./g;s/|.*|/\\x40/g;|trausch"@us> User-Agent: Thunderbird 2.0.0.6 (X11/20070803) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 29 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 24.30.33.42 Original-X-Trace: sv3-nP4cbL8PLv6wP9Q9AaWhMroqcJx9R7rLKeDZM/7ROSIFmTa6mYt0YD5Oafcl61J2BrqgFwL93LfPXdG!jtIwhYPkS064spqu9JTdGaSn0KuLGWgr9D2WExxTohIWGArVCyCCimB7LOcJFAy6To35fw1XWKRL!5z7+s6hSwQfAjpZOnSq2jjBOnMo= Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.35 Original-Xref: shelby.stanford.edu gnu.emacs.help:152008 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:47515 Archived-At: Dieter Wilhelm, on 09/11/2007 04:20 PM said: > > 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? > That's the way it shows up - it's a dual core processor, and the information is the same for them except for the core number. If you had two dual core CPUs in your system, you would see four entires in /proc/cpuinfo. This is normal, because a dual core system (mostly) performs just as a dual processor system would. It's more or less like having two CPUs. In fact, many utilities and programming languages will even say that you have two CPUs when you really only have one dual-core CPU. That having been said, the only cross-platform method I know of for finding the number of cores (processors) on a system would be in .NET/Mono, since that works whereever there is an implmementation of .NET. Other than that, the only way that I know is to look in the /proc/cpuinfo file on Linux. -- Mike -- Michael B. Trausch http://www.trausch.us/ Pidgin 2.1.1 and plugins for Ubuntu Feisty! (And Thunderbird 2.0.0.6, too!) http://www.trausch.us/pidgin