Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Talk:Copy-on-write

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This article is ratedC-class on Wikipedia'scontent assessment scale.
It is of interest to the followingWikiProjects:
WikiProject iconComputing:Software /CompSciLow‑importance
WikiProject iconThis article is within the scope ofWikiProject Computing, a collaborative effort to improve the coverage ofcomputers,computing, andinformation technology on Wikipedia. If you would like to participate, please visit the project page, where you can jointhe discussion and see a list of open tasks.ComputingWikipedia:WikiProject ComputingTemplate:WikiProject ComputingComputing
LowThis article has been rated asLow-importance on theproject's importance scale.
Taskforce icon
This article is supported byWikiProject Software (assessed asMid-importance).
Taskforce icon
This article is supported byWikiProject Computer science (assessed asLow-importance).
Things you can helpWikiProject Computer science with:

Archiving icon
Archives
Archive 1


This page has archives. Sections older than30 days may be automatically archived byLowercase sigmabot III.

Change COW to CoW abbrev?

[edit]

ok to change article?— Precedingunsigned comment added byKrauss (talkcontribs)12:47, 21 March 2015 (UTC)[reply]

yeah sure go for it— Precedingunsigned comment added by31.205.30.246 (talk)16:13, 26 November 2015 (UTC)[reply]
Done. --Dereckson (talk)22:37, 26 October 2017 (UTC)[reply]

Two or more kinds of CoW's!

[edit]

The artileas today is only about software'slow memory management... But the termCopy-on-write, and an analog mechanism, can be used in another contexts. Example:filesystem and data control version indatabases. --Krauss (talk)13:53, 21 March 2015 (UTC)[reply]

Why?

[edit]

If you would copy a resource and never change it, why "copy" it? You could just use it or a reference to it? And if you change it, you must make a "hard" copy of it to retain both resources. So why would you ever want COW?— Precedingunsigned comment added by83.226.140.123 (talk)22:40, 20 August 2017 (UTC)[reply]

The "copy" operation is more abstract than explicated here

[edit]

The deep requirement is that after modifying the object, both the original object and the new object can be recovered (in the appropriate contexts).

Objects can often be represented as lists of edits. If the list is append-only (once appended, the list entry becomes immutable), you can simply replay the list to the desired depth to recover all intermediate forms.

fetch (list_of_edits, depth=1) fetch (list_of_edits, depth=2)

Of course, this isnot efficient for depth=1e9, so this isn't implemented for objects with high churn rates.

But do note that the list of edits is never copied (it is only ever extended in size). And also note that the referring object contains a generation integer (so the referring object is a bit more complicated than a simple pointer).

[*] Even this can be avoided, if the list has a null terminator at the front: you point to the last item you want replayed. To replay, the list is rewound to the null item at the front, then played forward to the specified element. Now the reference is a simple pointer, and list traversal is 2N instead of N.

Do we then define COW as an implementation of non-destructive edits in which some form of copy actually transpires.

My sense of this term is that most computer scientists use COW to encode the idea that you can have a lazy (deferred) algorithm to permit read sharing up until the last moment where you can't, and even here, the copy operation itself is usually small, embedded inside some pointer twizzling. —MaxEnt09:38, 24 September 2018 (UTC)[reply]

Alternate meaning

[edit]

Copy-on-Write seems to be used to refer to 2 slightly different things. This article is refering to a system where copy operations are deferred until the original or the copy is written.ie. Copy operation is defered to write time.

But the term also applies to systems like zfs, which always copy when writing. ie. Copy operation is always done at write time.

One is a property of the copy operation and the other is a property of the write operation.This article would be very misleading if someone heard about copy-on-write for zfs and looked up its meaning here.— Precedingunsigned comment added by67.253.148.30 (talk)22:26, 16 June 2022 (UTC)[reply]

Is that a different use byZFS than the snapshot thing explained inthis section? — voidxor23:12, 16 June 2022 (UTC)[reply]
Retrieved from "https://en.wikipedia.org/w/index.php?title=Talk:Copy-on-write&oldid=1198766395"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp