Bug 1720482
Summary: | virNWFilterUndefine takes significant amount of time | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Roman Hodain <rhodain> |
Component: | libvirt | Assignee: | Laine Stump <laine> |
Status: | CLOSED DEFERRED | QA Contact: | yalzhang <yalzhang> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.6 | CC: | berrange, dyuan, gwatson, jsuchane, lmen, sirao, xuzhang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-08-05 15:54:09 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Roman Hodain
2019-06-14 06:47:03 UTC
Defining of nwfilters is known to be slow, largely due to the overhead of running many individual iptables commands. This is discussed in quite some detail here https://www.redhat.com/archives/libvir-list/2018-September/msg01206.html Unfortunately undefine is also slow because it ultimately triggers a rebuild of filters too. It is not actually necessary to undefine first if you just want to update the existing filter. In fact it will be blocked if any running VM is using the filter. Instead apps can just define over the top of an existing filter causing automatic rebuild as needed. Overall - VDSM shouldn't call undefine at all - If it expects that rules have changed, then call define, but it will still be slow. Ideally don't call define if you don't have changes - Libvirt could be improved to optimize speed of undefine without much trouble, but - Optimizing speed of define is very difficult Based on our discussion I have created Bug 1722854. So if that is OK with RHV ENG we may close this one. Bug 1722854 is in POST and it sounds like it has solved the problem for RHV, so I'm closing this BZ (although if the nwfilter driver is ever refactored, we should keep this inefficiency in mind) |