Linux - cpuid 命令查看 TLB 信息

查看 TLB 信息

方法1

root@aliyun:~# cpuid | grep -i tlb
   cache and TLB information (2):
      0x63: data TLB: 1G pages, 4-way, 4 entries  # 数据
      0x03: data TLB: 4K pages, 4-way, 64 entries # 数据
      0x76: instruction TLB: 2M/4M pages, fully, 8 entries # 指令
      0xb5: instruction TLB: 4K, 8-way, 64 entries # 指令
      0xc3: L2 TLB: 4K/2M pages, 6-way, 1536 entries
   L1 TLB/cache information: 2M/4M pages & L1 TLB (0x80000005/eax):
   L1 TLB/cache information: 4K pages & L1 TLB (0x80000005/ebx):
   L2 TLB/cache information: 2M/4M pages & L2 TLB (0x80000006/eax):
   L2 TLB/cache information: 4K pages & L2 TLB (0x80000006/ebx):

方法2

root@aliyun:~# cpuid | grep -E "L1|L2|L3"
      context ID: adaptive or shared L1 data  = false
      0xc3: L2 TLB: 4K/2M pages, 6-way, 1536 entries
   L1 TLB/cache information: 2M/4M pages & L1 TLB (0x80000005/eax):
   L1 TLB/cache information: 4K pages & L1 TLB (0x80000005/ebx):
   L1 data cache information (0x80000005/ecx):
   L1 instruction cache information (0x80000005/edx):
   L2 TLB/cache information: 2M/4M pages & L2 TLB (0x80000006/eax):
      instruction associativity = L2 off (0)
      data associativity        = L2 off (0)
   L2 TLB/cache information: 4K pages & L2 TLB (0x80000006/ebx):
      instruction associativity = L2 off (0)
      data associativity        = L2 off (0)
   L2 unified cache information (0x80000006/ecx):
   L3 cache information (0x80000006/edx):
      associativity         = L2 off (0)

其他命令

lshw

lshw 查看整个计算机的硬件配置。

Reference

  1. tlb-info-cpuid
  2. cpuid
  3. when-speaking-about-cache-size-of-a-cpu-we-only-need-the-size-of-the-cache-at-t
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值