Skip to content

Conversation

@luke-lombardi
Copy link
Contributor

No description provided.

cursoragent and others added 24 commits October 30, 2025 00:41
This commit introduces several optimizations to improve blobcache performance, including FUSE tuning, gRPC network tuning, buffer pooling, prefetching, and enhanced metrics.

Co-authored-by: luke <luke@smartshare.io>
Co-authored-by: luke <luke@smartshare.io>
Co-authored-by: luke <luke@smartshare.io>
Co-authored-by: luke <luke@smartshare.io>
Co-authored-by: luke <luke@smartshare.io>
Co-authored-by: luke <luke@smartshare.io>
Co-authored-by: luke <luke@smartshare.io>
Co-authored-by: luke <luke@smartshare.io>
Co-authored-by: luke <luke@smartshare.io>
Co-authored-by: luke <luke@smartshare.io>
Co-authored-by: luke <luke@smartshare.io>
Co-authored-by: luke <luke@smartshare.io>
Co-authored-by: luke <luke@smartshare.io>
Update benchmark to use disk-only mode and adjust storage logic to reflect this.

Co-authored-by: luke <luke@smartshare.io>
This commit introduces a new gRPC throughput benchmark and adds configuration options for gRPC window sizes and buffer sizes. It also updates the performance test to include a check for GetContent throughput.

Co-authored-by: luke <luke@smartshare.io>
Co-authored-by: luke <luke@smartshare.io>
Co-authored-by: luke <luke@smartshare.io>
@github-actions
Copy link

github-actions bot commented Nov 5, 2025

Benchmark Results

goos: linux
goarch: amd64
pkg: github.com/beam-cloud/blobcache-v2/pkg
cpu: AMD EPYC 7763 64-Core Processor                
BenchmarkBufferPool/size_1MB/WithPool-4         	44775910	        59.35 ns/op	      26 B/op	       1 allocs/op
BenchmarkBufferPool/size_1MB/WithoutPool-4      	   15912	    150329 ns/op	 1048576 B/op	       1 allocs/op
BenchmarkBufferPool/size_4MB/WithPool-4         	43477904	        55.53 ns/op	      29 B/op	       1 allocs/op
BenchmarkBufferPool/size_4MB/WithoutPool-4      	    4440	    510833 ns/op	 4194304 B/op	       1 allocs/op
BenchmarkBufferPool/size_16MB/WithPool-4        	42406226	        53.42 ns/op	      31 B/op	       1 allocs/op
BenchmarkBufferPool/size_16MB/WithoutPool-4     	    2752	    917040 ns/op	16777216 B/op	       1 allocs/op
PASS
ok  	github.com/beam-cloud/blobcache-v2/pkg	16.409s
{"level":"info","time":"2025-11-05T00:20:22Z","message":"Disk cache directory located at: '/tmp/BenchmarkGetContentDiskCache2957712169/001'"}
{"level":"info","time":"2025-11-05T00:20:22Z","message":"Memory cache DISABLED (disk-only mode)"}
{"level":"info","time":"2025-11-05T00:20:22Z","message":"Evicted object: test"}
goos: linux
goarch: amd64
pkg: github.com/beam-cloud/blobcache-v2/pkg
cpu: AMD EPYC 7763 64-Core Processor                
BenchmarkGetContentDiskCache-4   	{"level":"info","time":"2025-11-05T00:20:22Z","message":"Disk cache directory located at: '/tmp/BenchmarkGetContentDiskCache1976309276/002'"}
{"level":"info","time":"2025-11-05T00:20:22Z","message":"Memory cache DISABLED (disk-only mode)"}
{"level":"info","time":"2025-11-05T00:20:22Z","message":"Evicted object: test"}
{"level":"info","time":"2025-11-05T00:20:22Z","message":"Disk cache directory located at: '/tmp/BenchmarkGetContentDiskCache864427630/003'"}
{"level":"info","time":"2025-11-05T00:20:22Z","message":"Memory cache DISABLED (disk-only mode)"}
{"level":"info","time":"2025-11-05T00:20:23Z","message":"Evicted object: test"}
     139	   4265538 ns/op	3933.20 MB/s	17543482 B/op	     918 allocs/op
PASS
ok  	github.com/beam-cloud/blobcache-v2/pkg	1.230s

@github-actions
Copy link

github-actions bot commented Nov 5, 2025

Benchmark Results

goos: linux
goarch: amd64
pkg: github.com/beam-cloud/blobcache-v2/pkg
cpu: AMD EPYC 7763 64-Core Processor                
BenchmarkBufferPool/size_1MB/WithPool-4         	43483362	        57.58 ns/op	      26 B/op	       1 allocs/op
BenchmarkBufferPool/size_1MB/WithoutPool-4      	   14658	    173332 ns/op	 1048576 B/op	       1 allocs/op
BenchmarkBufferPool/size_4MB/WithPool-4         	44208186	        54.98 ns/op	      29 B/op	       1 allocs/op
BenchmarkBufferPool/size_4MB/WithoutPool-4      	    4203	    523716 ns/op	 4194304 B/op	       1 allocs/op
BenchmarkBufferPool/size_16MB/WithPool-4        	42774196	        53.41 ns/op	      31 B/op	       1 allocs/op
BenchmarkBufferPool/size_16MB/WithoutPool-4     	    2642	    864000 ns/op	16777216 B/op	       1 allocs/op
PASS
ok  	github.com/beam-cloud/blobcache-v2/pkg	16.263s
{"level":"info","time":"2025-11-05T00:20:57Z","message":"Disk cache directory located at: '/tmp/BenchmarkGetContentDiskCache2792127160/001'"}
{"level":"info","time":"2025-11-05T00:20:57Z","message":"Memory cache DISABLED (disk-only mode)"}
{"level":"info","time":"2025-11-05T00:20:57Z","message":"Evicted object: test"}
goos: linux
goarch: amd64
pkg: github.com/beam-cloud/blobcache-v2/pkg
cpu: AMD EPYC 7763 64-Core Processor                
BenchmarkGetContentDiskCache-4   	{"level":"info","time":"2025-11-05T00:20:57Z","message":"Disk cache directory located at: '/tmp/BenchmarkGetContentDiskCache3561164912/002'"}
{"level":"info","time":"2025-11-05T00:20:57Z","message":"Memory cache DISABLED (disk-only mode)"}
{"level":"info","time":"2025-11-05T00:20:57Z","message":"Evicted object: test"}
{"level":"info","time":"2025-11-05T00:20:57Z","message":"Disk cache directory located at: '/tmp/BenchmarkGetContentDiskCache3519816551/003'"}
{"level":"info","time":"2025-11-05T00:20:57Z","message":"Memory cache DISABLED (disk-only mode)"}
{"level":"info","time":"2025-11-05T00:20:58Z","message":"Evicted object: test"}
     148	   4027696 ns/op	4165.46 MB/s	17389003 B/op	     949 allocs/op
PASS
ok  	github.com/beam-cloud/blobcache-v2/pkg	1.210s

@luke-lombardi luke-lombardi merged commit 659c0fd into master Nov 5, 2025
4 checks passed
@luke-lombardi luke-lombardi deleted the ll/optimize-read-throughput branch November 10, 2025 19:45
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.

4 participants