@jedisct1 How much speedup did you get in recent libsodium due to MAP_POPULATE, presumably for Argon2 & scrypt when memory (de)allocation happens each time? I've just tried it for yescrypt on RHEL6 & 7, getting ~+3% on average (but more stable speeds), up to ~+10% for some sizes.
-
-
Replying to @solardiz
~5% with the default libsodium parameters on bare metal Arch/x86_64. Haven’t tried in a VM.
1 reply 0 retweets 1 like -
Replying to @jedisct1
Thanks. My tests were also on bare metal. Now I wish we had an equivalent flag for use along with shmget() IPC_CREAT, and ideally also a flag (or more?) to spread the allocation evenly across all NUMA nodes vs. keep it local to the current NUMA node (vs. indicate no preference?)
1 reply 0 retweets 0 likes -
Just found out that MAP_POPULATE results in a 7% regression for yescrypt at 2 MiB in multi-threaded benchmarks on RHEL6 when the memory allocation would be reused anyway - thus, where MAP_POPULATE was expected to neither help nor hurt. Now think how to skip it when it's unneeded.
2 replies 0 retweets 0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.