]> git.ipfire.org Git - thirdparty/collectd.git/commit
utils_message_parser: added message buffer shrinkage
authorKrzysztof Matczak <krzysztofx.matczak@intel.com>
Wed, 29 Mar 2017 09:39:20 +0000 (10:39 +0100)
committerKamil Wiatrowski <kamilx.wiatrowski@intel.com>
Fri, 22 Nov 2019 12:31:07 +0000 (13:31 +0100)
commit2fe84f82c5bcfcf1d2a5cbcdb27a4af5b3ac6875
tree6a08e171d1be1c0ff98b15db1076ccba4261e17c
parent55005f93f636d67150164ab1f4a019cd33399f62
utils_message_parser: added message buffer shrinkage

Large message buffer memory allocation that was needed
for handling MCE message flood has significant
performance impact on collectd CPU usage.
This fix adds logic for decreasing message buffer size to
default value (64) if there's nothing to parse.

Change-Id: Ibbaef211e1fe24d53663d717a1899ec719017b2b
Signed-off-by: Krzysztof Matczak <krzysztofx.matczak@intel.com>
src/utils_message_parser.c