Abel Wu
0f50641222
net-memcg: Fix scope of sockmem pressure indicators
...
[ Upstream commit ac8a529621 ]
Now there are two indicators of socket memory pressure sit inside
struct mem_cgroup, socket_pressure and tcpmem_pressure, indicating
memory reclaim pressure in memcg->memory and ->tcpmem respectively.
When in legacy mode (cgroupv1), the socket memory is charged into
->tcpmem which is independent of ->memory, so socket_pressure has
nothing to do with socket's pressure at all. Things could be worse
by taking socket_pressure into consideration in legacy mode, as a
pressure in ->memory can lead to premature reclamation/throttling
in socket.
While for the default mode (cgroupv2), the socket memory is charged
into ->memory, and ->tcpmem/->tcpmem_pressure are simply not used.
So {socket,tcpmem}_pressure are only used in default/legacy mode
respectively for indicating socket memory pressure. This patch fixes
the pieces of code that make mixed use of both.
Fixes: 8e8ae64524 ("mm: memcontrol: hook up vmpressure to socket pressure")
Signed-off-by: Abel Wu <wuyun.abel@bytedance.com >
Acked-by: Shakeel Butt <shakeelb@google.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2023-09-13 09:42:33 +02:00
..
2023-07-19 16:22:11 +02:00
2023-07-23 13:49:32 +02:00
2023-04-13 16:55:30 +02:00
2023-04-26 14:28:41 +02:00
2023-04-26 14:28:39 +02:00
2022-08-02 12:34:03 -04:00
2022-08-28 14:02:45 -07:00
2022-09-11 20:25:50 -07:00
2021-05-05 11:27:24 -07:00
2022-05-13 15:11:26 -07:00
2022-03-22 15:57:09 -07:00
2023-02-01 08:34:49 +01:00
2017-11-02 11:10:55 +01:00
2022-06-27 12:52:53 -07:00
2022-09-26 19:46:26 -07:00
2022-01-15 16:30:28 +02:00
2022-03-22 15:57:11 -07:00
2022-04-26 13:36:25 -07:00
2022-11-22 18:50:44 -08:00
2023-02-22 12:59:49 +01:00
2022-10-03 14:02:53 -07:00
2022-09-26 12:14:34 -07:00
2022-07-17 17:14:27 -07:00
2021-05-05 11:27:26 -07:00
2023-07-01 13:16:25 +02:00
2022-10-12 18:51:51 -07:00
2022-09-26 19:46:05 -07:00
2023-04-26 14:28:41 +02:00
2022-09-11 20:25:53 -07:00
2022-11-08 15:57:23 -08:00
2022-08-08 18:06:43 -07:00
2023-08-23 17:52:41 +02:00
2022-10-03 14:03:05 -07:00
2022-09-26 19:46:16 -07:00
2022-10-03 14:03:30 -07:00
2021-04-30 11:20:38 -07:00
2021-04-30 11:20:39 -07:00
2022-06-27 12:22:31 +01:00
2023-07-01 13:16:24 +02:00
2023-06-14 11:15:29 +02:00
2023-04-26 14:28:41 +02:00
2022-10-28 13:37:22 -07:00
2023-03-30 12:49:29 +02:00
2022-06-16 19:48:31 -07:00
2023-06-28 11:12:17 +02:00
2023-08-30 16:11:11 +02:00
2022-10-03 14:03:36 -07:00
2022-01-15 16:30:27 +02:00
2023-02-22 12:59:50 +01:00
2023-08-11 12:08:23 +02:00
2023-06-28 11:12:27 +02:00
2022-10-03 14:03:04 -07:00
2023-08-30 16:11:06 +02:00
2023-03-10 09:34:27 +01:00
2023-07-19 16:21:16 +02:00
2023-05-11 23:03:41 +09:00
2022-06-16 19:48:30 -07:00
2022-11-08 15:57:23 -08:00
2017-11-02 11:10:55 +01:00
2022-11-22 18:50:43 -08:00
2023-02-22 12:59:49 +01:00
2023-03-22 13:34:03 +01:00
2022-09-26 19:46:27 -07:00
2022-09-26 19:46:09 -07:00
2022-10-03 14:02:43 -07:00
2021-07-23 17:43:28 -07:00
2023-07-19 16:22:16 +02:00
2022-11-30 14:49:42 -08:00
2022-04-21 20:01:10 -07:00
2022-09-26 19:46:09 -07:00
2022-10-12 15:56:46 -07:00
2023-02-09 11:28:22 +01:00
2022-09-26 19:46:25 -07:00
2023-07-05 18:27:37 +01:00
2022-09-26 19:46:29 -07:00
2023-04-26 14:28:44 +02:00
2022-09-11 20:26:01 -07:00
2022-11-22 18:50:41 -08:00
2022-05-19 14:08:54 -07:00
2023-02-09 11:28:04 +01:00
2022-10-28 13:37:22 -07:00
2022-10-03 14:03:03 -07:00
2021-04-30 11:20:36 -07:00
2021-06-29 10:53:47 -07:00
2021-06-29 10:53:47 -07:00
2023-06-14 11:15:29 +02:00
2022-09-26 19:46:05 -07:00
2022-09-26 12:28:07 +02:00
2022-10-10 17:53:04 -07:00
2022-05-13 07:20:18 -07:00
2021-07-04 18:30:17 +00:00
2022-03-08 09:30:46 -05:00
2021-07-04 18:30:17 +00:00
2022-07-17 17:14:47 -07:00
2021-05-07 00:26:35 -07:00
2022-05-13 07:20:05 -07:00
2023-02-09 11:28:04 +01:00
2022-09-03 10:13:13 -07:00
2022-09-20 08:24:38 -06:00
2023-03-10 09:34:25 +01:00
2022-10-03 14:03:05 -07:00
2022-10-03 14:03:36 -07:00
2023-09-13 09:42:27 +02:00
2023-02-22 12:59:46 +01:00
2022-10-03 14:03:07 -07:00
2021-05-22 15:09:07 -10:00
2022-11-07 17:11:27 +01:00
2023-03-30 12:49:23 +02:00
2022-10-10 17:53:04 -07:00
2022-09-29 11:30:55 +02:00
2022-10-11 17:42:55 -06:00
2022-08-08 18:06:42 -07:00
2022-07-03 18:08:49 -07:00
2022-10-03 14:03:36 -07:00
2022-10-03 14:02:46 -07:00
2022-10-03 14:02:51 -07:00
2022-10-03 14:02:45 -07:00
2022-10-03 14:02:51 -07:00
2023-04-13 16:55:36 +02:00
2022-10-03 14:02:45 -07:00
2023-06-28 11:12:17 +02:00
2022-11-08 15:57:23 -08:00
2022-10-10 17:53:04 -07:00
2023-08-30 16:11:06 +02:00
2023-09-13 09:42:33 +02:00
2023-05-11 23:03:39 +09:00
2022-10-10 17:53:04 -07:00
2022-09-26 19:46:09 -07:00
2022-08-02 12:34:03 -04:00
2021-07-01 11:06:03 -07:00
2022-01-15 16:30:31 +02:00
2023-08-23 17:52:40 +02:00
2023-06-21 16:00:54 +02:00