]> git.ipfire.org Git - thirdparty/bind9.git/commit
Reduce freemax values for dns_message mempools
authorOndřej Surý <ondrej@sury.org>
Wed, 15 Dec 2021 16:48:28 +0000 (17:48 +0100)
committerOndřej Surý <ondrej@sury.org>
Wed, 15 Dec 2021 20:25:00 +0000 (21:25 +0100)
commit72cc25465ff254afe0a104f97283e66776b5f3bf
treef38d51414323ca84891e2e8c9fba746a93a4e4df
parentada8c28fd406db3800445c6faf8a821cd426c215
Reduce freemax values for dns_message mempools

It was discovered that NAME_FREEMAX and RDATASET_FREEMAX was based on
the NAME_FILLCOUNT and RDATASET_FILLCOUNT respectively multiplied by 8
and then when used in isc_mempool_setfreemax, the value would be again
multiplied by 32.

Keep the 8 multiplier in the #define and remove the 32 multiplier as it
was kept in error.  The default fillcount can fit 99.99% of the requests
under normal circumstances, so we don't need to keep that many free
items on the mempool.
lib/dns/message.c