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)

导航