I was doing some research on how databases prevents dataloss from writing to page cache using mmap. I don't understand how the memory mapped not lost upon crashing. Could anyone tell me how it really works?
Related questions
Related questions
- The Overflow Blog
-
-
- Featured on Meta
-
-
-
Linked
Hot Network Questions
- Adding expert knowledge to bayesian inference
- PSE Advent Calendar 2025 (Day 4): Ring Bethlehem, the day begun!
- Did an Iranian organization use millions of dollars to promote Shia (branch of Islam) in Japan and only a single person converted?
- What international legal mechanisms are in place to stop a country from outright expropriating foreign assets?
- Crontab for nth Monday of month weirdness at Dec 1 2025
- is it possible to keep the space when using url in latex
- Why is the French Confiance-class patrol vessel equipped with so pitiful a main armament?
- Does unequipping gear make me stealthier?
- What do WTS, WTB, H, radshare, etc mean?
- WS2812 with ESP32 (mosfet used Si2302CDS) not working as expected
- When should I use tied notes vs. the whole note duration?
- Strategies to overcome frustration when research becomes a bunch of soul-crushing debugging
- Sign of a Gaussian expectation
- Is non-gavage fois gras available in France?
- Who is Patrick and why is he referred to at anti-AfD demonstrations?
- What are the louvered openings in my walls between rooms and Is it okay to close them?
- Schottky OR-ing diodes passing reverse voltage; is it a faulty diode?
- The defined date command doesn't work before \today when invoking babel
- PSE Advent Calendar 2025 (Day 3): A gift from my travel agent
- Cambridge to Utrecht with less carbon than flying
- Is Brian Ripley’s Pattern Recognition and NN book still an insightful read?
- NFSv4: What's the point of the refer and replicas export options?
- The fourth moment of the Riemann zeta function without absolute values
- What insect lays these relatively large flat tan eggs?
msync: Without use of this call, there is no guarantee that changes are written back before munmap(2) is called. But,munmapis [implicitly/effectively] called when the program is terminated.msyncis only if you wish to force the flush early. As to partial data, that is different. If you write byte 0 to page A but get killed before writing byte 1 to page B (or page A for that matter), only the first byte will be flushed