Skip to content

Request/discussion: WriteStreamAsync buffer size autotuning and/or increase default buffer size #590

@reinux

Description

@reinux

Related to #571, I found an article by Cloudflare benchmarking HTTP2 upload buffer autotuning.

According to their benchmarks, a 10mb upload on a very fast network is fastest with a 512kb buffer. However, the relative overhead incurred by the ack roundtrip is higher on faster networks, so on a slower network, there isn't much benefit, and on localhost, the difference is stark.

With 1,000 concurrent requests being processed, going from 64kb to 512kb would mean an increase from 64mb to 512mb of memory on just the transactions. That might be a breaking change for some users, so it could be that autotuning is a necessity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions