使用dpdk,查看NUMA信息

3 篇文章 0 订阅

下载 dpdk-20.11.2,这个是LTS版本

[root@localhost opt]# wget wget http://fast.dpdk.org/rel/dpdk-20.11.2.tar.xz
--2021-08-18 11:47:08--  http://wget/
Resolving wget (wget)... failed: Name or service not known.
wget: unable to resolve host address ‘wget’
--2021-08-18 11:47:09--  http://fast.dpdk.org/rel/dpdk-20.11.2.tar.xz
Resolving fast.dpdk.org (fast.dpdk.org)... 151.101.78.49
Connecting to fast.dpdk.org (fast.dpdk.org)|151.101.78.49|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13992772 (13M) [application/octet-stream]
Saving to: ‘dpdk-20.11.2.tar.xz’

100%[================================================================>] 13,992,772  26.2MB/s   in 0.5s   

2021-08-18 11:47:09 (26.2 MB/s) - ‘dpdk-20.11.2.tar.xz’ saved [13992772/13992772]

解压 dpdk-20.11.2.tar.xz

[root@localhost opt]# tar Jxf dpdk-20.11.2.tar.xz

进入目录

[root@localhost opt]# cd dpdk-stable-20.11.2/usertools/
[root@localhost usertools]# ls
cpu_layout.py    dpdk-hugepages.py  dpdk-telemetry-client.py  meson.build
dpdk-devbind.py  dpdk-pmdinfo.py    dpdk-telemetry.py

查看NUMA信息

[root@localhost usertools]# ./cpu_layout.py 
======================================================================
Core and Socket Information (as reported by '/sys/devices/system/cpu')
======================================================================

cores =  [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
sockets =  [0, 1]

        Socket 0        Socket 1       
        --------        --------       
Core 0  [0, 32]         [16, 48]       
Core 1  [1, 33]         [17, 49]       
Core 2  [2, 34]         [18, 50]       
Core 3  [3, 35]         [19, 51]       
Core 4  [4, 36]         [20, 52]       
Core 5  [5, 37]         [21, 53]       
Core 6  [6, 38]         [22, 54]       
Core 7  [7, 39]         [23, 55]       
Core 8  [8, 40]         [24, 56]       
Core 9  [9, 41]         [25, 57]       
Core 10 [10, 42]        [26, 58]       
Core 11 [11, 43]        [27, 59]       
Core 12 [12, 44]        [28, 60]       
Core 13 [13, 45]        [29, 61]       
Core 14 [14, 46]        [30, 62]       
Core 15 [15, 47]        [31, 63] 
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值