Under an Ubuntu system, are there commands for looking up:

  • the page size,
  • n in n-way cache associativity,
  • TLB cache's size and number of entries?
  • Look at my other A's to your Q's today. The tool lshw.
    – slm
    Feb 5, 2014 at 2:24
  • @slm: lshw isn't installed on the cluster.
    – Tim
    Feb 5, 2014 at 2:32
  • A computer cluster. Also on my laptop, I can't find what I asked for in the output of lshw.
    – Tim
    Feb 5, 2014 at 2:34
  • Look at some of the output I showed in this Q&A: unix.stackexchange.com/questions/113555/…
    – slm
    Feb 5, 2014 at 2:38
  • When I asked about your cluster, I meant what was the underlying OS and cluster technology. There are many "clusters" so it's difficult to tell you what's available w/o more info.
    – slm
    Feb 5, 2014 at 2:43

1 Answer 1


The tool cpuid can make a call into the CPU to get more detailed information about the CPU's architecture:

TLB size, entires, and associativity

$ cpuid | grep -i tlb
   cache and TLB information (2):
      0x5a: data TLB: 2M/4M pages, 4-way, 32 entries
      0x03: data TLB: 4K pages, 4-way, 64 entries
      0x55: instruction TLB: 2M/4M pages, fully, 7 entries
      0xb2: instruction TLB: 4K, 4-way, 64 entries
      0xca: L2 TLB: 4K, 4-way, 512 entries

There are various versions of tools called cpuid but you want this one, which I believe to be the "original".

The one that comes with Debian/Ubuntu is different, but cpuid above can be compiled on other distros if their isn't a pre-built version already available. It's available for most Red Hat based distros in the official repos.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .