上一页 1 ··· 101 102 103 104 105 106 107 108 109 ··· 164 下一页

2020年9月15日

摘要: /** * Calculate the size of the mempool header. * * @param mp * Pointer to the memory pool. * @param cs * Size of the per-lcore cache. */ #define MEMP 阅读全文
posted @ 2020-09-15 10:18 tycoon3 阅读(407) 评论(0) 推荐(0)

2020年9月14日

摘要: #include <stdio.h> #include <unistd.h> #include <rte_memory.h> #include <rte_ring.h> #include <rte_mempool.h> #define RING_SIZE 64 static const char * 阅读全文
posted @ 2020-09-14 20:08 tycoon3 阅读(328) 评论(0) 推荐(0)
摘要: common_ring_alloc [root@localhost mp_ring]# gdb build/app/test_ring GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-119.el7 Copyright (C) 2013 Free Softw 阅读全文
posted @ 2020-09-14 17:57 tycoon3 阅读(724) 评论(0) 推荐(0)
摘要: rte_mempool_create if ((flags & MEMPOOL_F_SP_PUT) && (flags & MEMPOOL_F_SC_GET)) ret = rte_mempool_set_ops_byname(mp, "ring_sp_sc", NULL); else if (fl 阅读全文
posted @ 2020-09-14 17:28 tycoon3 阅读(855) 评论(0) 推荐(0)
摘要: te_atomic32_cmpset()称为CAS(compare and set)操作,是DPDK无锁队列实现的关键函数,代码如下: static inline intrte_atomic32_cmpset(volatile uint32_t *dst, uint32_t exp, uint32_ 阅读全文
posted @ 2020-09-14 15:04 tycoon3 阅读(337) 评论(0) 推荐(0)
摘要: 查看Cache的关联方式 在 /sys/devices/system/cpu/中查看相应的文件夹 如查看cpu0 的一级缓存中的有多少组, $ cat /sys/devices/system/cpu/cpu0/cache/index0/number_of_sets $64 如查看cpu0的一级缓存中 阅读全文
posted @ 2020-09-14 14:39 tycoon3 阅读(1052) 评论(0) 推荐(0)
摘要: 对比Intel和Kunpeng https://compare-intel-kunpeng.readthedocs.io/zh_CN/latest/index.html openEuler 20.03 LTS 使用指南 https://www.bookstack.cn/read/openeuler- 阅读全文
posted @ 2020-09-14 10:25 tycoon3 阅读(187) 评论(0) 推荐(0)

2020年9月12日

摘要: [root@localhost ~]# cd /sys/bus/pci/devices/0000:05:00.0 [root@localhost 0000:05:00.0]# ls broken_parity_status msi_bus class numa_node config power c 阅读全文
posted @ 2020-09-12 23:05 tycoon3 阅读(295) 评论(0) 推荐(0)
摘要: /* Get pci port io resources described by bar #pci_bar in uio resource n. */ static int igbuio_pci_setup_ioport(struct pci_dev *dev, struct uio_info * 阅读全文
posted @ 2020-09-12 22:51 tycoon3 阅读(741) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/Jmilk/article/details/106007926 打开 dpdk-18.08/drivers/bus/pci/linux/pci.c 可以看到以下内容: #define PCI_MAX_RESOURCE 6 /* * PCI 扫描文件系统下的 阅读全文
posted @ 2020-09-12 22:29 tycoon3 阅读(13011) 评论(1) 推荐(3)
上一页 1 ··· 101 102 103 104 105 106 107 108 109 ··· 164 下一页

导航