Skip to content

docs(storage): one walk for every process, mail_sync_walk_memory - #302

Merged
0kaba0hub merged 2 commits into
mainfrom
docs/mail-sync-walk-memory
Nov 22, 2026
Merged

0kaba0hub merged 2 commits into
mainfrom
docs/mail-sync-walk-memory

Conversation

@0kaba0hub

Copy link
Copy Markdown
Contributor

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 (default 64M, "0" unbounded).

Draft until yarilo#2669 merges: the settings check compares with yarilo's develop, which does not have the key yet.

@0kaba0
0kaba0 force-pushed the docs/mail-sync-walk-memory branch from 5076c5a to 7dabe6c Compare November 22, 2026 19:17
@0kaba0hub
0kaba0hub marked this pull request as ready for review November 22, 2026 20:07
@0kaba0hub

Copy link
Copy Markdown
Contributor Author

#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.

@0kaba0hub

Copy link
Copy Markdown
Contributor Author

#302 (ec72825): APPROVED.

@0kaba0hub
0kaba0hub merged commit 43aeed6 into main Nov 22, 2026
1 check passed
@0kaba0hub
0kaba0hub deleted the docs/mail-sync-walk-memory branch November 22, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants