![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux内核
文章平均质量分 88
hz5034
这个作者很懒,什么都没留下…
展开
-
Linux系统调用
glibc版本2.34,kernel版本4.20以read为例,声明在/usr/include/unistd.h中,定义在glibc/sysdeps/unix/sysv/linux/read.c中。原创 2021-09-12 14:05:18 · 896 阅读 · 0 评论 -
Linux内核启动
kernel版本4.20linux/arch/x86/boot/header.S_start -> start_of_setup -> main .globl _start_start: # Explicitly enter this as bytes, or the assembler # tries to generate a 3-byte jump here, which causes # everything else to push off to the wrong原创 2021-09-05 19:58:58 · 576 阅读 · 0 评论 -
Linux epoll总结
http://www.man7.org/linux/man-pages/man7/epoll.7.htmlrecv/send:http://blog.csdn.net/petershina/article/details/7975798ET/LT:http://blog.chinaunix.net/xmlrpc.php?r=blog/article&id=4273856&uid...原创 2017-08-18 10:57:01 · 489 阅读 · 0 评论 -
Linux CPU总结
CPUsocket表示CPU插槽,1个CPU插槽安装1个物理CPUcore表示核,1个物理CPU包含多个coreThread表示线程(逻辑CPU),1个core包含1(关闭HT)或2(打开HT)个Thread双路十六核表示2个物理CPU,1个物理CPU包含16个核,打开HT后一共包含2 * 16 * 2 = 64核,如下所示: Socket 0 Socket 1Core...原创 2018-07-05 12:19:13 · 809 阅读 · 0 评论 -
Linux内核丢包
收发包各个queuehttps://www.cnblogs.com/zengkefu/p/5583618.htmlhttps://zhensheng.im/2017/08/11/2997/MIAO_LE_GE_MIhttps://www.sdnlab.com/17530.html统计数[root@localhost ~]# ethtool -S eth0NIC statistics: rx_packets: 3331177214 tx_packets: 3582794017原创 2018-07-05 12:34:17 · 2818 阅读 · 0 评论 -
Linux内核中断
异常分为4类:中断(interrupt),陷阱(trap)、故障(fault)、终止(abort)第1个是异步的,后3个是同步的。原创 2018-07-06 17:26:56 · 858 阅读 · 0 评论 -
Linux内核模块
源码Kernel git库:https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git下载速度太慢,使用清华大学的镜像:git clone https://mirrors.tuna.tsinghua.edu.cn/git/linux.gitDPDK git库:https://git.dpdk.org/dpdkgit clone git://dpdk.org/dpdk增加新模块以netfilter为例hello.c原创 2018-11-11 01:30:54 · 924 阅读 · 0 评论 -
Linux网卡总结
线速万兆网卡小包线速:64B + 7B(Preamble) + 1B(SFD) + 12B(IFG) = 84B10*10^9/84/8 = 14880952 pps万兆网卡大包线速:1518B + 7B(Preamble) + 1B(SFD) + 12B(IFG) = 1538B10*10^9/1538/8 = 812743 pps查看网卡信息# 查看网卡信息[root@localhost ~]# ethtool enp7s0f0Settings for enp7s0f0: ...原创 2019-02-12 23:15:53 · 4168 阅读 · 0 评论 -
KGDB调试Linux内核
调试环境宿主机(Mac OS X)安装VirtualBox,创建2台虚拟机(CentOS-7-x86_64-Minimal-1804.iso),2台虚拟机通过串口相连目标机:开发机:下载源码wget http://vault.centos.org/7.5.1804/os/Source/SPackages/kernel-3.10.0-862.el7.src.rpmrpm -i ker...原创 2019-08-18 22:58:54 · 593 阅读 · 0 评论