<div dir="ltr">Hi Michal,<div><br></div><div>An update to what I have already said : when I try adding <span style="font-size:12.8px"><driver name='qemu' txmode='iothread' ioeventfd='on' event_idx='off' queues='1' rx_queue_size='512' tx_queue_size='512'> although it showed me the error as mentioned, when I checked the xml again I saw that </span><span style="font-size:12.8px"><driver name='qemu' txmode='iothread' ioeventfd='on' event_idx='off' > is added to the interface.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">The missing parameters are : </span><span style="font-size:12.8px">queues='1' rx_queue_size='512' tx_queue_size='512'</span></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">Best Regards,<br>Ashish Kurian</div></div>
<br><div class="gmail_quote">On Wed, Oct 25, 2017 at 5:07 PM, Ashish Kurian <span dir="ltr"><<a href="mailto:ashishbnv@gmail.com" target="_blank">ashishbnv@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Michal,<div><br></div><div>What I found was that when I restarted the machine and did a virsh edit command to see the xml config, I see that it is was not actually changed. This suggests why I saw 256 again after restarting.</div><div><br></div><div>So now I tried again to edit the xml via virsh edit command and used the following to set the parameters.</div><div><br></div><div><driver name='qemu' txmode='iothread' ioeventfd='on' event_idx='off' queues='1' rx_queue_size='512' tx_queue_size='512'><br></div><div></driver><br></div><div><br></div><div>It was not accepted and I got the error saying :</div><div><br></div><div><br></div><div><div>error: XML document failed to validate against schema: Unable to validate doc against /usr/share/libvirt/schemas/<wbr>domain.rng</div><div>Extra element devices in interleave</div><div>Element domain failed to validate content</div></div><div><br></div><div>What does this imply? I have two more other interfaces and do I have to the same to them also?</div><div><br></div><div>Btw, there are now logs generated now in the domain log or libvirtd log</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="m_8788737298834798581gmail_signature" data-smartmail="gmail_signature">Best Regards,<br>Ashish Kurian</div></div><div><div class="h5">
<br><div class="gmail_quote">On Wed, Oct 25, 2017 at 2:50 PM, Michal Privoznik <span dir="ltr"><<a href="mailto:mprivozn@redhat.com" target="_blank">mprivozn@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_8788737298834798581HOEnZb"><div class="m_8788737298834798581h5">On 10/25/2017 01:53 PM, Ashish Kurian wrote:<br>
> Dear Users/Developers,<br>
><br>
> I am using a KVM Ubuntu VM as a degrader to apply specific delays to<br>
> incoming packets. As the delay for my packets can be higher than 7.5<br>
> seconds, there is not enough buffer on my interface to buffer all the<br>
> packets. Therefore those overflowing packets are dropped in the machine and<br>
> not forwarded.<br>
><br>
> When I tried to use the command  ethtool -G ens8 rx 512 to increase the<br>
> buffer size, I get the following error.<br>
><br>
> Cannot set device ring parameters: Operation not permitted<br>
><br>
> I have kept the VM xml files as specified in the link :<br>
> <a href="https://libvirt.org/formatdomain.html" rel="noreferrer" target="_blank">https://libvirt.org/formatdoma<wbr>in.html</a>. The value that I kept in my xml file<br>
> is as follows.<br>
><br>
> <interface type='direct'><br>
>       <mac address='52:54:00:72:f9:eb'/><br>
>       <source dev='enp7s0f0' mode='vepa'/><br>
>       <model type='virtio'/><br>
>       <driver name='vhost' queues='5' rx_queue_size='512'<br>
> tx_queue_size='512'><br>
>       <host csum='off' gso='off' tso4='off' tso6='off' ecn='off' ufo='off'<br>
> mrg_rxbuf='off'/><br>
>       <guest csum='off' tso4='off' tso6='off' ecn='off' ufo='off'/><br>
>       </driver><br>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x08'<br>
> function='0x0'/><br>
>     </interface><br>
>     <interface type='direct'><br>
>       <mac address='52:54:00:00:b5:99'/><br>
>       <source dev='enp7s0f1' mode='vepa'/><br>
>       <model type='virtio'/><br>
>       <driver name='vhost' queues='5' rx_queue_size='512'<br>
> tx_queue_size='512'><br>
>       <host csum='off' gso='off' tso4='off' tso6='off' ecn='off' ufo='off'<br>
> mrg_rxbuf='off'/><br>
>       <guest csum='off' tso4='off' tso6='off' ecn='off' ufo='off'/><br>
>       </driver><br>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x09'<br>
> function='0x0'/><br>
<br>
</div></div>So what does the qemu command line look like? You can find it in either<br>
libvirtd log or domain log.<br>
<br>
<a href="http://wiki.libvirt.org/page/DebugLogs" rel="noreferrer" target="_blank">http://wiki.libvirt.org/page/D<wbr>ebugLogs</a><br>
<span class="m_8788737298834798581HOEnZb"><font color="#888888"><br>
Michal<br>
</font></span></blockquote></div><br></div></div></div>
</blockquote></div><br></div>