From: Chuck Ebbert <76306.1226@compuserve.com>
To: Dave Jones <davej@redhat.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
John Richard Moser <nigelenki@comcast.net>
Subject: Re: Cache line size
Date: Mon, 11 Sep 2006 08:41:03 -0400 [thread overview]
Message-ID: <200609110842_MC3-1-CAD5-5E83@compuserve.com> (raw)
In-Reply-To: <20060911053144.GB18727@redhat.com>
On Mon, 11 Sep 2006 01:31:44 -0400, Dave Jones wrote:
> > > Is there a way for the Linux Kernel to know the cache line size of the
> > > CPU it's on, besides #define X86_CACHE_LINE_SZ 32 or whatnot?
> >
> > /sys/devices/system/cpu/cpu<N>/cache
>
> Hmm..
>
> $ find /sys/ -name cache
> $
>
> That's on 2.6.18rc6. Is this some -mm only feature?
Looks like it's only there on Intel CPUs with CPUID level >= 0x00000004
and AMD CPUs with extended CPUID level >= 0x80000006, like this one:
vendor_id : AuthenticAMD
cpu family : 15
model : 72
It's not there on:
vendor_id : GenuineIntel
cpu family : 6
model : 6
Oh well...
--
Chuck
next reply other threads:[~2006-09-11 12:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-11 12:41 Chuck Ebbert [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-09-11 4:58 Chuck Ebbert
2006-09-11 5:31 ` Dave Jones
2006-09-11 0:34 John Richard Moser
2006-09-11 2:39 ` Dave Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200609110842_MC3-1-CAD5-5E83@compuserve.com \
--to=76306.1226@compuserve.com \
--cc=davej@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nigelenki@comcast.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome