Skip to content

Commit

Permalink
[chore] fix typo in ballast extension's README (#7431)
Browse files Browse the repository at this point in the history
  • Loading branch information
kahara authored Mar 28, 2023
1 parent 92e5423 commit a25d438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/ballastextension/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ When `size_in_percentage` is enabled with the value(1-100), the absolute `ballas
1. Look up Memory Cgroup subsystem on the target host or container, find out if there is any total memory limitation has been set for the running collector process.
Check the value in `memory.limit_in_bytes` file under cgroup memory files (eg, `/sys/fs/cgroup/memory/memory.limit_in_bytes`).

2. If `memory.limit_in_bytes` is positive value other than `9223372036854771712`(`0x7FFFFFFFFFFFF000`). The `ballest_size`
2. If `memory.limit_in_bytes` is positive value other than `9223372036854771712`(`0x7FFFFFFFFFFFF000`). The `ballast_size`
will be calculated by `memory.limit_in_bytes * size_in_percentage / 100`.
If `memory.limit_in_bytes` value is `9223372036854771712`(`0x7FFFFFFFFFFFF000`), it indicates there is no memory limit has
been set for the collector process or the running container in cgroup. Then the `totalMemory` will be determined in next step.
Expand Down

0 comments on commit a25d438

Please sign in to comment.