Skip to content

Add configurable rpc_socket_max_reads_per_event parameter (#526)#526

Open
charles-typ wants to merge 2 commits intofacebookresearch:v2-betafrom
charles-typ:export-D96763733-to-v2-beta
Open

Add configurable rpc_socket_max_reads_per_event parameter (#526)#526
charles-typ wants to merge 2 commits intofacebookresearch:v2-betafrom
charles-typ:export-D96763733-to-v2-beta

Conversation

@charles-typ
Copy link
Copy Markdown
Contributor

@charles-typ charles-typ commented Mar 16, 2026

Summary:

Add support for configuring ThriftServer's socketMaxReadsPerEvent via CLI
flag. This controls how many reads a single connection can perform per
event loop iteration, which affects multi-client scalability.

Changes:

  • Add rpc_socket_max_reads_per_event gflag to UcacheBenchRpcServer.cpp
  • Apply flag value to thriftServer_->setSocketMaxReadsPerEvent()
  • Add parameter to benchmark configs (debug/large/medium/small) with
    default value of 1 matching production ucache
  • Add --rpc-socket-max-reads-per-event CLI arg in jobs_internal.yml
  • Add parameter to ALLOWED_PARAMS in ucache_bench_benchmark.py

Reviewed By: excelle08

Differential Revision: D96763733

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 16, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Mar 16, 2026

@charles-typ has exported this pull request. If you are a Meta employee, you can view the originating Diff in D96763733.

charles-typ added a commit to charles-typ/DCPerf that referenced this pull request Mar 16, 2026
…search#526)

Summary:

Add support for configuring ThriftServer's socketMaxReadsPerEvent via CLI
flag. This controls how many reads a single connection can perform per
event loop iteration, which affects multi-client scalability.

Changes:
- Add rpc_socket_max_reads_per_event gflag to UcacheBenchRpcServer.cpp
- Apply flag value to thriftServer_->setSocketMaxReadsPerEvent()
- Add parameter to benchmark configs (debug/large/medium/small) with
  default value of 1 matching production ucache
- Add --rpc-socket-max-reads-per-event CLI arg in jobs_internal.yml
- Add parameter to ALLOWED_PARAMS in ucache_bench_benchmark.py

Differential Revision: D96763733
charles-typ added a commit to charles-typ/DCPerf that referenced this pull request Mar 16, 2026
…search#526)

Summary:

Add support for configuring ThriftServer's socketMaxReadsPerEvent via CLI
flag. This controls how many reads a single connection can perform per
event loop iteration, which affects multi-client scalability.

Changes:
- Add rpc_socket_max_reads_per_event gflag to UcacheBenchRpcServer.cpp
- Apply flag value to thriftServer_->setSocketMaxReadsPerEvent()
- Add parameter to benchmark configs (debug/large/medium/small) with
  default value of 1 matching production ucache
- Add --rpc-socket-max-reads-per-event CLI arg in jobs_internal.yml
- Add parameter to ALLOWED_PARAMS in ucache_bench_benchmark.py

Differential Revision: D96763733
charles-typ added a commit to charles-typ/DCPerf that referenced this pull request Mar 24, 2026
…search#526)

Summary:

Add support for configuring ThriftServer's socketMaxReadsPerEvent via CLI
flag. This controls how many reads a single connection can perform per
event loop iteration, which affects multi-client scalability.

Changes:
- Add rpc_socket_max_reads_per_event gflag to UcacheBenchRpcServer.cpp
- Apply flag value to thriftServer_->setSocketMaxReadsPerEvent()
- Add parameter to benchmark configs (debug/large/medium/small) with
  default value of 1 matching production ucache
- Add --rpc-socket-max-reads-per-event CLI arg in jobs_internal.yml
- Add parameter to ALLOWED_PARAMS in ucache_bench_benchmark.py

Reviewed By: excelle08

Differential Revision: D96763733
charles-typ added a commit to charles-typ/DCPerf that referenced this pull request Mar 26, 2026
…search#526)

Summary:

Add support for configuring ThriftServer's socketMaxReadsPerEvent via CLI
flag. This controls how many reads a single connection can perform per
event loop iteration, which affects multi-client scalability.

Changes:
- Add rpc_socket_max_reads_per_event gflag to UcacheBenchRpcServer.cpp
- Apply flag value to thriftServer_->setSocketMaxReadsPerEvent()
- Add parameter to benchmark configs (debug/large/medium/small) with
  default value of 1 matching production ucache
- Add --rpc-socket-max-reads-per-event CLI arg in jobs_internal.yml
- Add parameter to ALLOWED_PARAMS in ucache_bench_benchmark.py

Reviewed By: excelle08

Differential Revision: D96763733
@meta-codesync meta-codesync bot changed the title Add configurable rpc_socket_max_reads_per_event parameter Add configurable rpc_socket_max_reads_per_event parameter (#526) Mar 26, 2026
charles-typ added a commit to charles-typ/DCPerf that referenced this pull request Mar 26, 2026
…search#526)

Summary:

Add support for configuring ThriftServer's socketMaxReadsPerEvent via CLI
flag. This controls how many reads a single connection can perform per
event loop iteration, which affects multi-client scalability.

Changes:
- Add rpc_socket_max_reads_per_event gflag to UcacheBenchRpcServer.cpp
- Apply flag value to thriftServer_->setSocketMaxReadsPerEvent()
- Add parameter to benchmark configs (debug/large/medium/small) with
  default value of 1 matching production ucache
- Add --rpc-socket-max-reads-per-event CLI arg in jobs_internal.yml
- Add parameter to ALLOWED_PARAMS in ucache_bench_benchmark.py

Reviewed By: excelle08

Differential Revision: D96763733
@charles-typ charles-typ force-pushed the export-D96763733-to-v2-beta branch from af33d95 to ee237be Compare March 26, 2026 21:34
charles-typ added a commit to charles-typ/DCPerf that referenced this pull request Mar 26, 2026
…search#526)

Summary:

Add support for configuring ThriftServer's socketMaxReadsPerEvent via CLI
flag. This controls how many reads a single connection can perform per
event loop iteration, which affects multi-client scalability.

Changes:
- Add rpc_socket_max_reads_per_event gflag to UcacheBenchRpcServer.cpp
- Apply flag value to thriftServer_->setSocketMaxReadsPerEvent()
- Add parameter to benchmark configs (debug/large/medium/small) with
  default value of 1 matching production ucache
- Add --rpc-socket-max-reads-per-event CLI arg in jobs_internal.yml
- Add parameter to ALLOWED_PARAMS in ucache_bench_benchmark.py

Reviewed By: excelle08

Differential Revision: D96763733
charles-typ added a commit to charles-typ/DCPerf that referenced this pull request Mar 26, 2026
…search#526)

Summary:
Pull Request resolved: facebookresearch#526

Add support for configuring ThriftServer's socketMaxReadsPerEvent via CLI
flag. This controls how many reads a single connection can perform per
event loop iteration, which affects multi-client scalability.

Changes:
- Add rpc_socket_max_reads_per_event gflag to UcacheBenchRpcServer.cpp
- Apply flag value to thriftServer_->setSocketMaxReadsPerEvent()
- Add parameter to benchmark configs (debug/large/medium/small) with
  default value of 1 matching production ucache
- Add --rpc-socket-max-reads-per-event CLI arg in jobs_internal.yml
- Add parameter to ALLOWED_PARAMS in ucache_bench_benchmark.py

Reviewed By: excelle08

Differential Revision: D96763733
@charles-typ charles-typ force-pushed the export-D96763733-to-v2-beta branch from ee237be to d9d3130 Compare March 26, 2026 21:37
)

Summary:
Pull Request resolved: facebookresearch#518

The cachelib_num_shards parameter was parsed from gflags and stored in
UcacheBenchConfig but never actually applied to the CacheAllocator::Config.
This meant the config value was silently ignored and CacheLib used its
default of 8192 shards.

Now call setNumShards() when cachelib_num_shards > 0, allowing the
benchmark to match production shard counts for more accurate CPU
utilization profiling.

Differential Revision: D96087814
charles-typ added a commit to charles-typ/DCPerf that referenced this pull request Mar 31, 2026
…search#526)

Summary:

Add support for configuring ThriftServer's socketMaxReadsPerEvent via CLI
flag. This controls how many reads a single connection can perform per
event loop iteration, which affects multi-client scalability.

Changes:
- Add rpc_socket_max_reads_per_event gflag to UcacheBenchRpcServer.cpp
- Apply flag value to thriftServer_->setSocketMaxReadsPerEvent()
- Add parameter to benchmark configs (debug/large/medium/small) with
  default value of 1 matching production ucache
- Add --rpc-socket-max-reads-per-event CLI arg in jobs_internal.yml
- Add parameter to ALLOWED_PARAMS in ucache_bench_benchmark.py

Reviewed By: excelle08

Differential Revision: D96763733
charles-typ added a commit to charles-typ/DCPerf that referenced this pull request Mar 31, 2026
…search#526)

Summary:

Add support for configuring ThriftServer's socketMaxReadsPerEvent via CLI
flag. This controls how many reads a single connection can perform per
event loop iteration, which affects multi-client scalability.

Changes:
- Add rpc_socket_max_reads_per_event gflag to UcacheBenchRpcServer.cpp
- Apply flag value to thriftServer_->setSocketMaxReadsPerEvent()
- Add parameter to benchmark configs (debug/large/medium/small) with
  default value of 1 matching production ucache
- Add --rpc-socket-max-reads-per-event CLI arg in jobs_internal.yml
- Add parameter to ALLOWED_PARAMS in ucache_bench_benchmark.py

Reviewed By: excelle08

Differential Revision: D96763733
charles-typ added a commit to charles-typ/DCPerf that referenced this pull request Mar 31, 2026
…search#526)

Summary:

Add support for configuring ThriftServer's socketMaxReadsPerEvent via CLI
flag. This controls how many reads a single connection can perform per
event loop iteration, which affects multi-client scalability.

Changes:
- Add rpc_socket_max_reads_per_event gflag to UcacheBenchRpcServer.cpp
- Apply flag value to thriftServer_->setSocketMaxReadsPerEvent()
- Add parameter to benchmark configs (debug/large/medium/small) with
  default value of 1 matching production ucache
- Add --rpc-socket-max-reads-per-event CLI arg in jobs_internal.yml
- Add parameter to ALLOWED_PARAMS in ucache_bench_benchmark.py

Reviewed By: excelle08

Differential Revision: D96763733
@charles-typ charles-typ force-pushed the export-D96763733-to-v2-beta branch from d9d3130 to 4952bb3 Compare March 31, 2026 19:57
…search#526)

Summary:
Pull Request resolved: facebookresearch#526

Add support for configuring ThriftServer's socketMaxReadsPerEvent via CLI
flag. This controls how many reads a single connection can perform per
event loop iteration, which affects multi-client scalability.

Changes:
- Add rpc_socket_max_reads_per_event gflag to UcacheBenchRpcServer.cpp
- Apply flag value to thriftServer_->setSocketMaxReadsPerEvent()
- Add parameter to benchmark configs (debug/large/medium/small) with
  default value of 1 matching production ucache
- Add --rpc-socket-max-reads-per-event CLI arg in jobs_internal.yml
- Add parameter to ALLOWED_PARAMS in ucache_bench_benchmark.py

Reviewed By: excelle08

Differential Revision: D96763733
@charles-typ charles-typ force-pushed the export-D96763733-to-v2-beta branch from 4952bb3 to ab49b14 Compare March 31, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant