Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ rustix = { version = "1.1.6", features = ["event", "fs", "mm", "net", "process",
[dev-dependencies]
pollster = "1.0"
tempfile = "3"
divan = "0.1.21"

[package.metadata.verus]
verify = true
Expand All @@ -65,9 +64,3 @@ unexpected_cfgs = { level = "warn", check-cfg = ['cfg(verus_only)', 'cfg(t4_simu
# A module with submodules is a `mod.rs` in its own directory, never a
# `foo.rs` beside a `foo/`: one place to look for a module.
self_named_module_files = "deny"

# A hot read's time through an unshared cache, and a shared cache's owner
# and its client (`doc/11-shared-mode.md`, Cost).
[[bench]]
name = "shared_reads"
harness = false
9 changes: 9 additions & 0 deletions bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,13 @@ default = ["mimalloc"]
mimalloc = ["dep:mimalloc"]

[dev-dependencies]
divan = "0.1.21"
pollster = "1.0"
tempfile = "3"
tokio = { version = "1", features = ["test-util"] }

# A hot read's time through an unshared cache, and a shared cache's owner
# and its client (`doc/11-shared-mode.md`, Cost).
[[bench]]
name = "shared_reads"
harness = false
File renamed without changes.
2 changes: 1 addition & 1 deletion doc/04-multi-device.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ first made as the output was: a system call a read, whatever tier served
it. A read from memory copies its bytes on its own task and so faults in
its own pages; the call bought it nothing. Now the pages lent to a disk
read are populated as they are lent (`ReadOutput::lend_to_disk_read`), and
no others. One hot read from memory at a time (`benches/shared_reads.rs`,
no others. One hot read from memory at a time (`bench/benches/shared_reads.rs`,
the median of 100 reads) on an i7i.24xlarge (Xeon 8559C, Linux 7.0, glibc
2.42):

Expand Down
4 changes: 2 additions & 2 deletions doc/11-shared-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ owner. A read is one call however many blocks it spans, and calls are
pipelined. The owner's own reads cost what they cost now.

**Measured** on a MacBook (Apple silicon, a desktop's load, 30 Oct 2026;
`benches/shared_reads.rs`, both caches in one process, the file gone from
`bench/benches/shared_reads.rs`, both caches in one process, the file gone from
the store so that only the cache can serve it), median of 100:

| a hot read of | the owner's own | its client's |
Expand Down Expand Up @@ -638,7 +638,7 @@ spins.
`T4Caching::read_through`, `fetch` and `turn` serve both with one
copy of their logic. The boxes cost no measured time: an owner's
hot 4 KiB read took 429 ns, against 421 ns through the enum,
within a run's spread (`benches/shared_reads.rs`, 2 Nov 2026).
within a run's spread (`bench/benches/shared_reads.rs`, 2 Nov 2026).
3. **The socket, bytes in its frames,** on Linux and macOS: the owner
listens, a client connects on `Busy`, the handshake, failures to the
remote, a client coming to own the cache. Tests in one process (a
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
pkgs.cargo-binutils
verus
verusfmt
# benches/read_throughput.rs's baseline, and its plot.
# fio, for the drives' baseline (doc/04); Python for plots.
pkgs.fio
(pkgs.python3.withPackages (ps: [ ps.matplotlib ]))
];
Expand Down
Loading