summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/parallel-perf.py
diff options
context:
space:
mode:
authorLi Lingfeng <lilingfeng3@huawei.com>2024-12-27 16:33:53 +0800
committerChuck Lever <chuck.lever@oracle.com>2025-03-10 09:10:53 -0400
commitfc2a169c56de0860ea7599ea6f67ad5fc451bde1 (patch)
treece09624664788beadb2c71a3da3e41633f6e0d7d /tools/perf/scripts/python/parallel-perf.py
parent80e54e84911a923c40d7bee33a34c1b4be148d7a (diff)
sunrpc: clean cache_detail immediately when flush is written frequently
We will write /proc/net/rpc/xxx/flush if we want to clean cache_detail. This updates nextcheck to the current time and calls cache_flush --> cache_clean to clean cache_detail. If we write this interface again within one second, it will only increase flush_time and nextcheck without actually cleaning cache_detail. Therefore, if we keep writing this interface repeatedly within one second, flush_time and nextcheck will keep increasing, even far exceeding the current time, making it impossible to clear cache_detail through the flush interface or cache_cleaner. If someone frequently calls the flush interface, we should immediately clean the corresponding cache_detail instead of continuously accumulating nextcheck. Signed-off-by: Li Lingfeng <lilingfeng3@huawei.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions