将晦涩难懂的技术讲的通俗易懂
发布时间:2016-12-13 22:08:46
1 RPS/RFS 介绍1.1 RPS/RFS出现的原因RPS/RFS 功能是在Linux- 2.6.35中有google的工程师提交的两个补丁,这两个补丁的出现主要是基于以下两点现实的考虑:(1) 这两个补丁的出现,是由于服务器的CPU越来越强劲,可以到达十几核、几十核,而网卡硬件队列则才4个、.........【阅读全文】
发布时间:2016-09-18 23:51:57
socket层——TCP发送内核版本:3.15.2 Socket数据结构关系发送流程图 以下是send()、sendto()、sendmsg()和sendmmsg()的发送流程图,这四个函数除了在系统调用层面上有些差别,在Socket层和TCP层的实现都是相同的。 应用层 .........【阅读全文】
发布时间:2016-08-24 21:55:34
Linux 3.10 kernel bridge转发逻辑——lvyilong316之前分析过linux kernel 2.6.32的bridge转发逻辑,下面分析一下linux kernel 3.10的bridge转发逻辑。这样正是CentOS 5和CentOS 7对应的内核。3.10 kernel中bridge逻辑的最大改变就是增加了vlan处理逻辑以及brdige入口函数的设置。1. netdev_rx_handler_regis.........【阅读全文】
发布时间:2016-06-18 21:24:06
linux内核中VLAN收发处理——lvyilong316VLAN报文格式 基于802.1Q的VLAN帧格式如下:Type:长度为2字节,取值为0x8100,表示此帧的类型为802.1Q Tag帧。PRI:长度为3比特,可取0~7之间的值,表示帧的优先级,值越大优先级越高。该优先级主要为QoS差分服务提供参考依据(COS).........【阅读全文】
发布时间:2016-05-27 23:05:26
传输层到链路层——lvyilong316这里以TCP为例,讲述报文是如何从传输层进入链路层的。在TCP中将包打包成IP数据报的方法根据TCP段类型的不同而有多种接口。其中最常用的就是ip_queue_xmit()。我们就从这个接口开始。注:以下代码都去掉了不重要的一些逻辑。l ip_queue_xmitnet/ipv4/ip_output.c.........【阅读全文】
吻的感觉适2025-07-18 23:22
https://txc.qq.com/products/762843/blog/2022630
https://txc.qq.com/products/762814/blog/2022624
https://txc.qq.com/products/762833/blog/2022632
https://txc.qq.com/products/762839/blog/2022631
https://txc.qq.com/products/762835/blog/2022633
https://txc.qq.com/products/762845/blog/2022634
https://txc.qq.com/products/762810/blog/2022636
https://txc.qq.com/products/762848/blog/2022637
https://txc.qq.com/products/762843/blog/2022638
https://txc.qq.com/products/762814/blog/2022639
https://txc.qq.com/products/762839/blog/2022640
https://txc.qq.com/products/762833/blog/2022642
https://txc.qq.com/products/762810/blog/2022644
https://txc.qq.com/products/762843/blog/2022645
https://txc.qq.com/products/762814/blog/2022647
https://txc.qq.com/products/762833/blog/2022648
https://txc.qq.com/products/762843/blog/2022650
zf8292024-11-13 13:41
zf829:您好,请教大神一个问题,设备直通给VM时,中断到底会不会导致VM_EXIT吗,如果会,那VIRTIO直通时还会导致IO性能下降吧?“当透传设备产生中断时,vfio_msihandler ISR执行,该函数不做实际的服务程序处理,仅仅通过eventfd_signal激活irqfd_inject,然后最终调用deliver_posted_interrupt向虚机注入中断,中断号即为虚机配置透传设备时的中断号。” 这段描述在代码上我也仔细看了,逻辑肯定是对的,但另一方面我还是不确定中断到底会不会导致VM_EXIT
这里的中断主要是指数据包收发的中断
回复 | 举报