随笔分类 -  dpdk

上一页 1 2 3 4 5 6 7 8 9 下一页

摘要:nodes = rte_malloc(NULL, sizeof(struct node), 0); if (NULL == nodes) rte_exit(EXIT_FAILURE, "Cannot malloc memory \n"); printf("nodes addr %llx \n ",( 阅读全文

posted @ 2020-09-01 20:20 tycoon3 阅读(216) 评论(0) 推荐(0)

摘要:https://www.geek-share.com/detail/2586671676.html ABI_VERSION buildtools devtools GNUmakefile MAINTAINERS mk app config doc kernel Makefile README arm 阅读全文

posted @ 2020-09-01 19:05 tycoon3 阅读(968) 评论(0) 推荐(0)

摘要:[root@localhost server]# cat /sys/devices/system/node/node*/meminfo | grep -i HugePage Node 0 AnonHugePages: 0 kB Node 0 ShmemHugePages: 0 kB Node 0 H 阅读全文

posted @ 2020-09-01 18:06 tycoon3 阅读(424) 评论(0) 推荐(0)

摘要:[root@localhost rte]# ls config fbarray_memseg-2048k-1-2 fbarray_memseg-2048k-3-1 fbarray_memseg-524288k-2-0 fbarray_memseg-2048k-0-0 fbarray_memseg-2 阅读全文

posted @ 2020-09-01 17:46 tycoon3 阅读(313) 评论(0) 推荐(0)

摘要:[root@localhost memzone]# build/app/helloworld -c 0xf -n 4 EAL: Detected 128 lcore(s) EAL: Detected 4 NUMA nodes EAL: Multi-process socket /var/run/dp 阅读全文

posted @ 2020-09-01 17:27 tycoon3 阅读(3774) 评论(0) 推荐(1)

摘要:/* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2010-2014 Intel Corporation */ #include <stdio.h> #include <string.h> #include <stdint.h> #inc 阅读全文

posted @ 2020-09-01 16:00 tycoon3 阅读(435) 评论(0) 推荐(0)

摘要:[root@localhost memzone]# gdb build/app/helloworld /data1/core/corefile-helloworld-56592-1598942035 GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-119.e 阅读全文

posted @ 2020-09-01 14:39 tycoon3 阅读(1468) 评论(0) 推荐(0)

摘要:/* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2010-2014 Intel Corporation */ #include <stdio.h> #include <string.h> #include <stdint.h> #inc 阅读全文

posted @ 2020-09-01 14:14 tycoon3 阅读(919) 评论(0) 推荐(0)

摘要:[root@localhost ~]# free -g total used free shared buff/cache availableMem: 510 129 377 0 3 339Swap: 0 0 0[root@localhost ~]# cat /proc/meminfo | grep 阅读全文

posted @ 2020-08-31 19:33 tycoon3 阅读(198) 评论(0) 推荐(0)

摘要:static int rte_eal_config_create(void) { size_t page_sz = sysconf(_SC_PAGE_SIZE); size_t cfg_len = sizeof(*rte_config.mem_config); size_t cfg_len_alig 阅读全文

posted @ 2020-08-31 18:06 tycoon3 阅读(391) 评论(0) 推荐(0)

摘要:rte_memseg memseg 数组是维护物理地址的,在上面讲到struct hugepage结构对每个hugepage物理页面都存储了它在程序里面的虚存地址。memseg 数组的作用是将物理地址、虚拟地址都连续的hugepage,并且都在同一个socket,pagesize 也相同的hugep 阅读全文

posted @ 2020-08-31 17:39 tycoon3 阅读(1812) 评论(0) 推荐(1)

摘要:dpdk 使用 Linux 提供的获取大页、页表、numa 节点表、mmap 功能重新组织内存。 大页: 最多可以同时存在 3 种大页。一般只是用 2M 的大页。linux 中获取大页相关信息是通过访问解析 /sys/kernel/mm/hugepages、/proc/meminfo、/proc/m 阅读全文

posted @ 2020-08-28 17:36 tycoon3 阅读(1532) 评论(0) 推荐(0)

摘要: 阅读全文

posted @ 2020-08-28 17:20 tycoon3 阅读(169) 评论(0) 推荐(0)

摘要:DPDK库里是支持多进程和多线程,本文主要总结多进程的相关的操作。 DPDK多进程使用的关键启动参数: --proc-type:指定一个dpdk进程是主进程还是副进程(参数值就用上面的primary或是secondary,或者是auto) --file-prefix:允许非合作的进程拥有不同的内存区 阅读全文

posted @ 2020-08-28 15:33 tycoon3 阅读(1996) 评论(0) 推荐(0)

摘要:[root@localhost helloworld]# cat main.c /* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2010-2014 Intel Corporation */ #include <stdio.h> #inc 阅读全文

posted @ 2020-08-28 14:32 tycoon3 阅读(467) 评论(0) 推荐(0)

摘要:https://github.com/shemminger/dpdk-ring-ping [root@localhost dpdk-ring-ping]# export RTE_SDK=/data1/dpdk-19.11 [root@localhost dpdk-ring-ping]# make [ 阅读全文

posted @ 2020-08-28 14:03 tycoon3 阅读(303) 评论(0) 推荐(0)

摘要:dpdk网卡绑定uio报这个bug,换成vfio就没问题了 [root@localhost dpdk-19.11]# modprobe uio [root@localhost dpdk-19.11]# find ./ -name igb_uio.ko ./build/build/kernel/lin 阅读全文

posted @ 2020-08-28 09:29 tycoon3 阅读(383) 评论(0) 推荐(0)

摘要:1、网卡扫描总线的func slot/probe函数的调用是有顺序的, 先绑定0000:05:00.0 ,后绑定0000:06:00.0 [root@localhost dpdk-19.11]# ./usertools/dpdk-devbind.py -s Network devices using 阅读全文

posted @ 2020-08-28 08:51 tycoon3 阅读(565) 评论(0) 推荐(0)

摘要:[root@localhost dpdk-19.11]# ./usertools/dpdk-devbind.py -b igb_uio 0000:05:00.0 [root@localhost dpdk-19.11]# ./examples/kni/build/app/kni -c 0xFFFFF 阅读全文

posted @ 2020-08-27 12:03 tycoon3 阅读(898) 评论(0) 推荐(0)

摘要:1、 rte_eal_init 2、 eal_parse_common_option -n选项用于指定系统的内存通道数。 --(破折号)分开了EAL参数和应用程序参数。 阅读全文

posted @ 2020-08-27 10:28 tycoon3 阅读(1632) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 下一页

导航