| Message ID | 20260316124022.316230-1-pvorel@suse.cz |
|---|---|
| State | Needs Review / ACK |
| Headers | show |
| Series | tst_kconfig: Don't consider CONFIG_FAULT_INJECTION slow | expand |
| Context | Check | Description |
|---|---|---|
| ltpci/default | success | success |
| ltpci/debian_stable_powerpc64le-linux-gnu-gcc_ppc64el | success | success |
| ltpci/debian_stable_s390x-linux-gnu-gcc_s390x | success | success |
| ltpci/debian_stable_aarch64-linux-gnu-gcc_arm64 | success | success |
| ltpci/debian_oldstable_gcc | success | success |
| ltpci/ubuntu_jammy_gcc | success | success |
| ltpci/debian_stable_gcc | success | success |
| ltpci/quay-io-centos-centos_stream9_gcc | success | success |
| ltpci/alpine_latest_gcc | success | success |
| ltpci/opensuse-archive_42-2_gcc | success | success |
| ltpci/debian_oldstable_clang | success | success |
| ltpci/debian_testing_gcc | success | success |
| ltpci/debian_stable_gcc | success | success |
| ltpci/opensuse-leap_latest_gcc | success | success |
| ltpci/fedora_latest_clang | success | success |
| ltpci/ubuntu_bionic_gcc | success | success |
| ltpci/debian_testing_clang | success | success |
Hi Petr, I didn't use fault injection extensively, but I read that when verbose mode is enabled we might have a big slowdown, so I wouldn't skip this check. Eventually, we can implement a check that verifies if fault injection is enabled with a high verbosity. That would probably make more sense. Regards, -- Andrea Cervesato SUSE QE Automation Engineer Linux andrea.cervesato@suse.com
Hi Andrea, > Hi Petr, > I didn't use fault injection extensively, but I read that when verbose mode is > enabled we might have a big slowdown, so I wouldn't skip this check. But it's default off. If one enables it, it could also increase LTP_RUNTIME_MUL. IMHO the only effect now is 4* longer timeout on a kernel bug which freezes test running. > Eventually, we can implement a check that verifies if fault injection is enabled > with a high verbosity. That would probably make more sense. Do you mean to look if /sys/kernel/debug/fail*/verbose exist and contain 2? https://origin.kernel.org/doc/html/latest/fault-injection/fault-injection.html#configure-fault-injection-capabilities-behavior Kind regards, Petr > Regards,
Hi! > I didn't use fault injection extensively, but I read that when verbose mode is > enabled we might have a big slowdown, so I wouldn't skip this check. > > Eventually, we can implement a check that verifies if fault injection is enabled > with a high verbosity. That would probably make more sense. In this case the fault injection looks like something that you have to configure before use so I would assume that anyone who configure this can also adjust the LTP multipliers. Maybe we can just print TINFO message that the config is on and may slown donw the execution instead?
Hi all, > Hi! > > I didn't use fault injection extensively, but I read that when verbose mode is > > enabled we might have a big slowdown, so I wouldn't skip this check. > > Eventually, we can implement a check that verifies if fault injection is enabled > > with a high verbosity. That would probably make more sense. > In this case the fault injection looks like something that you have to > configure before use so I would assume that anyone who configure this > can also adjust the LTP multipliers. > Maybe we can just print TINFO message that the config is on and may > slown donw the execution instead? What do you mean by "slow down the execution"? Anyway, I'd really like to get this solved, not only due 4x longer runtime by default on Tumbleweed (in case of sigkill test really hangs for 2 mins) tst_kconfig.c:753: TINFO: CONFIG_FAULT_INJECTION kernel option detected which might slow the execution tst_test.c:1870: TINFO: Overall timeout per run is 0h 02m 00s but on other machines due slow worker with setup LTP_TIMEOUT_MUL=2 we get even 4 min (8x longer wasted time) tst_kconfig.c:753: TINFO: CONFIG_FAULT_INJECTION kernel option detected which might slow the execution tst_test.c:1870: TINFO: Overall timeout per run is 0h 04m 00s Nobody complained that he's actively using CONFIG_FAULT_INJECTION and needed this setup, but we are really hit by this. That's why I took a simple approach to ignore CONFIG_FAULT_INJECTION. Kind regards, Petr
diff --git a/lib/tst_kconfig.c b/lib/tst_kconfig.c index adc56503e2..5f778d2adc 100644 --- a/lib/tst_kconfig.c +++ b/lib/tst_kconfig.c @@ -647,7 +647,6 @@ static struct tst_kconfig_var slow_kconfigs[] = { TST_KCONFIG_INIT("CONFIG_DEBUG_NET"), TST_KCONFIG_INIT("CONFIG_EXT4_DEBUG"), TST_KCONFIG_INIT("CONFIG_QUOTA_DEBUG"), - TST_KCONFIG_INIT("CONFIG_FAULT_INJECTION"), TST_KCONFIG_INIT("CONFIG_DEBUG_OBJECTS") };
Tumbleweed has only CONFIG_FAULT_INJECTION. All tests run ok before (without 4x longer expected runtime), let's don't blindly increase it. Signed-off-by: Petr Vorel <pvorel@suse.cz> --- IMHO the only effect of the detection on Tumbleweed would be if test gets stuck will block testing for 2 min instead of just 30 sec. Kind regards, Petr lib/tst_kconfig.c | 1 - 1 file changed, 1 deletion(-)