Commit graph

9 commits

Author SHA1 Message Date
Ondrej Mosnacek
46081dbdf1
kernel/synflood: disable the test due to being unreliable
The test doesn't detect the presence of the performance issue reliably
across machines and architectures, so disable it for now.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2022-04-27 14:42:52 +02:00
Ondrej Mosnacek
fa3b0fe2ce kernel/synflood: disable on s390x
There are no s390x machines with enough cores to run this test in RH's
Beaker and likely won't be available in any CI system in the near
future. Thus, exclude the test from this arch so that testing doesn't
fail due to lack of matching hardware.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2021-02-24 16:39:59 +01:00
Ondrej Mosnacek
5e0275eb2f kernel/synflood: require at least 64 cores and 2 NUMA nodes
Based on several runs in Beaker, these seem to be the best conditions
for distinguishing the bug. Currently, legacy Beaker HW filters are used
in the metadata. Once TMT introduces support for generic HW
requirements, they will need to be converted to the new format.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2021-01-19 14:04:27 +01:00
Ondrej Mosnacek
a358f02d2f kernel/synflood: reduce sampling time and increase duration
On fast systems with a lot of cores the 10s synflood run produces too
large perf.data (> 1 GiB), so reduce it to 5s and also increase the
test's time limit to 1h to make sure that it has enough time to process
such a large file.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2021-01-19 14:04:27 +01:00
Ondrej Mosnacek
e38ed68c9f kernel/synflood: refactor main test condition
It turns out there is too much variability in the percent values across
arches/machines, so give up on the general approach (checking that all
SELinux functions are below some hard limit) and instead focus only on
selinux_peerlbl_enabled() and compare its position with other functions.

In case selinux_peerlbl_enabled() is not found in /proc/kallsyms, it is
inlined into other functions, so we need to check selinux_ip_postroute()
instead of selinux_peerlbl_enabled().

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2021-01-19 14:04:27 +01:00
Ondrej Mosnacek
7ee186fe44 kernel/synflood: compress perf.data before uploading
The file can get really huge and it compresses well, so it's better to
compress it with xz before doing rlFileSubmit.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2021-01-19 13:20:40 +01:00
Ondrej Mosnacek
513ab703c5 kernel/synflood: raise maximum test duration
The generated perf.data can be quite big and uploading it takes a long
time in some cases, so raise the time to 20 minutes.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2021-01-14 10:29:44 +01:00
Ondrej Mosnacek
a6425dda5c kernel/synflood: add HW requirements to metadata
Needed to schedule correctly via bkr workflow-tomorrow.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2021-01-14 10:29:14 +01:00
Ondrej Mosnacek
419529ad63 Add test for TCP synflood performance
Verify that SELinux functions do not take up more time during a TCP SYN
flood than expected.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
2021-01-13 18:05:48 +01:00