Skip to content

For unary methods, received messages are put into buffer from the pool, but buffer is never returned back to pool. #6578

@efremovmi

Description

@efremovmi

What version of gRPC are you using?

1.57.0

What version of Go are you using (go version)?

1.20.6

What operating system (Linux, Windows, …) and version?

MacOS

What did you do?

added buffer pool support and I expect that the number of allocations in the application will decrease

What did you expect to see?

I expect to see a decrease in allocations to the query (processUnaryRPC -> recvAndDecompress -> recvMsg)

What did you see instead?

after adding the buffer pool, the number of allocations has not changed (objects are not returned to the pool anywhere else, but they are always taken from it 616 line figure 2)

figure 1:

image

figure 2:

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions