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: 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=-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 Subject: Re: cpuinfo cache size Date: Mon, 3 Aug 2015 10:15:39 +0000 (UTC) Lines: 24 Message-ID: References: <55896193 DOT 2080307 AT gmail DOT com> <20150623141737 DOT GS28301 AT calimero DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes 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. 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