<div dir="ltr">Dear Users/Developers,<div><br></div><div>I am using a KVM Ubuntu VM as a degrader to apply specific delays to incoming packets. As the delay for my packets can be higher than 7.5 seconds, there is not enough buffer on my interface to buffer all the packets. Therefore those overflowing packets are dropped in the machine and not forwarded.</div><div><br></div><div>When I tried to use the command  ethtool -G ens8 rx 512 to increase the buffer size, I get the following error.</div><div><br></div><div>Cannot set device ring parameters: Operation not permitted<br></div><div><br></div><div>I have kept the VM xml files as specified in the link : <a href="https://libvirt.org/formatdomain.html">https://libvirt.org/formatdomain.html</a>. The value that I kept in my xml file is as follows.</div><div><br></div><div><div><interface type='direct'></div><div>      <mac address='52:54:00:72:f9:eb'/></div><div>      <source dev='enp7s0f0' mode='vepa'/></div><div>      <model type='virtio'/></div><div>      <driver name='vhost' queues='5' rx_queue_size='512' tx_queue_size='512'></div><div>      <host csum='off' gso='off' tso4='off' tso6='off' ecn='off' ufo='off' mrg_rxbuf='off'/></div><div>      <guest csum='off' tso4='off' tso6='off' ecn='off' ufo='off'/></div><div>      </driver></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/></div><div>    </interface></div><div>    <interface type='direct'></div><div>      <mac address='52:54:00:00:b5:99'/></div><div>      <source dev='enp7s0f1' mode='vepa'/></div><div>      <model type='virtio'/></div><div>      <driver name='vhost' queues='5' rx_queue_size='512' tx_queue_size='512'></div><div>      <host csum='off' gso='off' tso4='off' tso6='off' ecn='off' ufo='off' mrg_rxbuf='off'/></div><div>      <guest csum='off' tso4='off' tso6='off' ecn='off' ufo='off'/></div><div>      </driver></div><div>      <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/></div></div><div><br></div><div>After I saved the xml and redefined the machine and started it up, I checked to see if the buffers are increased. I still see that the buffers are as follows.</div><div><br></div><div><div>Ring parameters for ens9:</div><div>Pre-set maximums:</div><div>RX:<span style="white-space:pre">          </span>4096</div><div>RX Mini:<span style="white-space:pre">  </span>0</div><div>RX Jumbo:<span style="white-space:pre">    </span>0</div><div>TX:<span style="white-space:pre">          </span>4096</div><div>Current hardware settings:</div><div>RX:<span style="white-space:pre">              </span><b>256</b></div><div>RX Mini:<span style="white-space:pre">        </span>0</div><div>RX Jumbo:<span style="white-space:pre">    </span>0</div><div>TX:<span style="white-space:pre">          </span><b>256</b></div></div><div><br></div><div><br></div><div>How can I increase the buffer on my KVM VM?</div><div><br></div><div><div><div class="gmail_signature">Best Regards,<br>Ashish Kurian</div></div>
</div></div>