Skip to content

Commit b2b7f26

Browse files
committed
Admin: performance:final style
Signed-off-by: Lynette Miles <[email protected]>
1 parent e3d13a8 commit b2b7f26

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

administration/performance.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
Fluent Bit is designed for high performance and minimal resource usage. Depending on your use case, you can optimize further using specific configuration options to achieve faster performance or reduce resource consumption.
44

5-
## Reading Files with Tail
5+
## Reading files with `tail`
66

7-
The `Tail` input plugin is used to read data from files on the filesystem. By default, it uses a small memory buffer of `32KB` per monitored file. While this is sufficient for most generic use cases and helps keep memory usage low when monitoring many files, there are scenarios where you may want to increase performance by using more memory.
7+
The `Tail` input plugin is used to read data from files on the filesystem. By default, it uses a small memory buffer of `32KB` per monitored file. While this is sufficient for most generic use cases and helps keep memory usage low when monitoring many files, there are scenarios where you might want to increase performance by using more memory.
88

99
If your files are typically larger than `32KB`, consider increasing the buffer size to speed up file reading. For example, you can experiment with a buffer size of `128KB`:
1010

@@ -19,17 +19,18 @@ pipeline:
1919
2020
By increasing the buffer size, Fluent Bit will make fewer system calls (read(2)) to read the data, reducing CPU usage and improving performance.
2121
22-
## Fluent Bit and SIMD for JSON Encoding
22+
## Fluent Bit and SIMD for JSON encoding
2323
24-
Starting in Fluent Bit v3.2, performance improvements have been introduced for JSON encoding. Plugins that convert logs from Fluent Bit's internal binary representation to JSON can now do so up to 30% faster using SIMD (Single Instruction, Multiple Data) optimizations.
24+
Starting in Fluent Bit v3.2, performance improvements have been introduced for JSON encoding. Plugins that convert logs from the Fluent Bit internal binary representation
25+
to JSON can now do so up to 30% faster using Single Instruction, Multiple Data (SIMD) optimizations.
2526
26-
### Enabling SIMD Support
27+
### Enabling SIMD support
2728
2829
Ensure that your Fluent Bit binary is built with SIMD support. This feature is available for architectures such as x86_64, amd64, aarch64, and arm64. As of now, SIMD is only enabled by default in Fluent Bit container images.
2930
3031
You can check if SIMD is enabled by looking for the following log entry when Fluent Bit starts:
3132
32-
```
33+
```text
3334
[2024/11/10 22:25:53] [ info] [fluent bit] version=3.2.0, commit=12cb22e0e9, pid=74359
3435
[2024/11/10 22:25:53] [ info] [storage] ver=1.5.2, type=memory, sync=normal, checksum=off, max_chunks_up=128
3536
[2024/11/10 22:25:53] [ info] [simd ] SSE2
@@ -38,15 +39,15 @@ You can check if SIMD is enabled by looking for the following log entry when Flu
3839
[2024/11/10 22:25:53] [ info] [sp] stream processor started
3940
```
4041

41-
Look for the simd entry, which will indicate the SIMD support type, such as SSE2, NEON, or none.
42+
Look for the `simd` entry, which will indicate the SIMD support type, such as `SSE2`, `NEON`, or `none`.
4243

43-
If your Fluent Bit binary was not built with SIMD enabled and you are using a supported platform, you can build Fluent Bit from source using the CMake option `-DFLB_SIMD=On`.
44+
If your Fluent Bit binary wasn't built with SIMD enabled and you are using a supported platform, you can build Fluent Bit from source using the CMake option `-DFLB_SIMD=On`.
4445

4546
## Run input plugins in threaded mode
4647

4748
By default, most of input plugins runs in the same system thread than the main event loop, however by configuration you can instruct them to run in a separate thread which will allow you to take advantage of other CPU cores in your system.
4849

49-
To run an input plugin in threaded mode, just add `threaded: true` as in the example below:
50+
To run an input plugin in threaded mode, add `threaded: true` as in the following example:
5051

5152
```yaml
5253
pipeline:

vale-styles/FluentBit/Headings.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ exceptions:
107107
- REST
108108
- ServiceMonitor
109109
- SignalFx
110+
- SIMD
110111
- Slack
111112
- SSL
112113
- StatsD

0 commit comments

Comments
 (0)