摘要:Then to get the ids, use: $ lspci -v -n -s 03:00.0 03:00.0 0280: 8086:0085 (rev 34) Subsystem: 8086:1311 Flags: bus master, fast devsel, latency 0, IR
阅读全文
摘要:/sys/class/net /sys/devices /sy/bus/pci https://access.redhat.com/discussions/895293 [root@localhost rules.d]# lspci -v | grep -i ether -B 4 Capabilit
阅读全文
摘要:(gdb) p arr $8 = (struct rte_fbarray *) 0x1000000b0 (gdb) p *arr $9 = {name = '\000' <repeats 63 times>, count = 0, len = 0, elt_sz = 0, data = 0x0, r
阅读全文
摘要:[root@localhost yum.repos.d]# debuginfo-install glibc-2.17-307.el7.1.aarch64 libgcc-4.8.5-39.el7.aarch64 numactl-libs-2.0.12-5.el7.aarch64 -bash: debu
阅读全文
摘要:[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
阅读全文
摘要:在 Linux 中,物理内存是以页为单位来管理的。页的大小为 4096 字节。 1MB 的内存能划分为 256 页; 1GB 则等同于 256000 页。 CPU 中有一个内置的内存管理单元,用于存储这些页的列表,每页都有一个对应的入口。在这种情况下,内存管理单元的大小决定了服务器能使用的最大内存大
阅读全文
摘要:ipvsadm.c:114:10: fatal error: popt.h: No such file or directory #include "popt.h" ^~~~~~~~ ~/dpvs/include# ls cfgfile.h global_conf.h inet.h ipvs md5
阅读全文
摘要:keepalived_netlink.c: In function ‘parse_af_spec’: keepalived_netlink.c:1634:35: error: ‘IPV4_DEVCONF_ARP_IGNORE’ undeclared (first use in this functi
阅读全文
摘要:[root@localhost kni]# ps -elf | grep kni 4 R root 32791 27964 99 80 0 - 8410299 - 05:12 pts/0 00:00:14 ./examples/kni/build/app/kni -c 0xFFFFF -n 4 --
阅读全文
摘要:[root@localhost dpdk-19.11]# ls /sys/module/rte_kni/parameters/ carrier kthread_mode lo_mode [root@localhost dpdk-19.11]# cat /sys/module/rte_kni/para
阅读全文
摘要:/* enable legacy (INTx) interrupts */ static int vfio_enable_intx(const struct rte_intr_handle *intr_handle) { struct vfio_irq_set *irq_set; char irq_
阅读全文
摘要:[root@localhost dpdk_lcores]# ./build/app/test --lcores "(0,1,2,3,4)@(0,1),(5,6,7,8)@3" EAL: Detected 128 lcore(s) EAL: Detected 4 NUMA nodes EAL: Mul
阅读全文
摘要:https://hustcat.github.io/introduction-to-uio/ UIO 每个UIO设备可以通过设备文件(/dev/uioX)和sysfs的属性文件来访问。 可以通过mmap映射/dev/uioX来访问UIO设备的寄存器或者RAM。 直接read /dev/uioX来获取
阅读全文
摘要:1、 uio 在register device的时候通过uio_dev_add_attributes生成/sys/class/uio/uio0/xx,注册中断 2、 用户程序fd=open(/sys/class/uio/uio0/maps/mapX/size) 3、调用mmap(fd)会进行rema
阅读全文
摘要:转载 https://blog.csdn.net/bemind1/article/details/99678642 What is VFIO? VFIO是一个可以安全的把设备I/O、中断、DMA等暴露到用户空间(userspace),从而可以在用户空间完成设备驱动的框架。 得益于vfio低开销的用户
阅读全文
摘要:网上的Linux PCI驱动教程基本就没有有用的。扯半天PCI配置空间就完了。但是PCI配置空间是最容易访问的,只是内核启动时扫描PCI设备时比较重要。对于PCI驱动,更常用的是PCI设备的IO空间和内存空间。以前只知道在PCI设备的配置空间中,BAR0-BAR5能够读取到PCI设备的IO空间或地址
阅读全文
摘要:无法访问10.10.17.252 dis mac-add | inc 9044 Flags: * - Backup # - forwarding logical interface, operations cannot be performed based on the interface. BD
阅读全文
摘要:http://linuxperf.com/?p=67 支持虚拟化技术的硬件平台主要做两件事,一个是DMA Remapping,将DMA请求中的Guest的物理地址映射到Host的物理地址,另一个是中断Remapping,将能remappable的中断请求根据由VMM设置,位于内存的IRT(Inter
阅读全文
摘要:#!/bin/sh sed -r -e 's/^ *//' -e 's/ {2,}/|/g' < /proc/interrupts | \ awk -F'|' ' BEGIN { cpu_n = 0; } NR == 1 { for(i = 1; i <= NF; i++) if($i ~ CPU)
阅读全文