Repository navigation
docs(storage): one walk for every process, mail_sync_walk_memory - #302
Conversation
5076c5a to
7dabe6c
Compare
|
#302 (7dabe6c): one sentence to correct, the rest is right. "The server's own writes … carry those times forward, so they cost no walk by themselves" says more than the code does. A carried write leaves the directory checked within the second of its change, so every write of ours is followed by one walk, shared by all processes, two seconds later; the stand measured it as about one walk every five seconds per folder under constant writes (yarilo#2661). The next sentence describes the mechanism but a reader takes the first one as the cost. Say it as the cost: a write of ours costs one walk for all processes together, two seconds after it, instead of one per process and per session; and that the same delayed walk is what finds a file put in from outside in that second. |
The page and the setting for yarilomail/yarilo#2669: the times of cur/ and new/ the last walk found are kept in the index, so one walk serves every process; the server's own writes carry them; a folder is walked once at a time in a process, inside a memory budget. A settings entry for
storage.mail_sync_walk_memory(default64M,"0"unbounded).Draft until yarilo#2669 merges: the settings check compares with yarilo's develop, which does not have the key yet.