Howard Chu @ Symas on Nostr: This old blog post about how #LMDB works on #Windows popped up in my google alerts ...
This old blog post about how #LMDB works on #Windows popped up in my google alerts today
https://ayende.com/blog/201313-B/reading-unfamiliar-codebases-quickly-lmdbIt references an even older conversation we had on the topic, back in 2013. Unfortunately it looks like Ayende missed my point in 2013, he focused on my mention of WriteFileGather when the salient point was you mustn't use NO_BUFFERING to write to a mapped file.
Doing so renders the pagecache invalid, and file mapping explicitly relies on the pagecache.
Published at
2025-05-31 10:11:15 UTCEvent JSON
{
"id": "e7a4b4133e581ee8b9daa2ed61ca8074fc2a8547ea94816dbd4f36112e6908de",
"pubkey": "5aeb250b3075a12bd05e16c8a3c40da91a553fa92164a39915a3a0615fe51864",
"created_at": 1748686275,
"kind": 1,
"tags": [
[
"t",
"lmdb"
],
[
"t",
"windows"
],
[
"proxy",
"https://mastodon.social/users/hyc/statuses/114601903757875991",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.mostr.pub"
]
],
"content": "This old blog post about how #LMDB works on #Windows popped up in my google alerts today https://ayende.com/blog/201313-B/reading-unfamiliar-codebases-quickly-lmdb\n\nIt references an even older conversation we had on the topic, back in 2013. Unfortunately it looks like Ayende missed my point in 2013, he focused on my mention of WriteFileGather when the salient point was you mustn't use NO_BUFFERING to write to a mapped file.\nDoing so renders the pagecache invalid, and file mapping explicitly relies on the pagecache.",
"sig": "4b2d1b4b47fd5e0c47dd8ef9083bb2bc7f541f3c8d7abc0848608c24efc404c1a9917f73a1477d2ef492e4f06e6cb23b1dfb667688e34125a3913bf85ab74526"
}