delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/08/03/06:16:07

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=crpiH1dzrFyOOle+ykNLcLDEYxdNEu0tFyo49JJbwBOCRmLHlLHOU
nCVGUdAN6ZjQchMUtd2OEjYhaRl+INXRDGvIDV+6YF+5OgBUPIMi3Ovuj0+0xmBH
G0ISgWo+nJSelr6H4H+kJuPQnh+H0vmDlMXrrkzyMaWDWrl8zCfXiM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; s=default;
bh=oxslqH/mXKjl6fj0RAQdNYbVPA4=; b=iTUO4F10S10ektL0nYGCdQDqJx8j
e4HjP+Zx235awCSlUxMlWeVmev1Ecibrg2SWLzy+jt3hziMNuY4yxPv2GUb6Vqsc
ypn+qmrzrGCSsc72aS2KrnWmUwo1xreNj4F3U/9rtSDg5pUrJrwLDcz5wpq+yZTN
uDh4FG8+RCs1JCg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-4.8 required=5.0 tests=AWL,BAYES_00,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Achim Gratz <Stromeko AT NexGo DOT DE>
Subject: Re: cpuinfo cache size
Date: Mon, 3 Aug 2015 10:15:39 +0000 (UTC)
Lines: 24
Message-ID: <loom.20150803T112514-524@post.gmane.org>
References: <55896193 DOT 2080307 AT gmail DOT com> <20150623141737 DOT GS28301 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:
> Cygwin is lacking the code to fetch L3 caches and afaics, it's not
> overly simple.  At least calling cpuid as for L1 and L2 caches is not
> sufficient, apparently.

If you can use the Windows API, then this
https://msdn.microsoft.com/en-us/library/ms683194.aspx

> > Should be possible to have both info available ?
> > Any idea how to obtain the other cache infos ?
> 
> Not completely.  You have to use different cpuid codes for AMD and Intel
> CPUs, and you have to call cpuid multiple times to get the full info
> for all L3 caches of the system's CPUs, but I'm fuzzy on the details.

I have no patches, but another difference to Linux is that the CPU frequency
reported is the maximum (non-turbo) frequency instead of the actual one
(which could be larger or lower depending on the frequency scaling in
effect).  That seems to require more infrastructure, though.


Regards,
Achim.



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019