public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH v2 0/4] controllers/memcg: fixes for CPU nodes on newer kernels
@ 2021-08-12  8:02 Krzysztof Kozlowski
  2021-08-12  8:02 ` [LTP] [PATCH v2 1/4] controllers/memcg: account per-node kernel memory Krzysztof Kozlowski
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Krzysztof Kozlowski @ 2021-08-12  8:02 UTC (permalink / raw)
  To: ltp

Hi,

Changes since v1
================
1. Address Richard's review by echoing the new node-adjusted limit and
   counting nodes in easier way.

Description
===========
Rebased on top of latest master - no other dependencies.

The problem is that since v5.9 kernel, not only per-CPU but also
per-node kernel memory is accounted to group.  Creating a subgroup on
v5.11 kernel on a two-node machine eats ~440 kB by itself in kernel
memory.

The patchset tries to take it into account and adjust the memory limits.
Have in mind however that kernel might change such accounting in the
future.

Best regards,
Krzysztof

Krzysztof Kozlowski (4):
  controllers/memcg: account per-node kernel memory
  controllers/memcg: fix memcg_stat_test on two node machines
  controllers/memcg: fail early to avoid possible false-positives
  controllers/memcg: check status of commands using interface

 .../memcg/functional/memcg_failcnt.sh         |  4 +-
 .../controllers/memcg/functional/memcg_lib.sh | 37 +++++++++++++++++-
 .../memcg_max_usage_in_bytes_test.sh          | 10 ++---
 .../memcg_memsw_limit_in_bytes_test.sh        |  8 ++--
 .../memcg_move_charge_at_immigrate_test.sh    |  4 +-
 .../memcg/functional/memcg_stat_test.sh       | 38 ++++++++++---------
 .../memcg/functional/memcg_subgroup_charge.sh | 14 +++----
 .../functional/memcg_usage_in_bytes_test.sh   |  4 +-
 .../functional/memcg_use_hierarchy_test.sh    | 14 ++++---
 9 files changed, 84 insertions(+), 49 deletions(-)

-- 
2.30.2


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

end of thread, other threads:[~2021-08-12 11:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-12  8:02 [LTP] [PATCH v2 0/4] controllers/memcg: fixes for CPU nodes on newer kernels Krzysztof Kozlowski
2021-08-12  8:02 ` [LTP] [PATCH v2 1/4] controllers/memcg: account per-node kernel memory Krzysztof Kozlowski
2021-08-12  9:50   ` Richard Palethorpe
2021-08-12  8:02 ` [LTP] [PATCH v2 2/4] controllers/memcg: fix memcg_stat_test on two node machines Krzysztof Kozlowski
2021-08-12  9:50   ` Richard Palethorpe
2021-08-12  8:02 ` [LTP] [PATCH v2 3/4] controllers/memcg: fail early to avoid possible false-positives Krzysztof Kozlowski
2021-08-12  9:51   ` Richard Palethorpe
2021-08-12  8:02 ` [LTP] [PATCH v2 4/4] controllers/memcg: check status of commands using interface Krzysztof Kozlowski
2021-08-12  9:51   ` Richard Palethorpe
2021-08-12 11:32 ` [LTP] [PATCH v2 0/4] controllers/memcg: fixes for CPU nodes on newer kernels Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox