Skip to content

Commit 5db2ced

Browse files
Alex-deVisteodutu
authored andcommitted
compute: Add redis example for copy-on-write
Provide a real-world example for copy-on-write regarding Redis snapshotting. Signed-off-by: Alex Apostolescu <[email protected]>
1 parent 0d2a058 commit 5db2ced

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

chapters/compute/copy-on-write/reading/copy-on-write.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Then the process' page table points the page to the newly copied frame, as you c
2727

2828
![Copy-on-Write](../media/copy-on-write-final.svg)
2929

30+
For a real-world example of **Copy-on-Write** in action, take a look at [this brief paragraph](https://redis.io/docs/latest/develop/get-started/faq/#background-saving-fails-with-a-fork-error-on-linux) explaining how [Redis](https://redis.io/) uses this technique to snapshot its data without blocking the server.
31+
3032
**Be careful!**
3133
Do not confuse **copy-on-write** with **demand paging**.
3234
Remember from the [Data chapter](reading/working-with-memory.md) that **demand paging** means that when you allocate memory, the OS allocates virtual memory that remains unmapped to physical memory until it's used.

0 commit comments

Comments
 (0)