diff options
author | Xiaolong Ye <xiaolong.ye@intel.com> | 2016-02-04 10:49:12 +0800 |
---|---|---|
committer | Fengguang Wu <fengguang.wu@intel.com> | 2016-02-04 10:49:12 +0800 |
commit | b143340d6d812ab591c8a3c1669cd8f64bc69537 (patch) | |
tree | 7880f1430484a915e541f31b9a5e5cfc66c61591 | |
parent | a5006817a51a093ba88c44449215c51b461c852d (diff) | |
download | vm-scalability-b143340d6d812ab591c8a3c1669cd8f64bc69537.tar.gz |
usemem_remap.c: remap the whole mmap pages
Signed-off-by: Xiaolong Ye <xiaolong.ye@intel.com>
-rw-r--r-- | usemem_remap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usemem_remap.c b/usemem_remap.c index 1f900fd..1dfe087 100644 --- a/usemem_remap.c +++ b/usemem_remap.c @@ -52,7 +52,7 @@ int main (int argc, char *argv[]) end = (unsigned char *) (start + (no_of_pages - 1) * pagesize); /* make mapping non-contiguous (reverse the page mapping order) */ - for (i = 0; i < no_of_pages / 2; i++) { + for (i = 0; i < no_of_pages; i++) { if (remap_file_pages(end - (i * pagesize), pagesize, 0, i, MAP_SHARED|MAP_POPULATE) == -1) { fprintf(stderr, "remap failed with error %s\n", strerror(errno)); |