3 ms·
Write barriers have been discussed for years and years. Personally I prefer grouped writes. https://www.spinics.net/lists/linux-fsdevel/msg70047.html https://ww
by hyc_symas 4y ago
Write barriers have been discussed for years and years. Personally I prefer grouped writes. https://www.spinics.net/lists/linux-fsdevel/msg70047.html https://www.spinics.net/lists/linux-fsdevel/msg70047.html
The underlying SCSI and SATA protocols would support this with command queueing. I would have envisioned using an fcntl() to set the current group ID on an fd.
- josephg 4y agoGrouped writes seem more or less equivalent to write barriers in terms of their semantics, but probably with 1 less syscall - which is nice. But I'd take any of these approaches over years of discussion & no solutions. I wonder what it would take to actually implement this stuff in linux. A lot of work, sure - but far from impossible. Thanks for lmdb btw! The design is lovely. I've used it in a couple projects, and I had a read through your code for inspiration while I was designing out a little storage engine for something I've been working on. Its delightful.
- hyc_symas 4y ago> Thanks for lmdb btw! Thanks, that's great feedback! Happy to hear that you're both using it successfully and that you actually read the code and learned from it.