[PATCH v2 0/4] sock: Improve condition on sockmem pressure

Abel Wu posted 4 patches 2 years, 8 months ago
There is a newer version of this series
include/net/sock.h | 11 +++++++----
net/core/sock.c    | 32 +++++++++++++++++++++++---------
2 files changed, 30 insertions(+), 13 deletions(-)
[PATCH v2 0/4] sock: Improve condition on sockmem pressure
Posted by Abel Wu 2 years, 8 months ago
Currently the memcg's status is also accounted into the socket's
memory pressure to alleviate the memcg's memstall. But there are
still cases that can be improved. Please check the patches for
detailed info.

v2:
  - Splited into several patches and modified commit log for
    better readability.
  - Make memcg's pressure consideration function-wide in
    __sk_mem_raise_allocated().

v1: https://lore.kernel.org/netdev/20230506085903.96133-1-wuyun.abel@bytedance.com/

Abel Wu (4):
  sock: Always take memcg pressure into consideration
  sock: Fix misuse of sk_under_memory_pressure()
  sock: Consider memcg pressure when raising sockmem
  sock: Remove redundant cond of memcg pressure

 include/net/sock.h | 11 +++++++----
 net/core/sock.c    | 32 +++++++++++++++++++++++---------
 2 files changed, 30 insertions(+), 13 deletions(-)

-- 
2.37.3