Skip to content

Commit

Permalink
Demote the message to info and add some information to the README
Browse files Browse the repository at this point in the history
  • Loading branch information
amete committed May 31, 2024
1 parent 69fdc44 commit 9548dfb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,21 @@ incomplete arguments. If `prmon` starts a program itself (using `--`) then
When invoked with `-h` or `--help` usage information is printed, as well as a
list of all available monitoring components.

### Fast Memory Monitoring

When invoked with `--fast-memmon` `prmon` uses the `smaps_rollup` files
that contain pre-summed memory information for each monitored process.
This is a faster approach compared to the default behavior,
where `prmon` aggregates the results itself by going over each of the monitored
processes' mappings one by one.

If the current kernel doesn't support `smaps_rollup` then the default
approach is used. Users should also note that fast memory monitoring
might not contain all metrics that the default approach supports, e.g.,
`vmem`. In that case, the missing metric will be omitted in the output.
If any of these issues are encountered, a relevant message is printed
to notify the user.

### Environment Variables

The `PRMON_DISABLE_MONITOR` environment variable can be used to specify a comma
Expand Down
2 changes: 1 addition & 1 deletion package/src/memmon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ void const memmon::do_fastmon() {
for (auto it = mem_stats.cbegin(); it != mem_stats.cend();) {
// Delete unavailable metrics
if (available_metrics.count(it->first) == 0) {
spdlog::warn("Metric " + it->first +
spdlog::info("Metric " + it->first +
" is not available in fast monitoring");
it = mem_stats.erase(it);
} else {
Expand Down

0 comments on commit 9548dfb

Please sign in to comment.