Skip to content

Commit

Permalink
[core] Fix the GCS memory usage high issue
Browse files Browse the repository at this point in the history
It's not because of leak. The root cause is because we allocate more requests when start. This PR fixed it by making the number of call constant.
  • Loading branch information
fishbone authored Feb 8, 2023
1 parent 56606ae commit cf1bc83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ray/rpc/grpc_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ void GrpcServer::Run() {
if (entry->GetMaxActiveRPCs() != -1) {
buffer_size = entry->GetMaxActiveRPCs();
}
for (int j = 0; j < buffer_size; j++) {
for (int j = 0; j < (buffer_size / num_threads_); j++) {
entry->CreateCall();
}
}
Expand Down

0 comments on commit cf1bc83

Please sign in to comment.