--
You received this message because you are subscribed to the Google Groups "pmem" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pmem+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pmem/405ca2a6-5fb6-4df6-ac7c-78fc5c1bc27cn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pmem/CAGbKfROuLUVfRdvnxh83_qFjoA32au7Mpw%2BMffFUnqGbT0x3eQ%40mail.gmail.com.
We found that shifting from 2MB pages to 4KB pages can have surprisingly high impact on performance, depending upon the data access locality and size of the workload.
https://par.nsf.gov/servlets/purl/10193037
In fact, we’ve been looking at the impact of 1GB pages; preliminary results are encouraging, even given the paucity of 1GB TLB entries, because the page table walk cost for a 1GB TLB miss is quite a bit lower than the cost of walking for a 2MB page. Another way to look at it is that if you use 4KB pages, you can have less than 2,000 4KB TLB entries. If your working set is 1TB, with a uniform random access workload, your odds of finding the relevant 4KB TLB entry present is very close to zero, which mean you have to do a full page table walk. Since the cache isn’t big enough to keep a four level deep page table resident, you are paying the cost of full DRAM access. Typical cost hits are higher than the slower cost of accessing PMEM.
Small page sizes make sense when a miss can involve I/O. PMEM eliminates the I/O consideration, which suggests that there’s no benefit to using small pages for large workloads.
Tony Mason
To view this discussion on the web visit https://groups.google.com/d/msgid/pmem/7f35bade-a2e1-4d92-93c5-585c2b76f274n%40googlegroups.com.