diff options
author | Jian Wen <[email protected]> | 2023-07-11 11:24:05 +0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-07-12 14:47:31 -0700 |
commit | 9f4a7c930284bf2b5b84d3636a8e88857149328f (patch) | |
tree | f57056fb61c4bec3ed731a3b8654e26adfabb34e /drivers/fpga/fpga-mgr.c | |
parent | e0f0a5db5f8c413cbbf48607f711c2a21023ee66 (diff) |
tcp: add a scheduling point in established_get_first()
Kubernetes[1] is going to stick with /proc/net/tcp for a while.
This commit reduces the scheduling latency introduced by
established_get_first(), similar to commit acffb584cda7 ("net: diag:
add a scheduling point in inet_diag_dump_icsk()").
In our environment, the scheduling latency affects the performance of
latency-sensitive services like Redis.
Changes in V2 :
- call cond_resched() before checking if a bucket is empty as
suggested by Eric Dumazet
- removed the delay of synchronize_net() from the commit message
[1] https://github.com/google/cadvisor/blob/v0.47.2/container/libcontainer/handler.go#L130
Signed-off-by: Jian Wen <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions