<div class="zcontentRow"> <p><span style="line-height: 21px;">>On 07/17/2017 08:00 AM, John Ferlan wrote:</span><br style="white-space: normal;"><span style="line-height: 21px;">>></span><br style="white-space: normal;"><span style="line-height: 21px;">> On 07/16/2017 05:04 PM, Laine Stump wrote:</span><br style="white-space: normal;"><span style="line-height: 21px;">>> On 07/11/2017 09:01 PM, ZhiPeng Lu wrote:</span><br style="white-space: normal;"><span style="line-height: 21px;">>>> This patchs allow to set the buffer size for netlink socket in</span><br style="white-space: normal;"><span style="line-height: 21px;">>>> the libvirtd configuration file. The default buffer size remain</span><br style="white-space: normal;"><span style="line-height: 21px;">>>> as before at 128k.</span><br style="white-space: normal;"><span style="line-height: 21px;">>> See my more detailed response to your earlier patch here:</span><br style="white-space: normal;"><span style="line-height: 21px;">>></span><br style="white-space: normal;"><span style="line-height: 21px;">>></span><br style="white-space: normal;"><span style="line-height: 21px;">>>   https://www.redhat.com/archives/libvir-list/2017-July/msg00566.html</span><br style="white-space: normal;"><span style="line-height: 21px;">>></span><br style="white-space: normal;"><span style="line-height: 21px;">>> There should be no need to configure the initial libnl buffer size,</span><br style="white-space: normal;"><span style="line-height: 21px;">>> because we enable MSG_PEEK on the libnl sockets (and recent versions of</span><br style="white-space: normal;"><span style="line-height: 21px;">>> libnl have it turned on by default anyway). If that's not permitting the</span><br style="white-space: normal;"><span style="line-height: 21px;">>> buffer to auto-grow as necessary, then there is a different bug somewhere.</span><br style="white-space: normal;"><span style="line-height: 21px;">>></span><br style="white-space: normal;"><span style="line-height: 21px;">>> If an old version of libnl is the problem, then perhaps a patch which</span><br style="white-space: normal;"><span style="line-height: 21px;">>> just adds a comment in virNetlinkCreateSocket to "summarize" what gets</span><br style="white-space: normal;"><span style="line-height: 21px;">>> discovered w/r/t MSG_PEEK and the "correct" minimum version of libnl so</span><br style="white-space: normal;"><span style="line-height: 21px;">> that the "next" person to come this way will have a chance at</span><br style="white-space: normal;"><span style="line-height: 21px;">>> understanding what needs to be done without going through the submit a</span><br style="white-space: normal;"><span style="line-height: 21px;">>> patch changing the size again!</span><br style="white-space: normal;"><span style="line-height: 21px;">>></span><br style="white-space: normal;"><span style="line-height: 21px;">> >All that said, having it be configurable could be useful for someone who</span><br style="white-space: normal;"><span style="line-height: 21px;">> ></span><span style="line-height: 21px;">has a system that doesn't have that version, while still working as</span></p><p><span style="line-height: 21px;">> >expected for the right version.</span><br style="white-space: normal;"><br style="white-space: normal;"><br style="white-space: normal;"><span style="line-height: 21px;">>I think it may need to be a fairly unusual combination of kernel,</span><br style="white-space: normal;"><span style="line-height: 21px;">>libvirt, and libnl versions, combined with pretty "big" hardware in</span><br style="white-space: normal;"><span style="line-height: 21px;">>order for that to happen. More information from ZhiPeng about the</span><br style="white-space: normal;"><span style="line-height: 21px;">>versions of those packages might allow us to make a better informed</span><br style="white-space: normal;"><span style="line-height: 21px;">>decision.</span><br style="white-space: normal;"><br style="white-space: normal;"><span style="line-height: 21px;">>Workarounds are okay when necessary. But adding a config parameter is</span><br style="white-space: normal;"><span style="line-height: 21px;">>something that would need to be left in forever, leaving more code to</span><br style="white-space: normal;"><span style="line-height: 21px;">>maintain, and all for a bug that shouldn't even be there today, much</span><br style="white-space: normal;"><span style="line-height: 21px;">>less 6 months or a year from now - turning on message peek was supposed</span><br style="white-space: normal;"><span style="line-height: 21px;">>to "eliminate this problem totally and permanently". If it didn't, I'd</span><br style="white-space: normal;"><span style="line-height: 21px;">>like to know why.</span><br style="white-space: normal;"><br style="white-space: normal;"><span style="line-height: 21px;">>ZhipPeng - can you tell us more about your setup? package versions,</span><br style="white-space: normal;"><span style="line-height: 21px;">>hardware, example XML, gdb backtrace at the instant the error message is</span><br style="white-space: normal;"><span style="line-height: 21px;">>logged?</span></p><p><span style="line-height: 21px;"><br></span></p><p><span style="line-height: 21px;">-----</span><span style="line-height: 21px;"> Thanks.</span></p><p><span style="line-height: 21px;">i  will try to update libnl3 to 3.2.29 </span><span style="line-height: 21px;"> ,now  libnl3 is 3.2.8 in my host</span></p><p><br></p><p><br></p><p><br></p><p><br></p><div class="zMailSign"><div><div><div><div><p style="font-family: 宋体; font-size: 7.0px; line-height: normal; widows: 1;"><span style="font-size:12px;color:#58595B;font-family:微软雅黑;font-size: 7.0px;"><span class="signedit"><br></span></span></p><p style="font-family: 宋体; font-size: medium; line-height: normal; widows: 1;"><span style="font-size:12px;color:#58595B;font-family:微软雅黑"><span class="signedit" id="sign_name">芦志朋</span> <span style="font-family:Arial"><span class="signedit" id="sign_name_eng">luzhipeng</span></span></span></p><p style="font-size: 7.0px; line-height: normal; widows: 1;"><span style="font-size:12px;color:#58595B;font-family:微软雅黑;font-size: 7.0px;"><span style=""><span class="signedit"><br></span></span></span></p><p style="font-family: 宋体; font-size: medium; line-height: normal; widows: 1;"><span style="font-size:10px;color:#58595B;font-family:微软雅黑"><span class="signedit" id="sign_position">IT开发工程师</span> <span style="font-family:Arial"><span class="signedit" id="sign_position_eng">IT Development
Engineer</span></span></span><br><span style="font-size:10px;color:#58595B;font-family:微软雅黑"><span class="signedit" id="sign_dept">操作系统产品部/中心研究院/系统产品</span> <span style="font-family:Arial"> <span class="signedit" id="sign_dept_eng">OS Product Dept./Central R&D Institute/System Product</span></span></span></p><p style="font-size: 7.0px; line-height: normal; widows: 1;"><span style="font-size:10px;color:#58595B;font-family:微软雅黑;font-size: 7.0px;"><span style=""><span class="signedit"><br></span></span></span></p><p style="font-size: 7.0px; line-height: normal; widows: 1;"><span style="font-size:10px;color:#58595B;font-family:微软雅黑;font-size: 7.0px;"></span></p><table style="color: rgb(0, 0, 0); font-family: 宋体; widows: 1;"><tbody><tr class="firstRow"><td valign="top" width="100"><img id="sign-icon" src="cid:9ae3e214c17d49ed935d87c674ba3ee2" width="130" height="120"></td><td valign="top" width="500"><img id="sign-logo" src="cid:24242e5637af428891c4db731e7765ad" width="115" height="38"><br><span style="font-size:10px;color:#58595B;font-family:微软雅黑"><span class="signedit" id="sign_addr">深圳市南山区科技南路55号中兴通讯研发大楼33楼 </span><br><span style="font-family:Arial"><span class="signedit" id="sign_addr_eng_1">33/F, R&D Building, ZTE
Corporation Hi-tech Road South</span>, <br><span class="signedit" id="sign_addr_eng_2">Hi-tech
Industrial Park Nanshan District, Shenzhen, P.R.China, 518057</span> <br><span style="color:#008FD4">T</span>: <span class="signedit" id="sign_fix_phone">+86 755 xxxxxxxx</span> <span style="color:#008FD4">F</span>:<span class="signedit" id="sign_fax">+86 755 xxxxxxxx</span> <br><span style="color:#008FD4">M</span>: <span class="signedit" id="sign_phone">+86 xxxxxxxxxxx</span> <br><span style="color:#008FD4">E</span>: <span class="signedit" id="sign_email"><a href="mailto:lu.zhipeng@zte.com.cn">lu.zhipeng@zte.com.cn</a></span> <br><span style="color:#008FD4"><a href="http://www.zte.com.cn/" target="_blank">www.zte.com.cn</a></span></span></span></td></tr></tbody></table><span style="line-height: normal; widows: 1; font-size: 7.0px;;color:#58595b;font-size:10px"></span></div></div></div></div></div><div><div class="zhistoryRow" style="display:block"><div class="zhistoryDes" style="width: 100%; height: 28px; line-height: 28px; background-color: #E0E5E9; color: #1388FF; text-align: center;" language-data="HistoryOrgTxt">原始邮件</div><div id="zwriteHistoryContainer"><div class="control-group zhistoryPanel"><div class="zhistoryHeader" style="padding: 8px; background-color: #F5F6F8;"><div><strong language-data="HistorySenderTxt">发件人:</strong><span class="zreadUserName"> <laine@laine.org>;</span></div><div><strong language-data="HistoryTOTxt">收件人:</strong><span class="zreadUserName" style="display: inline;"> <libvir-list@redhat.com>;</span></div><div><strong language-data="HistoryCCTxt">抄送人:</strong><span class="zreadUserName" style="display: inline;"> <jferlan@redhat.com>;</span><span class="zreadUserName" style="display: inline;">芦志朋10108272;</span></div><div><strong language-data="HistoryDateTxt">日 期 :</strong><span class="">2017年07月21日 10:01</span></div><div><strong language-data="HistorySubjectTxt">主 题 :</strong><span class="zreadTitle"><strong>Re: [libvirt] [PATCH v2] network: allow to specify buffer size fornetlink socket</strong></span></div></div><p class="zhistoryContent"><br></p><div>On 07/17/2017 08:00 AM, John Ferlan wrote:<br>><br>> On 07/16/2017 05:04 PM, Laine Stump wrote:<br>>> On 07/11/2017 09:01 PM, ZhiPeng Lu wrote:<br>>>> This patchs allow to set the buffer size for netlink socket in<br>>>> the libvirtd configuration file. The default buffer size remain<br>>>> as before at 128k.<br>>> See my more detailed response to your earlier patch here:<br>>><br>>><br>>>   https://www.redhat.com/archives/libvir-list/2017-July/msg00566.html<br>>><br>>> There should be no need to configure the initial libnl buffer size,<br>>> because we enable MSG_PEEK on the libnl sockets (and recent versions of<br>>> libnl have it turned on by default anyway). If that's not permitting the<br>>> buffer to auto-grow as necessary, then there is a different bug somewhere.<br>>><br>> If an old version of libnl is the problem, then perhaps a patch which<br>> just adds a comment in virNetlinkCreateSocket to "summarize" what gets<br>> discovered w/r/t MSG_PEEK and the "correct" minimum version of libnl so<br>> that the "next" person to come this way will have a chance at<br>> understanding what needs to be done without going through the submit a<br>> patch changing the size again!<br>><br>> All that said, having it be configurable could be useful for someone who<br>> has a system that doesn't have that version, while still working as<br>> expected for the right version.<br><br><br>I think it may need to be a fairly unusual combination of kernel,<br>libvirt, and libnl versions, combined with pretty "big" hardware in<br>order for that to happen. More information from ZhiPeng about the<br>versions of those packages might allow us to make a better informed<br>decision.<br><br>Workarounds are okay when necessary. But adding a config parameter is<br>something that would need to be left in forever, leaving more code to<br>maintain, and all for a bug that shouldn't even be there today, much<br>less 6 months or a year from now - turning on message peek was supposed<br>to "eliminate this problem totally and permanently". If it didn't, I'd<br>like to know why.<br><br>ZhipPeng - can you tell us more about your setup? package versions,<br>hardware, example XML, gdb backtrace at the instant the error message is<br>logged?<br><br></div><p><br></p></div></div></div></div><p><br></p> </div>