# Re: \[PATCH V2 04/68\] powerpc/mm: Use big endian page table for book3s 64

- From: Anton Blanchard \<hidden\>
- Date: 2016-05-30 05:31:29 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2016/05/9490140
- Thread: https://ratatoskr.run/linuxppc-dev/2016/04/9489240/t/2.md

```text
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;
}
```
