diff --git a/README.md b/README.md index bf14d28..6525d1d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package/src/memmon.cpp b/package/src/memmon.cpp index c40b810..530bcf9 100644 --- a/package/src/memmon.cpp +++ b/package/src/memmon.cpp @@ -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 {