[PATCH V2 04/68] powerpc/mm: Use big endian page table for book3s 64
Anton Blanchard
anton at samba.org
Mon May 30 15:31:06 AEST 2016
Hi,
> I see the same issue in unmap_page_range(), __hash_page_64K(),
> handle_mm_fault().
This looks to be about 10% slower on POWER8:
#include <stdlib.h>
#include <sys/mman.h>
#include <assert.h>
#define ITERATIONS 10000000
#define MEMSIZE (128 * 1024 * 1024)
int main(void)
{
unsigned long i = ITERATIONS;
while (i--) {
char *c = mmap(NULL, MEMSIZE, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
assert(c != MAP_FAILED);
munmap(c, MEMSIZE);
}
return 0;
}
More information about the Linuxppc-dev
mailing list