<div dir="ltr"><div dir="ltr">cc libvirt-users for more inputs</div><div><br></div><div>Hi, </div><div><div><br></div><div>I'm trying to find out how to check sndbuf for a tap device, could you please help to check it? </div><div><br></div>In kernel 2.6.18, the <span style="color:rgb(0,0,0);white-space:pre-wrap">tap device's default </span><span style="color:rgb(0,0,0);white-space:pre-wrap">sndbuf is </span><span style="color:rgb(0,0,0);white-space:pre-wrap">1MB. </span><span style="color:rgb(0,0,0);white-space:pre-wrap">There is a RFE bug[1] and patch[2] to introduce the option below in libvirt to adjust the sndbuf. </span><div><tune> <div><sndbuf>1600</sndbuf> </div><div></tune><div>It is said in the patch<span style="color:rgb(0,0,0);white-space:pre-wrap">[2]</span> that when we set <span style="color:rgb(0,0,0);white-space:pre-wrap">sndbuf=0, we actually set it to </span><span style="color:rgb(0,0,0);white-space:pre-wrap">0xffffffff.</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">How to check if it is set successfully?  I have checked the below files, the value didn't change after I start a vm with </span><span style="color:rgb(0,0,0);white-space:pre-wrap">sndbuf=0</span></div><div># grep . /proc/sys/net/core/*mem_default<br>/proc/sys/net/core/rmem_default:212992<br>/proc/sys/net/core/wmem_default:212992<span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><br></div><div>And from the doc[3]: "The default value is set by the /proc/sys/net/core/wmem_default file and the maximum allowed value is set by the /proc/sys/net/core/wmem_max file."</div></div><div>Current kernel 5.14.0-177.el9 has some updates about sndbuf:</div><div># cat  /proc/sys/net/core/wmem_default<br>212992<br></div><div># cat  /proc/sys/net/core/wmem_max<br>212992<br></div><div><br></div><div>Thank you!</div><div><br></div><div><br></div><div>[1] <a href="https://bugzilla.redhat.com/show_bug.cgi?id=665293" target="_blank" style="color:rgb(0,136,206);text-decoration-line:none;font-family:"Open Sans",Helvetica,sans-serif;outline:none">Bug 665293</a><span style="color:rgb(0,0,0);font-family:"Open Sans",Helvetica,sans-serif;background-color:rgb(208,208,208)"> </span><span id="m_9131294580458279655m_-8653297862153678596m_-4819083833963082437gmail-summary_container" style="color:rgb(0,0,0);font-family:"Open Sans",Helvetica,sans-serif">- <span id="m_9131294580458279655m_-8653297862153678596m_-4819083833963082437gmail-short_desc_nonedit_display">RFE: Allow setting size of send buffer per TAP device in QEMU driver</span></span></div><div><span style="color:rgb(0,0,0);font-family:"Open Sans",Helvetica,sans-serif">[2] </span><a href="https://listman.redhat.com/archives/libvir-list/2011-January/032763.html" target="_blank">https://listman.redhat.com/archives/libvir-list/2011-January/032763.html</a></div><div>[3] <a href="https://man7.org/linux/man-pages/man7/socket.7.html" target="_blank">https://man7.org/linux/man-pages/man7/socket.7.html</a></div><div><span style="color:rgb(102,102,102)"><br></span></div><div><span style="color:rgb(102,102,102)">Yalan</span></div></div></div></div>