Re: Cache line size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In-Reply-To: <[email protected]>

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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux