diff options
| author | Yuezhang Mo <Yuezhang.Mo@sony.com> | 2025-02-12 09:18:12 +0300 | 
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2025-03-27 15:18:02 +0300 | 
| commit | a36e0ab44cb344728f7c0fdc34edcbae64739c16 (patch) | |
| tree | 475d7f98754d91aca78c2dee40676ebae4533bcd /tools/perf/scripts/python/intel-pt-events.py | |
| parent | 1a9239bb4253f9076b5b4b2a1a4e8d7defd77a95 (diff) | |
| download | linux-a36e0ab44cb344728f7c0fdc34edcbae64739c16.tar.xz | |
exfat: support batch discard of clusters when freeing clusters
If the discard mount option is enabled, the file's clusters are
discarded when the clusters are freed. Discarding clusters one by
one will significantly reduce performance. Poor performance may
cause soft lockup when lots of clusters are freed.
This commit improves performance by discarding contiguous clusters
in batches.
Measure the performance by:
  # truncate -s 80G /mnt/file
  # time rm /mnt/file
Without this commit:
  real    4m46.183s
  user    0m0.000s
  sys     0m12.863s
With this commit:
  real    0m1.661s
  user    0m0.000s
  sys     0m0.017s
Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions
