Skip to content

docs(audits): refresh BufferPool sizing audit citations (#1637) - #4011

Merged
oferchen merged 1 commit into
masterfrom
docs/buffer-pool-sizing-audit-1637
May 14, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/buffer-pool-sizing-audit-1637

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Refresh source-line citations in docs/audits/buffer-pool-capacity-sizing.md to match the current buffer_pool module layout. The pool struct gained the PID-style buffer controller (AdaptiveBufferController) and the existing audit's line references pointed at stale locations across pool.rs, memory_cap.rs, and the executor.
  • Add a section comparing oc-rsync's pooled allocator to upstream rsync 3.4.1's static buffers (IO_BUFFER_SIZE, CHUNK_SIZE, WRITE_SIZE * 8, MAX_BLOCK_SIZE, alloc_pool). The pooling indirection is a Rust-side optimization to recover the zero-init cost upstream avoids by keeping its 256 KiB write buffer alive for the entire process.
  • Fix the inline rustdoc on DEFAULT_QUEUE_CAPACITY in pool.rs: the comment said "64 buffers = 8 MiB" but the constant is 256 and the resizer caps at 256, so the budget is 32 MiB at the 128 KiB default.

Test plan

  • Verified all updated line citations against the current source.
  • Re-checked the upstream constants in target/interop/upstream-src/rsync-3.4.1/rsync.h and fileio.c.
  • No code logic changes; rustdoc and markdown only.

Refresh source-line citations to match the current buffer_pool module
layout. The pool module gained the PID-style buffer controller and the
struct shifted; existing line numbers in the audit pointed at stale
locations. Document the controller path, add an upstream rsync buffer
comparison section, and fix the inaccurate idle-memory math in the
DEFAULT_QUEUE_CAPACITY rustdoc (64 buffers / 8 MiB -> 256 buffers /
32 MiB at the 128 KiB default).
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 13, 2026
@oferchen
oferchen merged commit 42e588a into master May 14, 2026
45 checks passed
@oferchen
oferchen deleted the docs/buffer-pool-sizing-audit-1637 branch May 14, 2026 14:57
oferchen added a commit that referenced this pull request May 18, 2026
Refresh source-line citations to match the current buffer_pool module
layout. The pool module gained the PID-style buffer controller and the
struct shifted; existing line numbers in the audit pointed at stale
locations. Document the controller path, add an upstream rsync buffer
comparison section, and fix the inaccurate idle-memory math in the
DEFAULT_QUEUE_CAPACITY rustdoc (64 buffers / 8 MiB -> 256 buffers /
32 MiB at the 128 KiB default).
oferchen added a commit that referenced this pull request Aug 24, 2026
Refresh source-line citations to match the current buffer_pool module
layout. The pool module gained the PID-style buffer controller and the
struct shifted; existing line numbers in the audit pointed at stale
locations. Document the controller path, add an upstream rsync buffer
comparison section, and fix the inaccurate idle-memory math in the
DEFAULT_QUEUE_CAPACITY rustdoc (64 buffers / 8 MiB -> 256 buffers /
32 MiB at the 128 KiB default).
oferchen added a commit that referenced this pull request Aug 24, 2026
Refresh source-line citations to match the current buffer_pool module
layout. The pool module gained the PID-style buffer controller and the
struct shifted; existing line numbers in the audit pointed at stale
locations. Document the controller path, add an upstream rsync buffer
comparison section, and fix the inaccurate idle-memory math in the
DEFAULT_QUEUE_CAPACITY rustdoc (64 buffers / 8 MiB -> 256 buffers /
32 MiB at the 128 KiB default).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant