On 01/06/2020 23:42, Andrew Doran wrote:
Hi, I made some tweaks to the aarch64 pmap based on lessons learned in the x86 pmap recently. They reduce memory consumption and speed up things like fork/exec/exit/UBC a little: http://www.netbsd.org/~ad/2020/aarch64.diff Approximate times for kernel build on RK3399 with all 6 cores running at 600MHz: before 1354.07s real 6092.55s user 1591.35s system after 1307.90s real 6026.60s user 1432.83s system
Good job. From a first pass I'm curious why you don't use the low 12 bits of pv_va for flags and avoid the "interesting" mutex hack? From memory the pp_flags in ryo's pmap can be removed fairly easily as well if required. Thanks, Nick