How to calculate memory needs with http2

Hello All!

Two questions for this group.

First, is this the correct formula for calculating memory needs when http2 is not used:

(tune.bufsize) * (global maxconn)

Second, is this the correct formula for calculating memory needs with http2 is used:

(tune.bufsize) * (global maxconn) * (tune.h2.fe.max-concurrent-streams)

I’m using haproxy 3.0 LTS.

Thanks!

Paul