Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TLB flush tests #10

Merged
merged 3 commits into from
Feb 19, 2019
Merged

TLB flush tests #10

merged 3 commits into from
Feb 19, 2019

Conversation

amitay
Copy link

@amitay amitay commented Feb 19, 2019

This is rework of pull #6.

  1. Fix the tempfile path in tlb_flush1.c
  2. Add test tlb_flush3.c for shared mapping.

Kemi Wang and others added 3 commits February 19, 2019 15:20
This test case is designed to measure the performance of tlb flush. Each
thread/process maps a separated private file mapping to memory, and
writes to a page before initiating a tlb flush by madvise(MADV_DONTNEED),
subsequent access of this page will result in on-demand zero page.

Additionally, it is also a tlb flush sensitive workload to verify the
behavior of tlb hardware, the assertion fails immediately once tlb flush
failure. We have double checked it by hacking Linux kernel to skip tlb
flush manually.

Suggested-by: Dave Hansen <dave.hansen@intel.com>
Signed-off-by: Kemi Wang <kemi.wang@intel.com>
This test case is designed to measure the performance of tlb flush. Each
thread/process has an anonymous private mappings, and writes to a page
before initiationg a tlb flush by madvise(MADV_DONTNEED), subsequent access
of this page will result in zero-fill-on-demand pages for anonymous private
mapping.

Suggested-by: Dave Hansen <dave.hansen@intel.com>
Signed-off-by: Kemi Wang <kemi.wang@intel.com>
This test case is designed to measure the performance of tlb flush. Each
thread/process maps a separated shared file mapping to memory, and writes
to a page before initiating a tlb flush by madvise(MADV_DONTNEED),
subsequent access of this page will result in repopulating the memory
contents of the up-to-date version of the underlying file.

Based on the tlb_flush1 test by Kemi Wang.

Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
@antonblanchard
Copy link
Owner

Thanks @amitay and @kemicoco!

@antonblanchard antonblanchard merged commit 7661e26 into antonblanchard:master Feb 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants