anolis-cloud-kernel/kernel
Cruz Zhao 98170019bf anolis: sched: don't account util_est for each cfs_rq when group_balancer disabled
ANBZ: #8765

If we account util_est for each cfs_rq when group_balancer disabled,
there will be some overhead. To avoid the overhead, we only account it
when group balancer enabled, and when the switch is turned, we
recalculate for each cfs_rq at once.

Signed-off-by: Cruz Zhao <CruzZhao@linux.alibaba.com>
Reviewed-by: Tianchen Ding <dtcccc@linux.alibaba.com>
Link: https://gitee.com/anolis/cloud-kernel/pulls/5529
2025-07-21 02:35:12 +00:00
..
bpf bpf: Don't EFAULT for {g,s}setsockopt with wrong optlen 2025-07-17 07:35:44 +00:00
cgroup cgroup/cpuset: Make cpuset_attach_task() skip subpartitions CPUs for top_cpuset 2024-12-23 09:19:56 +00:00
configs
debug kdb: Fix buffer overflow during tab-complete 2024-12-27 08:22:57 +00:00
dma anolis: phytium: pswiotlb: Add PSWIOTLB mechanism to improve DMA performance 2025-06-16 07:11:40 +00:00
entry anolis: preempt/dynamic: Delete code for dynamic preempt full 2024-06-14 08:53:34 +00:00
events uprobes: fix kernel info leak via "[uprobes]" vma 2025-02-07 16:31:44 +08:00
gcov gcov: re-fix clang-11+ support 2021-04-14 08:41:58 +02:00
irq genirq: Add IRQF_NO_AUTOEN for request_irq/nmi() 2024-12-26 04:23:39 +00:00
kcsan kcsan: Turn report_filterlist_lock into a raw_spinlock 2025-03-27 04:17:14 +00:00
livepatch livepatch,x86: Clear relocation targets on a module removal 2024-10-17 03:05:34 +00:00
locking rtmutex: Drop rt_mutex::wait_lock before scheduling 2025-01-09 09:29:43 +00:00
power PM: hibernate: disable when there are active secretmem users 2022-08-01 12:22:23 +00:00
printk anolis: sw64: improve sw64_rrk 2025-06-05 06:59:14 +00:00
rcu rcu-tasks: Fix show_rcu_tasks_trace_gp_kthread buffer overflow 2025-01-09 08:53:15 +00:00
sched anolis: sched: don't account util_est for each cfs_rq when group_balancer disabled 2025-07-21 02:35:12 +00:00
time hrtimers: Handle CPU state correctly on hotplug 2025-03-13 02:38:26 +00:00
trace tracing: Make sure trace_printk() can output as soon as it can be used 2025-03-31 15:12:44 +08:00
.gitignore kbuild: update config_data.gz only when the content of .config is changed 2021-05-11 14:47:37 +02:00
Kconfig.freezer
Kconfig.hz
Kconfig.locks
Kconfig.preempt anolis: preempt/dynamic: Delete code for dynamic preempt full 2024-06-14 08:53:34 +00:00
Makefile openEuler: watchdog: make hardlockup detect code public 2022-08-01 11:30:04 +00:00
acct.c kernel: acct.c: fix some kernel-doc nits 2020-10-16 11:11:19 -07:00
async.c Revert "module, async: async_synchronize_full() on module init iff async is used" 2022-02-23 12:01:00 +01:00
audit.c audit: Send netlink ACK before setting connection in auditd_set 2024-07-18 08:21:46 +00:00
audit.h anolis: kabi: Reserve some fields 2023-02-24 07:45:32 +00:00
audit_fsnotify.c audit: fix potential double free on error path from fsnotify_add_inode_mark 2024-07-18 08:21:46 +00:00
audit_tree.c audit: move put_tree() to avoid trim_trees refcount underflow and UAF 2021-09-03 10:09:31 +02:00
audit_watch.c audit: don't WARN_ON_ONCE(!current->mm) in audit_exe_compare() 2024-07-18 08:21:46 +00:00
auditfilter.c
auditsc.c audit: fix possible soft lockup in __audit_inode_child() 2024-07-18 08:21:46 +00:00
backtracetest.c
bounds.c mm: multi-gen LRU: minimal implementation 2023-08-15 15:26:52 +08:00
capability.c xfs: don't generate selinux audit messages for capability testing 2024-05-13 05:57:22 +00:00
compat.c sched_getaffinity: don't assume 'cpumask_size()' is fully initialized 2024-07-25 06:55:43 +00:00
configs.c
context_tracking.c
cpu.c hrtimers: Handle CPU state correctly on hotplug 2025-03-13 02:38:26 +00:00
cpu_pm.c PM: cpu: Make notifier chain use a raw_spinlock_t 2021-09-15 09:50:40 +02:00
crash_core.c kdump: return -ENOENT if required cmdline option does not exist 2022-08-02 16:38:51 +08:00
crash_dump.c
cred.c cred: switch to using atomic_long_t 2024-07-18 08:21:46 +00:00
delayacct.c
dma.c
exec_domain.c
exit.c anolis: mm: support pre oom 2024-05-20 08:53:02 +00:00
extable.c
fail_function.c kernel/fail_function: fix memory leak with using debugfs_lookup() 2024-08-06 12:34:21 +00:00
fork.c anolis: mm: async fork: Do not clean up async fork for CLONE_VM 2025-02-26 02:04:07 +00:00
freezer.c Revert "kernel: freezer should treat PF_IO_WORKER like PF_KTHREAD for freezing" 2021-04-07 15:00:14 +02:00
futex.c mm, futex: fix shared futex pgoff on shmem huge page 2021-06-30 08:47:29 -04:00
gen_kheaders.sh
groups.c LSM: Signal to SafeSetID when setting group IDs 2020-10-13 09:17:34 -07:00
hung_task.c ck: UKFEF: report hung-task event 2022-08-01 11:30:52 +00:00
iomem.c
irq_work.c
jump_label.c jump_label: Fix usage in module __init 2022-08-01 12:07:52 +00:00
kallsyms.c kallsyms: Add helper kallsyms_on_each_match_symbol() 2024-08-14 12:18:22 +00:00
kallsyms_internal.h kallsyms: Reduce the memory occupied by kallsyms_seqs_of_names[] 2024-08-14 12:18:22 +00:00
kcmp.c kcmp: In get_file_raw_ptr use task_lookup_fd_rcu 2024-08-30 01:14:57 +00:00
kcov.c
kexec.c LSM: Introduce kernel_post_load_data() hook 2020-10-05 13:37:03 +02:00
kexec_core.c ck: UKFEF: report kernel crash event 2022-08-01 11:30:54 +00:00
kexec_elf.c
kexec_file.c ima: force signature verification when CONFIG_KEXEC_SIG is configured 2022-07-21 21:20:11 +02:00
kexec_internal.h
kheaders.c
kmod.c
kprobes.c kprobes: Fix possible use-after-free issue on kprobe registration 2024-08-15 02:59:27 +00:00
ksysfs.c
kthread.c kthread: unpark only parked kthread 2025-03-26 02:58:20 +00:00
latencytop.c
module-internal.h anolis: module: introduce the sig_enforce_subsys param 2024-08-12 14:50:05 +08:00
module.c module: avoid allocation if module is already present and ready 2025-05-22 05:59:42 +00:00
module_signature.c module: harden ELF info handling 2021-03-25 09:04:11 +01:00
module_signing.c module: harden ELF info handling 2021-03-25 09:04:11 +01:00
notifier.c notifier: Fix broken error handling pattern 2020-09-01 09:58:03 +02:00
nsproxy.c
padata.c padata: avoid UAF for reorder_work 2025-03-28 02:52:18 +00:00
panic.c panic: Flush kernel log buffer at the end 2024-09-24 12:31:48 +00:00
params.c params: lift param_set_uint_minmax to common code 2024-12-16 08:39:13 +00:00
pid.c anolis: pidns: add pid_max per namespace 2023-02-27 03:49:34 +00:00
pid_namespace.c rcu-tasks: Fix synchronize_rcu_tasks() VS zap_pid_ns_processes() 2024-08-12 09:46:50 +00:00
profile.c profiling: fix shift too large makes kernel panic 2025-04-14 13:11:57 +08:00
ptrace.c rseq, ptrace: Add PTRACE_GET_RSEQ_CONFIGURATION request 2024-12-20 01:38:00 +00:00
range.c kernel.h: split out min()/max() et al. helpers 2020-10-16 11:11:19 -07:00
reboot.c reboot: fix overflow parsing reboot cpu number 2020-11-14 11:26:03 -08:00
regset.c
relay.c relayfs: fix out-of-bounds access in relay_file_read 2023-07-04 01:36:22 +00:00
resource.c kernel/resource: fix kfree() of bootmem memory again 2025-03-27 03:55:22 +00:00
rseq.c rseq: Remove broken uapi field layout on 32-bit little endian 2022-04-08 14:40:03 +02:00
scftorture.c scftorture: Fix distribution of short handler delays 2022-06-09 10:21:01 +02:00
scs.c
seccomp.c seccomp: Invalidate seccomp mode to catch death failures 2024-07-18 08:21:46 +00:00
signal.c kernel: rerun task_work while freezing in get_signal() 2024-08-20 01:53:53 +00:00
smp.c smp: Add missing destroy_work_on_stack() call in smp_call_on_cpu() 2024-09-19 02:21:25 +00:00
smpboot.c anolis: sched: introduce sysctl_sched_acpu_enabled 2023-10-08 09:54:40 +00:00
smpboot.h
softirq.c Revert "softirq: Let ksoftirqd do its job" 2024-12-17 08:40:53 +00:00
stackleak.c gcc-plugins/stackleak: Use noinstr in favor of notrace 2022-02-23 12:01:00 +01:00
stacktrace.c stacktrace: Remove reliable argument from arch_stack_walk() callback 2020-09-18 14:24:16 +01:00
static_call.c static_call: Replace pointless WARN_ON() in static_call_module_notify() 2025-03-28 01:35:46 +00:00
stop_machine.c stop_machine: Add stop_core_cpuslocked() for per-core operations 2022-08-02 16:41:57 +08:00
sys.c anolis: sched: Introduce per task identity 2024-12-17 02:38:11 +00:00
sys_ni.c cachestat: implement cachestat syscall 2023-08-18 10:51:46 +08:00
sysctl-test.c
sysctl.c anolis: sched: introduce ID_BOOK_CPU 2025-06-25 16:29:07 +08:00
task_work.c task_work: add helper for more targeted task_work canceling 2023-09-20 01:19:09 +00:00
taskstats.c taskstats: move specifying netlink policy back to ops 2020-10-02 19:11:12 -07:00
test_kprobes.c
torture.c
tracepoint.c tracepoint: Use rcu get state and cond sync for static call updates 2021-09-03 10:09:30 +02:00
tsacct.c taskstats: Cleanup the use of task->exit_code 2022-01-27 10:54:33 +01:00
ucount.c Revert "Add a reference to ucounts for each cred" 2021-09-08 08:49:00 +02:00
uid16.c
uid16.h
umh.c usermodehelper: reset umask to default before executing user process 2020-10-06 10:31:52 -07:00
up.c smp: Fix smp_call_function_single_async prototype 2021-05-14 09:50:46 +02:00
user-return-notifier.c
user.c
user_namespace.c anolis: userns: add a sysctl to control the max depth 2022-08-02 16:40:18 +08:00
usermode_driver.c bpf: Fix umd memory leak in copy_process() 2021-03-30 14:32:03 +02:00
utsname.c
utsname_sysctl.c
watch_queue.c watch-queue: remove spurious double semicolon 2022-07-29 17:19:29 +02:00
watchdog.c watchdog/softlockup: Report the most frequent interrupts 2024-05-18 00:30:34 +00:00
watchdog_hld.c watchdog/perf: more properly prevent false positives with turbo modes 2024-08-19 02:14:32 +00:00
workqueue.c workqueue: Tag bound workers with KTHREAD_IS_PER_CPU 2025-03-26 02:58:20 +00:00
workqueue_internal.h anolis: kabi: Reserve some fields 2023-02-24 07:45:32 +00:00