diff options
author | Xin Long <[email protected]> | 2019-04-15 17:15:07 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-04-15 13:36:51 -0700 |
commit | 9dde27de3e5efa0d032f3c891a0ca833a0d31911 (patch) | |
tree | baba7e7942d6e6a3162db024a2995f306d0afad4 /tools/perf/scripts/python/syscall-counts.py | |
parent | 1033990ac5b2ab6cee93734cb6d301aa3a35bcaa (diff) |
sctp: implement memory accounting on rx path
sk_forward_alloc's updating is also done on rx path, but to be consistent
we change to use sk_mem_charge() in sctp_skb_set_owner_r().
In sctp_eat_data(), it's not enough to check sctp_memory_pressure only,
which doesn't work for mem_cgroup_sockets_enabled, so we change to use
sk_under_memory_pressure().
When it's under memory pressure, sk_mem_reclaim() and sk_rmem_schedule()
should be called on both RENEGE or CHUNK DELIVERY path exit the memory
pressure status as soon as possible.
Note that sk_rmem_schedule() is using datalen to make things easy there.
Reported-by: Matteo Croce <[email protected]>
Tested-by: Matteo Croce <[email protected]>
Acked-by: Neil Horman <[email protected]>
Acked-by: Marcelo Ricardo Leitner <[email protected]>
Signed-off-by: Xin Long <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions