Re: notes from running will-it-scale

2020-07-19 Thread Mateusz Guzik
There is: Built-in Function: void * __builtin_assume_aligned (const void *exp, size_t align, ...) but I don't know how it is working out in practice. Note both direct map arg and the address should be aligned. However, an argument for dedicated routines is that on CPUs with ERMS it is faster to

Re: notes from running will-it-scale

2020-07-19 Thread Jaromír Doleček
Very interesting, particularly the outrageous assembly for pmap_{zero,copy}_page(). Is there some way to tell the compiler that the address is already 4096-aligned and avoid the conditionals? Failing that, we could just adopt the FreeBSD assembly for this. Does anyone see a problem with introduci

notes from running will-it-scale

2020-07-19 Thread Mateusz Guzik
Hello, I recently took an opportunity to run cross-systems microbenchmarks with will-it-scale and included NetBSD (amd64). https://people.freebsd.org/~mjg/freebsd-dragonflybsd-netbsd-v2.txt [no linux in this doc, I will probably create a new one soon(tm)] The system has a lot of problems in the