summaryrefslogtreecommitdiff
path: root/tools/firewire
diff options
context:
space:
mode:
authorZhansaya Bagdauletkyzy <zhansayabagdaulet@gmail.com>2021-09-03 01:00:54 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2021-09-03 19:58:18 +0300
commit9e7cb94ca218816bfd51e07b50bcfeadd3166d42 (patch)
treeb6b32c9d6de19d7f3fff218aa6834dad47cfbbd1 /tools/firewire
parent584ff0dfb09a81e1addf02543f7c1fa8e71ce6d2 (diff)
downloadlinux-9e7cb94ca218816bfd51e07b50bcfeadd3166d42.tar.xz
selftests: vm: add KSM merging time test
Patch series "add KSM performance tests", v3. Extend KSM self tests with a performance benchmark. These tests are not part of regular regression testing, as they are mainly intended to be used by developers making changes to the memory management subsystem. This patch (of 2): Add ksm_merge_time() function to determine speed and time needed for merging. The total spent time is shown in seconds while speed is in MiB/s. User must specify the size of duplicated memory area (in MiB) before running the test. The test is run as follows: ./ksm_tests -P -s 100 The output: Total size: 100 MiB Total time: 0.201106786 s Average speed: 497.248 MiB/s Link: https://lkml.kernel.org/r/cover.1629386192.git.zhansayabagdaulet@gmail.com Link: https://lkml.kernel.org/r/318b946ac80cc9205c89d0962048378f7ce0705b.1629386192.git.zhansayabagdaulet@gmail.com Signed-off-by: Zhansaya Bagdauletkyzy <zhansayabagdaulet@gmail.com> Reviewed-by: Tyler Hicks <tyhicks@linux.microsoft.com> Reviewed-by: Pavel Tatashin <pasha.tatashin@soleen.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/firewire')
0 files changed, 0 insertions, 0 deletions