Re: L1 cache and L2 cahce?

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

 



On Sat, Nov 16, 2002 at 01:41:09AM +0000, krishnan charumathi wrote:

 > How to find the L1 and L2 cache sizes in an Intel Pentium machine?

Use the cpuid instruction.
For examples of its use (in userspace) see..
  http://www.codemonkey.org.uk/x86info/

For kernel space usage, see arch/i386/kernel/setup.c on a
2.4 kernel, or arch/i386/kernel/cpu/* on a 2.5 kernel.

		Dave

-- 
| Dave Jones.        http://www.codemonkey.org.uk
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux