Tanium Performance: Using Event Rules to Find High CPU Consuming Processes at Scale
CPU contention and saturation are some of the most common symptoms of end user experience issues. This article will discuss a few ways Tanium Performance can help find, visualize, and correlate commonalities among CPU issues, at enterprise scale.
Event Rules are how Tanium Performance does real-time monitoring for negative experiences on endpoints. Performance currently has three different heuristics for detecting system-level CPU issues, which can be configured in a Profile:
CPU Utilization
A CPU that is consistently utilized for a long period of time can lead to user frustration. Applications fighting for CPU can cause the entire computer to be slow, and opening any additional applications will take longer if the CPU is starved for cycles already.
This heuristic has an optional Kernel Time parameter. If the CPU spends too much of its time executing in Kernel Mode, it could indicate a more specific problem, such as excessive context switching, IO, or kernel-mode driver issues.
DPC Time
This heuristic only applies to Windows, but it is very useful for detecting problems with drivers. A Deferred Procedure Call (DPC) is a special class of interrupt that runs with lower priority. Misbehaving kernel-mode drivers frequently queue many DPCs, bottlenecking the processor for actual applications.
Load Average
This heuristic only applies to macOS and Linux. Load Average is a standard way of detecting contention on non-Windows platforms, representing an exponentially damped weighted average of the number of processes running or waiting to run. Guidance for this metric is to compare load with the number of CPU cores that exist on the machine. To make monitoring easier across many different kinds of machines, Performance allows you to specify a multiple of CPU cores for the target threshold.
These rules are configured by default to be very conservative, but Performance Administrators can configure different thresholds and durations on these rules to account for their organization’s tolerance. Once a Profile has been configured and goes down to endpoints, they will begin watching for the configured rules in real time. This allows Performance to find every CPU-related problem, tuned for your environment, across the entire enterprise or a subset thereof.
Clicking the Load Endpoints with CPU Events button will bring up more information about endpoints that are having CPU events, including the top processes. These will be stack ranked by number of Events by default, allowing users to find the endpoints with the worst problems. Users can then quickly filter based on Model, Operating System, and Processes to find interesting computers to connect to for deeper troubleshooting:
In summary, Tanium Performance can monitor computers in real time for CPU issues. Performance can then find and visualize common processes among all CPU problems across an entire estate. From there, users can drill into some endpoint details, filtering to systems of interest for reporting or deeper analysis through the Direct Connect feature.