linux-next/arch/um
Benjamin Berg 0b8b2668f9 um: insert scheduler ticks when userspace does not yield
In time-travel mode userspace can do a lot of work without any time
passing. Unfortunately, this can result in OOM situations as the RCU
core code will never be run.

Work around this by keeping track of userspace processes that do not
yield for a lot of operations. When this happens, insert a jiffie into
the sched_clock clock to account time against the process and cause the
bookkeeping to run.

As sched_clock is used for tracing, it is useful to keep it in sync
between the different VMs. As such, try to remove added ticks again when
the actual clock ticks.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Link: https://patch.msgid.link/20241010142537.1134685-1-benjamin@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2024-10-23 09:52:49 +02:00
..
configs um: Remove 3-level page table support on i386 2024-10-10 12:06:43 +02:00
drivers um: hostaudio: Do not propagate mixer parameter to kernel 2024-10-23 09:52:49 +02:00
include um: insert scheduler ticks when userspace does not yield 2024-10-23 09:52:49 +02:00
kernel um: insert scheduler ticks when userspace does not yield 2024-10-23 09:52:49 +02:00
os-Linux um: insert scheduler ticks when userspace does not yield 2024-10-23 09:52:49 +02:00
scripts um: prevent user code in modules 2023-04-20 23:06:38 +02:00
.gitignore um: gitignore: Add kernel/capflags.c 2021-12-21 21:22:43 +01:00
Kbuild um: use obj-y to descend into arch/um/*/ 2023-08-26 22:41:34 +02:00
Kconfig um: insert scheduler ticks when userspace does not yield 2024-10-23 09:52:49 +02:00
Kconfig.debug um: Disable CONFIG_GCOV with MODULES 2021-04-15 23:10:33 +02:00
Makefile um: use execveat to create userspace MMs 2024-10-10 13:37:16 +02:00
Makefile-os-Linux x86, um: get rid of arch/um/os symlink 2008-10-22 22:55:22 -07:00
Makefile-skas arch: um: Add Clang coverage support 2024-01-05 00:30:35 +01:00