All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] mm/memcg: Address PREEMPT_RT problems instead of disabling it.
@ 2022-02-11 22:35 ` Sebastian Andrzej Siewior
  0 siblings, 0 replies; 32+ messages in thread
From: Sebastian Andrzej Siewior @ 2022-02-11 22:35 UTC (permalink / raw)
  To: cgroups, linux-mm
  Cc: Andrew Morton, Johannes Weiner, Michal Hocko, Michal Koutný,
	Peter Zijlstra, Thomas Gleixner, Vladimir Davydov, Waiman Long

Hi,

this series aims to address the memcg related problem on PREEMPT_RT.

I tested them on CONFIG_PREEMPT and CONFIG_PREEMPT_RT with the
tools/testing/selftests/cgroup/* tests and I haven't observed any
regressions (other than the lockdep report that is already there).

Changes since v1:
- Made a full patch from Michal Hocko's diff to disable the from-IRQ vs
  from-task optimisation

- Disabling threshold event handlers is using now IS_ENABLED(PREEMPT_RT)
  instead of #ifdef. The outcome is the same but there is no need to
  shuffle the code around.

v1: https://lore.kernel.org/all/20220125164337.2071854-1-bigeasy@linutronix.de/

Changes since the RFC:
- cgroup.event_control / memory.soft_limit_in_bytes is disabled on
  PREEMPT_RT. It is a deprecated v1 feature. Fixing the signal path is
  not worth it.

- The updates to per-CPU counters are usually synchronised by disabling
  interrupts. There are a few spots where assumption about disabled
  interrupts are not true on PREEMPT_RT and therefore preemption is
  disabled. This is okay since the counter are never written from
  in_irq() context.

RFC: https://lore.kernel.org/all/20211222114111.2206248-1-bigeasy@linutronix.de/

Sebastian




^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2022-02-17  9:29 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-11 22:35 [PATCH v2 0/4] mm/memcg: Address PREEMPT_RT problems instead of disabling it Sebastian Andrzej Siewior
2022-02-11 22:35 ` Sebastian Andrzej Siewior
2022-02-11 22:35 ` [PATCH v2 1/4] mm/memcg: Revert ("mm/memcg: optimize user context object stock access") Sebastian Andrzej Siewior
2022-02-11 22:35   ` Sebastian Andrzej Siewior
2022-02-14 16:23   ` Johannes Weiner
2022-02-14 16:23     ` Johannes Weiner
2022-02-14 19:45   ` Roman Gushchin
2022-02-14 19:45     ` Roman Gushchin
2022-02-11 22:35 ` [PATCH v2 2/4] mm/memcg: Disable threshold event handlers on PREEMPT_RT Sebastian Andrzej Siewior
2022-02-11 22:35   ` Sebastian Andrzej Siewior
2022-02-14 16:23   ` Johannes Weiner
2022-02-14 16:23     ` Johannes Weiner
2022-02-14 19:46   ` Roman Gushchin
2022-02-14 19:46     ` Roman Gushchin
2022-02-11 22:35 ` [PATCH v2 3/4] mm/memcg: Protect per-CPU counter by disabling preemption on PREEMPT_RT where needed Sebastian Andrzej Siewior
2022-02-11 22:35   ` Sebastian Andrzej Siewior
2022-02-14 16:46   ` Johannes Weiner
2022-02-14 16:46     ` Johannes Weiner
2022-02-14 19:53     ` Roman Gushchin
2022-02-14 19:53       ` Roman Gushchin
2022-02-15 18:01     ` Sebastian Andrzej Siewior
2022-02-15 18:01       ` Sebastian Andrzej Siewior
2022-02-11 22:35 ` [PATCH v2 4/4] mm/memcg: Protect memcg_stock with a local_lock_t Sebastian Andrzej Siewior
2022-02-11 22:35   ` Sebastian Andrzej Siewior
2022-02-14 16:23   ` Johannes Weiner
2022-02-14 16:23     ` Johannes Weiner
2022-02-16 15:51     ` Sebastian Andrzej Siewior
2022-02-16 15:51       ` Sebastian Andrzej Siewior
2022-02-16 18:08       ` Johannes Weiner
2022-02-16 18:08         ` Johannes Weiner
2022-02-17  9:28         ` Sebastian Andrzej Siewior
2022-02-17  9:28           ` Sebastian Andrzej Siewior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.