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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=EXUbdB1xw15L6ukQ 0v/byEDR1ifwoEF6HaUavuNUDHlYA8vhenPl7tkS5NVveODf+2ZNd9zzpTzUtFsl xF9is86KyjywwXLLdfYlJuYzF9evLymOytjebMlKQZPrWHqxrD+foQNoux3q8cuJ 1KaBsjwE3iqAMxNtO8Ud1BkvBqQ= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=OjV/p5dz2dS3QKVwvL9bdF nql34=; b=RplFfSiX5eKPvpqtv2ad2diGbZjPzd15XvXQ02AK76EwM1bPc9ku57 UsdhRPI4M60NnGNIaxmI8l5Ct67YAZGLWKsGqNMDyhsBTUiujUM4j11ijDE5x+Gg dclopiR5Awxkeg1tUeb0+Z09PTTHMb9eLLFpmeFyj/kpKf+rzgErQ= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-1.1 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f180.google.com X-Received: by 10.180.109.161 with SMTP id ht1mr11925865wib.10.1438598342695; Mon, 03 Aug 2015 03:39:02 -0700 (PDT) Subject: Re: cpuinfo cache size To: cygwin AT cygwin DOT com References: <55896193 DOT 2080307 AT gmail DOT com> <20150623141737 DOT GS28301 AT calimero DOT vinschen DOT de> From: Marco Atzeri Message-ID: <55BF44C2.8000707@gmail.com> Date: Mon, 3 Aug 2015 12:38:58 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 8/3/2015 12:15 PM, Achim Gratz wrote: > Corinna Vinschen 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. I solved packing HWLOC http://www.open-mpi.org/projects/hwloc/ It provide the same info in a simpler way > Regards, > Achim. > Regards Marco -- 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