随笔分类 -  os

上一页 1 ··· 15 16 17 18 19 20 21 22 23 下一页

pci 设备 vendor device subsystem 驱动
摘要: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 阅读全文

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

找不到网卡 pci probe function not called
摘要:/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 阅读全文

posted @ 2020-09-02 17:00 tycoon3 阅读(554) 评论(0) 推荐(0)

gdb 打印结构体
摘要:(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 阅读全文

posted @ 2020-09-02 15:31 tycoon3 阅读(4372) 评论(0) 推荐(0)

debuginfo-install: command not found
摘要:[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 阅读全文

posted @ 2020-09-02 10:36 tycoon3 阅读(1671) 评论(0) 推荐(0)

根据文件句柄查找文件名
摘要: 阅读全文

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

huge page
摘要:[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 阅读(196) 评论(0) 推荐(0)

Linux 系统如何进行大页面配置
摘要:在 Linux 中,物理内存是以页为单位来管理的。页的大小为 4096 字节。 1MB 的内存能划分为 256 页; 1GB 则等同于 256000 页。 CPU 中有一个内置的内存管理单元,用于存储这些页的列表,每页都有一个对应的入口。在这种情况下,内存管理单元的大小决定了服务器能使用的最大内存大 阅读全文

posted @ 2020-08-31 10:10 tycoon3 阅读(6593) 评论(0) 推荐(0)

dpvs ipvsadm.c:114:10: fatal error: popt.h: No such file or directory
摘要: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 阅读全文

posted @ 2020-08-27 19:37 tycoon3 阅读(1359) 评论(0) 推荐(0)

dpvs keepalived编译出错
摘要:keepalived_netlink.c: In function ‘parse_af_spec’: keepalived_netlink.c:1634:35: error: ‘IPV4_DEVCONF_ARP_IGNORE’ undeclared (first use in this functi 阅读全文

posted @ 2020-08-27 19:23 tycoon3 阅读(426) 评论(0) 推荐(0)

ps查看线程所在的cpu + pstack 线程+ strace 线程
摘要:[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 -- 阅读全文

posted @ 2020-08-27 17:19 tycoon3 阅读(1503) 评论(0) 推荐(0)

查看内核模块加载时参数
摘要:[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 阅读全文

posted @ 2020-08-27 17:08 tycoon3 阅读(1160) 评论(0) 推荐(0)

vfio_enable_intx
摘要:/* enable legacy (INTx) interrupts */ static int vfio_enable_intx(const struct rte_intr_handle *intr_handle) { struct vfio_irq_set *irq_set; char irq_ 阅读全文

posted @ 2020-08-26 20:11 tycoon3 阅读(270) 评论(0) 推荐(0)

hugepages---No available hugepages reported in hugepages
摘要:[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 阅读全文

posted @ 2020-08-26 17:56 tycoon3 阅读(2888) 评论(0) 推荐(0)

Introduction to the UIO
摘要:https://hustcat.github.io/introduction-to-uio/ UIO 每个UIO设备可以通过设备文件(/dev/uioX)和sysfs的属性文件来访问。 可以通过mmap映射/dev/uioX来访问UIO设备的寄存器或者RAM。 直接read /dev/uioX来获取 阅读全文

posted @ 2020-08-26 15:16 tycoon3 阅读(417) 评论(0) 推荐(0)

uio 中断 /sys/class/uio/uio0/maps/map0/size
摘要: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 阅读全文

posted @ 2020-08-26 14:54 tycoon3 阅读(1389) 评论(0) 推荐(0)

VFIO Introduction
摘要:转载 https://blog.csdn.net/bemind1/article/details/99678642 What is VFIO? VFIO是一个可以安全的把设备I/O、中断、DMA等暴露到用户空间(userspace),从而可以在用户空间完成设备驱动的框架。 得益于vfio低开销的用户 阅读全文

posted @ 2020-08-26 14:14 tycoon3 阅读(1102) 评论(0) 推荐(0)

remap_pfn_range: 将bar空间映射到user space pci_map_device
摘要:网上的Linux PCI驱动教程基本就没有有用的。扯半天PCI配置空间就完了。但是PCI配置空间是最容易访问的,只是内核启动时扫描PCI设备时比较重要。对于PCI驱动,更常用的是PCI设备的IO空间和内存空间。以前只知道在PCI设备的配置空间中,BAR0-BAR5能够读取到PCI设备的IO空间或地址 阅读全文

posted @ 2020-08-26 11:12 tycoon3 阅读(2880) 评论(0) 推荐(0)

vanlif
摘要:无法访问10.10.17.252 dis mac-add | inc 9044 Flags: * - Backup # - forwarding logical interface, operations cannot be performed based on the interface. BD 阅读全文

posted @ 2020-08-25 19:17 tycoon3 阅读(213) 评论(0) 推荐(0)

DMAR 与 IOMMU
摘要:http://linuxperf.com/?p=67 支持虚拟化技术的硬件平台主要做两件事,一个是DMA Remapping,将DMA请求中的Guest的物理地址映射到Host的物理地址,另一个是中断Remapping,将能remappable的中断请求根据由VMM设置,位于内存的IRT(Inter 阅读全文

posted @ 2020-08-25 10:55 tycoon3 阅读(3615) 评论(0) 推荐(0)

print /proc/interrupts
摘要:#!/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) 阅读全文

posted @ 2020-08-25 10:03 tycoon3 阅读(200) 评论(0) 推荐(0)

上一页 1 ··· 15 16 17 18 19 20 21 22 23 下一页

导航