Skip to content

Instantly share code, notes, and snippets.

@drbugfinder-work
Last active February 12, 2024 14:41
Show Gist options
  • Save drbugfinder-work/54eab5d992c902cc067a07e29d03839e to your computer and use it in GitHub Desktop.
Save drbugfinder-work/54eab5d992c902cc067a07e29d03839e to your computer and use it in GitHub Desktop.
valgrind output for lua chunk mode
root@vm:~/fluent-bit-lua-parallel/fluent-bit/build/bin# valgrind --leak-check=full ./fluent-bit -c fluent-bit.conf
==26121== Memcheck, a memory error detector
==26121== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==26121== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==26121== Command: ./fluent-bit -c fluent-bit.conf
==26121==
Fluent Bit v3.0.0
* Copyright (C) 2015-2024 The Fluent Bit Authors
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
* https://fluentbit.io
____________________
< Fluent Bit v2.2.2 >
-------------------
\
\
\ __---__
_- /--______
__--( / \ )XXXXXXXXXXX\v.
.-XXX( O O )XXXXXXXXXXXXXXX-
/XXX( U ) XXXXXXX\
/XXXXX( )--_ XXXXXXXXXXX\
/XXXXX/ ( O ) XXXXXX \XXXXX\
XXXXX/ / XXXXXX \__ \XXXXX
XXXXXX__/ XXXXXX \__---->
---___ XXX__/ XXXXXX \__ /
\- --__/ ___/\ XXXXXX / ___--/=
\-\ ___/ XXXXXX '--- XXXXXX
\-\/XXX\ XXXXXX /XXXXX
\XXXXXXXXX \ /XXXXX/
\XXXXXX > _/XXXXX/
\XXXXX--__/ __-- XXXX/
-XXXXXXXX--------------- XXXXXX-
\XXXXXXXXXXXXXXXXXXXXXXXXXX/
""VXXXXXXXXXXXXXXXXXXV""
[2024/02/07 13:21:17] [ info] Configuration:
[2024/02/07 13:21:17] [ info] flush time | 5.000000 seconds
[2024/02/07 13:21:17] [ info] grace | 5 seconds
[2024/02/07 13:21:17] [ info] daemon | 0
[2024/02/07 13:21:17] [ info] ___________
[2024/02/07 13:21:17] [ info] inputs:
[2024/02/07 13:21:17] [ info] dummy
[2024/02/07 13:21:17] [ info] ___________
[2024/02/07 13:21:17] [ info] filters:
[2024/02/07 13:21:17] [ info] lua.0
[2024/02/07 13:21:17] [ info] ___________
[2024/02/07 13:21:17] [ info] outputs:
[2024/02/07 13:21:17] [ info] stdout.0
[2024/02/07 13:21:17] [ info] ___________
[2024/02/07 13:21:17] [ info] collectors:
[2024/02/07 13:21:18] [ info] [fluent bit] version=3.0.0, commit=215ee6232a, pid=26121
[2024/02/07 13:21:18] [debug] [engine] coroutine stack size: 24576 bytes (24.0K)
[2024/02/07 13:21:18] [ info] [storage] ver=1.5.1, type=memory, sync=normal, checksum=off, max_chunks_up=128
[2024/02/07 13:21:18] [ info] [cmetrics] version=0.6.6
[2024/02/07 13:21:18] [ info] [ctraces ] version=0.4.0
[2024/02/07 13:21:18] [ info] [input:dummy:dummy.0] initializing
[2024/02/07 13:21:18] [ info] [input:dummy:dummy.0] storage_strategy='memory' (memory only)
[2024/02/07 13:21:18] [debug] [dummy:dummy.0] created event channels: read=21 write=22
[2024/02/07 13:21:18] [debug] [stdout:stdout.0] created event channels: read=23 write=24
[2024/02/07 13:21:19] [ info] [sp] stream processor started
[2024/02/07 13:21:19] [ info] [output:stdout:stdout.0] worker #0 started
LUA
Number of incoming records: 2
Timestamp: 1707308479 147705065
Record: your_dummy_log_message
Timestamp: 1707308479 115073794
Record: your_dummy_log_message
All threads returned
[2024/02/07 13:21:19] [debug] [filter:lua:lua.0] Timestamp: sec=1707308479, nsec=115073794
[2024/02/07 13:21:19] [debug] [filter:lua:lua.0] Creating msgpack object for record
[2024/02/07 13:21:19] [debug] [filter:lua:lua.0] Msgpack object created for record.
[2024/02/07 13:21:19] [debug] [filter:lua:lua.0] Timestamp: sec=1707308479, nsec=147705065
[2024/02/07 13:21:19] [debug] [filter:lua:lua.0] Creating msgpack object for record
[2024/02/07 13:21:19] [debug] [filter:lua:lua.0] Msgpack object created for record.
[2024/02/07 13:21:19] [debug] [input chunk] update output instances with new chunk size diff=86, records=2, input=dummy.0
LUA
Number of incoming records: 2
Timestamp: 1707308480 97306893
Record: your_dummy_log_message
Timestamp: 1707308480 97053227
Record: your_dummy_log_message
All threads returned
[2024/02/07 13:21:20] [debug] [filter:lua:lua.0] Timestamp: sec=1707308480, nsec=97053227
[2024/02/07 13:21:20] [debug] [filter:lua:lua.0] Creating msgpack object for record
[2024/02/07 13:21:20] [debug] [filter:lua:lua.0] Msgpack object created for record.
[2024/02/07 13:21:20] [debug] [filter:lua:lua.0] Timestamp: sec=1707308480, nsec=97306893
[2024/02/07 13:21:20] [debug] [filter:lua:lua.0] Creating msgpack object for record
[2024/02/07 13:21:20] [debug] [filter:lua:lua.0] Msgpack object created for record.
[2024/02/07 13:21:20] [debug] [input chunk] update output instances with new chunk size diff=86, records=2, input=dummy.0
LUA
Number of incoming records: 2
Timestamp: 1707308481 97515912
Record: your_dummy_log_message
Timestamp: 1707308481 97325851
Record: your_dummy_log_message
All threads returned
[2024/02/07 13:21:21] [debug] [filter:lua:lua.0] Timestamp: sec=1707308481, nsec=97325851
[2024/02/07 13:21:21] [debug] [filter:lua:lua.0] Creating msgpack object for record
[2024/02/07 13:21:21] [debug] [filter:lua:lua.0] Msgpack object created for record.
[2024/02/07 13:21:21] [debug] [filter:lua:lua.0] Timestamp: sec=1707308481, nsec=97515912
[2024/02/07 13:21:21] [debug] [filter:lua:lua.0] Creating msgpack object for record
[2024/02/07 13:21:21] [debug] [filter:lua:lua.0] Msgpack object created for record.
[2024/02/07 13:21:21] [debug] [filter:lua:lua.0] Creating msgpack object for record
[2024/02/07 13:21:21] [debug] [filter:lua:lua.0] Msgpack object created for record.
[2024/02/07 13:21:21] [debug] [input chunk] update output instances with new chunk size diff=86, records=2, input=dummy.0
LUA
Number of incoming records: 2
Timestamp: 1707308482 97855348
Record: your_dummy_log_message
Timestamp: 1707308482 97664060
Record: your_dummy_log_message
All threads returned
[2024/02/07 13:21:22] [debug] [filter:lua:lua.0] Timestamp: sec=1707308482, nsec=97664060
[2024/02/07 13:21:22] [debug] [filter:lua:lua.0] Creating msgpack object for record
[2024/02/07 13:21:22] [debug] [filter:lua:lua.0] Msgpack object created for record.
[2024/02/07 13:21:22] [debug] [filter:lua:lua.0] Timestamp: sec=1707308482, nsec=97855348
[2024/02/07 13:21:22] [debug] [filter:lua:lua.0] Creating msgpack object for record
[2024/02/07 13:21:22] [debug] [filter:lua:lua.0] Msgpack object created for record.
[2024/02/07 13:21:22] [debug] [input chunk] update output instances with new chunk size diff=86, records=2, input=dummy.0
==26121== Warning: client switching stacks? SP change: 0x7c01e48 --> 0x5949000
==26121== to suppress, use: --max-stackframe=36408904 or greater
==26121== Warning: client switching stacks? SP change: 0x5948ee8 --> 0x7c01e48
==26121== to suppress, use: --max-stackframe=36409184 or greater
==26121== Warning: client switching stacks? SP change: 0x7c01e48 --> 0x5948ee8
==26121== to suppress, use: --max-stackframe=36409184 or greater
==26121== further instances of this message will not be shown.
[0] my_logs: [[1707308479.115073794, {}], {"message"=>"Modified"}]
[1] my_logs: [[1707308479.147705065, {}], {"message"=>"Modified"}]
[2] my_logs: [[1707308480.097053227, {}], {"message"=>"Modified"}]
[2024/02/07 13:21:23] [debug] [task] created task=0x5942b10 id=0 OK
[3] my_logs: [[1707308480.097306893, {}], {"message"=>"Modified"}]
[4] my_logs: [[1707308481.097325851, {}], {"message"=>"Modified"}]
[5] my_logs: [[1707308481.097515912, {}], {"message"=>"Modified"}]
[6] my_logs: [[1707308482.097664060, {}], {"message"=>"Modified"}]
[7] my_logs: [[1707308482.097855348, {}], {"message"=>"Modified"}]
LUA
Number of incoming records: 2
Timestamp: 1707308483 157933624
Record: your_dummy_log_message
[2024/02/07 13:21:23] [debug] [output:stdout:stdout.0] task_id=0 assigned to thread #0
Timestamp: 1707308483 158127965
Record: your_dummy_log_message
[2024/02/07 13:21:23] [debug] [out flush] cb_destroy coro_id=0
All threads returned
[2024/02/07 13:21:23] [debug] [filter:lua:lua.0] Timestamp: sec=1707308483, nsec=157933624
[2024/02/07 13:21:23] [debug] [filter:lua:lua.0] Creating msgpack object for record
[2024/02/07 13:21:23] [debug] [filter:lua:lua.0] Msgpack object created for record.
[2024/02/07 13:21:23] [debug] [filter:lua:lua.0] Timestamp: sec=1707308483, nsec=158127965
[2024/02/07 13:21:23] [debug] [filter:lua:lua.0] Creating msgpack object for record
[2024/02/07 13:21:23] [debug] [filter:lua:lua.0] Msgpack object created for record.
[2024/02/07 13:21:23] [debug] [input chunk] update output instances with new chunk size diff=86, records=2, input=dummy.0
[2024/02/07 13:21:23] [debug] [task] destroy task=0x5942b10 (task_id=0)
^C[2024/02/07 13:21:23] [engine] caught signal (SIGINT)
[2024/02/07 13:21:23] [debug] [task] created task=0x59bece0 id=0 OK
[0] my_logs: [[1707308483.157933624, {}], {"message"=>"Modified"}]
[1] my_logs: [[1707308483.158127965, {}], {"message"=>"Modified"}]
[2024/02/07 13:21:23] [debug] [output:stdout:stdout.0] task_id=0 assigned to thread #0
[2024/02/07 13:21:23] [ warn] [engine] service will shutdown in max 5 seconds
[2024/02/07 13:21:23] [debug] [out flush] cb_destroy coro_id=1
[2024/02/07 13:21:23] [ info] [input] pausing dummy.0
[2024/02/07 13:21:23] [debug] [task] destroy task=0x59bece0 (task_id=0)
[2024/02/07 13:21:24] [ info] [engine] service has stopped (0 pending tasks)
[2024/02/07 13:21:24] [ info] [input] pausing dummy.0
[2024/02/07 13:21:24] [ info] [output:stdout:stdout.0] thread worker #0 stopping...
[2024/02/07 13:21:24] [ info] [output:stdout:stdout.0] thread worker #0 stopped
==26121==
==26121== HEAP SUMMARY:
==26121== in use at exit: 0 bytes in 0 blocks
==26121== total heap usage: 2,049 allocs, 2,049 frees, 1,745,179 bytes allocated
==26121==
==26121== All heap blocks were freed -- no leaks are possible
==26121==
==26121== For lists of detected and suppressed errors, rerun with: -s
==26121== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
root@vm:~/fluent-bit-lua-parallel/fluent-bit/build/bin#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment