Re:Dragonflydb – A modern replacement for Redis and Memcached
by amluto on Monday May 30, 2022 @10:00PM
(#31565445)
I'm curious: since you're targeting Graviton, and AFAICT Graviton 2 and up support ARM LSE, have you tried directly using LSE for metrics? ARM LSE offers STADD to add to a 64-bit memory location without reading the contents or ordering the access. (I think LDADD with XZR as the destination is identical, but I could be missing some subtlety. I'm not an ARM expert.) You might be able to get good performance by using a global counter and just STADDing to it. x86 will perform terribly if you use XADD because it has no corresponding optimized forms.
[ Parent
| on HN ]
Re:Dragonflydb – A modern replacement for Redis and Memcached
by romange on Tuesday May 31, 2022 @12:47AM
(#31566201)
Wow, its beyond my knowledge:)
I use my software skills to write a performant software but rarely i go to the assembly level. And i have zero knowledge about specifics if each command on every architecture. The rare exception is a code in dashtable. the authors of the paper designed it to allow vectorizing of the find() operation.