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:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=Hf1Pf0ugT43vvCsj+7tmD8X5vuI9FaCkTj69BApRgM7qI3fEQf0wV m3g4Ptm244ffyFT94hJym7SL8Ni3r6glDGH7mxcjCQK21UBkG/d+f1ue6o1qCteh tZiXoHYfQ5aMmRdi2W6T/hPY0dLbTpQdZGr9EZ4kLCo72IsC9qn0yQ= 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:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=gpki1z5f17zVw0LBT9zaIgq44os=; b=DyHWHYQv67I3CA+1BIQzyaCT1TDb uk8sFGKu+D/uCGC6ve6mW5KLrrQ0eOyyxgblCeTDwNCxJikXys/VakxgqQy1iesE D1UIINTnyXCg2ic9II10acVH/VTxwBw7ETrFqxmNtdfwZrTTYbMLkgCyTH4KX2ux d2xrjs+WObEvlqA= 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=-5.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Date: Mon, 3 Aug 2015 15:33:43 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: cpuinfo cache size Message-ID: <20150803133343.GA18434@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <55896193 DOT 2080307 AT gmail DOT com> <20150623141737 DOT GS28301 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) --huq684BweRXVnRxX Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Aug 3 10:15, 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. >=20 > If you can use the Windows API, then this > https://msdn.microsoft.com/en-us/library/ms683194.aspx Oh, that sounds good. I wasn't aware of this function. This and GetLogicalProcessorInformationEx on newer systems seem to help here. If nobody beats me to it I'll have a look into it at one point. > I have no patches, but another difference to Linux is that the CPU freque= ncy > 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. Another Windows function? :) Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --huq684BweRXVnRxX Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVv223AAoJEPU2Bp2uRE+gLUUP/0QIJWpmVq5DRHsRe7gzncG3 avQCMRmJa3JErc6xhvpWKUhvETbg0xWMS2B8VpdGFBEkRD+2YB9O4SxMB26BIhXQ OOnMIIBdZpokh4CY6dZPuyj0aubPfoCZI94OquT2qHTQEOvR2xNysJc0NlFGUO3p 2F1ceVw5yZIz2/ySSAV4IOBx8Xrk3XUA/pXG2DeVpKpMPhQUnEH60BbhsmAXdqx7 4OJlUIqdYHXo9Ns/4yR0tdqUPtdKMatvXv9GnSLqDwzDjyQ0BX7RZLGx8ZdTVb1Z nkjEh5J+7HiuyYrZ5HvqlL93Df4d1lnoc2CPES8/wV6V3yS75ULZaqt8fOtnzuYI 7xtHr3KWWWYEKn3lXIkmOgl3Bwnn3vpm8XEmhKXH4Xlu0OXDeTZdOciaTobsBW2F 2Uy7ZCofmUiaOeCd80VHO3JhPgV1V/5y0/le4/NlL5T59wc+BNvTVEYraQqKETRD mbV7Mbe/3xa5YKjIRkmYxzBrmIKoAHa3E1y8+Ra3p6VAVa4LDNTSSdUojoUTf+ae OMIwoVvZJQ7oQB7JZP3jKCOJAg3wJn1H93qbnFspiGtrE1RkR35Pyf5xaJurJ3PZ FoGLKA9PEzsRAksyTpxVYt+Wa5rKBE4eehg/R7mh7OtglbWce7zOCCsreH90epiU Uas7DIZ+yjXkTtzQ5Rkj =jGBG -----END PGP SIGNATURE----- --huq684BweRXVnRxX--