zoukankan      html  css  js  c++  java
  • dpdk test + dpdk-procinfo

    https://www.geek-share.com/detail/2586671676.html

    ABI_VERSION                buildtools     devtools  GNUmakefile  MAINTAINERS        mk
    app                        config         doc       kernel       Makefile           README
    arm64-armv8a-linuxapp-gcc  custom-config  drivers   lib          meson.build        usertools
    build                      demo           examples  license      meson_options.txt  VERSION
    [root@localhost dpdk-19.11]# make -C arm64-armv8a-linuxapp-gcc
    ./$(RTE_TARGET)/app/dpdk-procinfo -- -m | [-p PORTMASK] [--stats | --xstats |
    --stats-reset | --xstats-reset]

    [root@localhost dpdk-19.11]# ./build/app/dpdk-procinfo  
    EAL: Detected 128 lcore(s)
    EAL: Detected 4 NUMA nodes
    EAL: Multi-process socket /var/run/dpdk/rte/mp_socket_1799_3731314c01dc
    EAL: Selected IOVA mode 'PA'
    EAL: Probing VFIO support...
    EAL: VFIO support initialized
    EAL: PCI device 0000:05:00.0 on NUMA socket 0
    EAL:   probe driver: 19e5:200 net_hinic
    EAL:   using IOMMU type 1 (Type 1)
    net_hinic: Initializing pf hinic-0000:05:00.0 in secondary process
    net_hinic: Initialize 0000:05:00.0 in secondary process
    EAL: PCI device 0000:06:00.0 on NUMA socket 0
    EAL:   probe driver: 19e5:200 net_hinic
    EAL: PCI device 0000:7d:00.0 on NUMA socket 0
    EAL:   probe driver: 19e5:a222 net_hns3
    EAL: PCI device 0000:7d:00.1 on NUMA socket 0
    EAL:   probe driver: 19e5:a221 net_hns3
    EAL: PCI device 0000:7d:00.2 on NUMA socket 0
    EAL:   probe driver: 19e5:a222 net_hns3
    EAL: PCI device 0000:7d:00.3 on NUMA socket 0
    EAL:   probe driver: 19e5:a221 net_hns3
    ./build/app/dpdk-procinfo [EAL options] -- -p PORTMASK
      -m to display DPDK memory zones, segments and TAILQ information
      -p PORTMASK: hexadecimal bitmask of ports to retrieve stats for
      --stats: to display port statistics, enabled by default
      --xstats: to display extended port statistics, disabled by default
      --metrics: to display derived metrics of the ports, disabled by default
      --xstats-name NAME: to display single xstat id by NAME
      --xstats-ids IDLIST: to display xstat values by id. The argument is comma-separated list of xstat ids to print out.
      --stats-reset: to reset port statistics
      --xstats-reset: to reset port extended statistics
      --collectd-format: to print statistics to STDOUT in expected by collectd format
      --host-id STRING: host id used to identify the system process is running on
      --show-port: to display ports information
      --show-tm: to display traffic manager information for ports
      --show-crypto: to display crypto information
      --show-ring[=name]: to display ring information
      --show-mempool[=name]: to display mempool information
      --iter-mempool=name: iterate mempool elements to display content
    ======================================== ========================================

    参考 https://blog.csdn.net/lizheng2300/article/details/69258920

    [root@localhost dpdk-19.11]# ./build/app/dpdk-procinfo --  -m | more
    EAL: Detected 128 lcore(s)
    EAL: Detected 4 NUMA nodes
    EAL: Multi-process socket /var/run/dpdk/rte/mp_socket_1931_37348a817e40
    EAL: Selected IOVA mode 'PA'
    EAL: Probing VFIO support...
    EAL: VFIO support initialized
    EAL: PCI device 0000:05:00.0 on NUMA socket 0
    EAL:   probe driver: 19e5:200 net_hinic
    EAL:   using IOMMU type 1 (Type 1)
    net_hinic: Initializing pf hinic-0000:05:00.0 in secondary process
    net_hinic: Initialize 0000:05:00.0 in secondary process
    EAL: PCI device 0000:06:00.0 on NUMA socket 0
    EAL:   probe driver: 19e5:200 net_hinic
    EAL: PCI device 0000:7d:00.0 on NUMA socket 0
    EAL:   probe driver: 19e5:a222 net_hns3
    EAL: PCI device 0000:7d:00.1 on NUMA socket 0
    EAL:   probe driver: 19e5:a221 net_hns3
    EAL: PCI device 0000:7d:00.2 on NUMA socket 0
    EAL:   probe driver: 19e5:a222 net_hns3
    EAL: PCI device 0000:7d:00.3 on NUMA socket 0
    EAL:   probe driver: 19e5:a221 net_hns3
    ----------- MEMORY_SEGMENTS -----------
    Segment 0-0: IOVA:0x3cc0000000, len:536870912, virt:0x120000000, socket_id:0, hugepage_sz:536870912, nchannel:0, n
    rank:0 fd:60
    --------- END_MEMORY_SEGMENTS ---------

     设置-socket-mem

    [root@localhost memzone]# build/app/helloworld -c 0xf  --socket-mem 1024,1024,1024,1024
    EAL: Detected 128 lcore(s)
    EAL: Detected 4 NUMA nodes
    EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
    EAL: Selected IOVA mode 'PA'
    EAL: No free hugepages reported in hugepages-2048kB
    EAL: No free hugepages reported in hugepages-2048kB
    EAL: No free hugepages reported in hugepages-2048kB
    EAL: No free hugepages reported in hugepages-2048kB
    EAL: No available hugepages reported in hugepages-2048kB

     
  • 相关阅读:
    关于音视频同步
    redis JedisConnectionException: Could not get a resource from the pool
    ping指定IP的指定端口号
    如何查看端口号是否被占用
    mongodb增删改查基础语法
    mongodb重置密码
    本地MongoDB服务开启与连接本地以及远程服务器MongoDB服务
    MongoDB服务的安装与删除
    可视化
    Elasticsearch下载安装
  • 原文地址:https://www.cnblogs.com/dream397/p/13597966.html
Copyright © 2011-2022 走看看