<div class="zcontentRow"> <p><br></p><div class="zhistoryHeader" style="line-height: 21px; white-space: normal; padding: 8px; background-color: rgb(245, 246, 248);"><div><strong language-data="HistorySenderTxt">发件人:</strong><span class="zreadUserName"> <berrange@redhat.com>;</span></div><div><strong language-data="HistoryTOTxt">收件人:</strong><span class="zreadUserName" style="display: inline;"> <jferlan@redhat.com>;</span></div><div><strong language-data="HistoryCCTxt">抄送人:</strong><span class="zreadUserName" style="display: inline;">芦志朋10108272;</span><span class="zreadUserName" style="display: inline;"> <libvir-list@redhat.com>;</span></div><div><strong language-data="HistoryDateTxt">日 期 :</strong><span class="">2017年07月11日 17:11</span></div><div><strong language-data="HistorySubjectTxt">主 题 :</strong><span class="zreadTitle"><strong>Re: [libvirt] [PATCH] util: increase libnl buffer size to 1M</strong></span></div></div><p class="zhistoryContent" style="line-height: 21px; white-space: normal;"><br></p><div style="white-space: normal;">>>On Mon, Jul 10, 2017 at 02:51:34PM -0400, John Ferlan wrote:<br>>><br>> ><br>>> On 06/29/2017 02:05 PM, ZhiPeng Lu wrote:<br>>> > nl_recv() returns the error "No buffer space available"<br>>> > when using virsh destroy domain with 240 or more<br>>> > passhthrough network interfaces.<br>>> <br>>> pass-through<br>>> <br>>> > The patch increases libnl sock receive buffer size to 1M,<br>>> > and nl_recv() doesn't return error when destroying domain<br>>> > with 512 network interfaces.<br>>> > <br>>> > Signed-off-by: ZhiPeng Lu <lu.zhipeng@zte.com.cn><br>>> > ---<br>>> >  src/util/virnetlink.c | 4 ++--<br>>> >  1 file changed, 2 insertions(+), 2 deletions(-)<br>>> > <br>>> <br>>> This feels like something that perhaps should be configurable - that is<br>>> some /etc/libvirt/libvirtd.conf variable; otherwise, we'll keep hitting<br>>> some conflated maximum based on the size of something.<br><br>>1 MB matches what systemed/udevd uses, so if we hit that limit, then  the<br>>system as a whole is going to struggle already. So I don't think we need<br>>make it configurable.<br><br><br><br><p class="ordinary-output target-output clearfix" style="margin-top: 0px;margin-bottom: 0px;padding: 0px;line-height: 22px;font-size: 16px;color: rgb(51, 51, 51)"><span left-pos="0|92" right-pos="0|92" space="" class="">----------1M is just an experience value, and I feel that setting up a configuration item</span></p><p class="ordinary-output target-output clearfix" style="margin-top: 0px;margin-bottom: 0px;padding: 0px;line-height: 22px;font-size: 16px;color: rgb(51, 51, 51)"><span left-pos="0|92" right-pos="0|92" space="" class=""> can accommodate the needs of different users.</span><span left-pos="95|86" right-pos="95|86" space="0| " class="" tabcount="-1"> </span></p><p class="ordinary-output target-output clearfix" style="margin-top: 0px;margin-bottom: 0px;padding: 0px;line-height: 22px;font-size: 16px;color: rgb(51, 51, 51)"><span left-pos="95|86" right-pos="95|86" space="0| " class="" tabcount="-1">In addition, this is only the netlink socket receive buffer size that will not affect the entire system.</span></p><p class="ordinary-output target-output clearfix" style="margin-top: 0px;margin-bottom: 0px;padding: 0px;line-height: 22px;font-size: 16px;color: rgb(51, 51, 51)"><span left-pos="95|86" right-pos="95|86" space="0| " class="" tabcount="-1">The default value can still be set to 128K.</span></p></div><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"> <berrange@redhat.com>;</span></div><div><strong language-data="HistoryTOTxt">收件人:</strong><span class="zreadUserName" style="display: inline;"> <jferlan@redhat.com>;</span></div><div><strong language-data="HistoryCCTxt">抄送人:</strong><span class="zreadUserName" style="display: inline;">芦志朋10108272;</span><span class="zreadUserName" style="display: inline;"> <libvir-list@redhat.com>;</span></div><div><strong language-data="HistoryDateTxt">日 期 :</strong><span class="">2017年07月11日 17:11</span></div><div><strong language-data="HistorySubjectTxt">主 题 :</strong><span class="zreadTitle"><strong>Re: [libvirt] [PATCH] util: increase libnl buffer size to 1M</strong></span></div></div><p class="zhistoryContent"><br></p><div>On Mon, Jul 10, 2017 at 02:51:34PM -0400, John Ferlan wrote:<br>> <br>> <br>> On 06/29/2017 02:05 PM, ZhiPeng Lu wrote:<br>> > nl_recv() returns the error "No buffer space available"<br>> > when using virsh destroy domain with 240 or more<br>> > passhthrough network interfaces.<br>> <br>> pass-through<br>> <br>> > The patch increases libnl sock receive buffer size to 1M,<br>> > and nl_recv() doesn't return error when destroying domain<br>> > with 512 network interfaces.<br>> > <br>> > Signed-off-by: ZhiPeng Lu <lu.zhipeng@zte.com.cn><br>> > ---<br>> >  src/util/virnetlink.c | 4 ++--<br>> >  1 file changed, 2 insertions(+), 2 deletions(-)<br>> > <br>> <br>> This feels like something that perhaps should be configurable - that is<br>> some /etc/libvirt/libvirtd.conf variable; otherwise, we'll keep hitting<br>> some conflated maximum based on the size of something.<br><br>1 MB matches what systemed/udevd uses, so if we hit that limit, then  the<br>system as a whole is going to struggle already. So I don't think we need<br>make it configurable.<br><br><br>Regards,<br>Daniel<br>-- <br>|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|<br>|: https://libvirt.org         -o-            https://fstop138.berrange.com :|<br>|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|<br></div><p><br></p></div></div></div></div><p><br></p> </div>