From 7c1273ed0a75a31f093561b680bb3a35c97a1b97 Mon Sep 17 00:00:00 2001 From: Joe Rafaniello Date: Mon, 13 Nov 2017 16:26:26 -0500 Subject: [PATCH] Store unique set size (USS) in the PSS column https://bugzilla.redhat.com/show_bug.cgi?id=1506737 Unique set size is a better way to detect workers that are growing unbounded since any memory/reference leaks would be shown in their uss. If the server process is large when forking, new workers would inherit a big pss immediately. We should really rename the column/hash key to uss. --- lib/gems/pending/util/miq-process.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gems/pending/util/miq-process.rb b/lib/gems/pending/util/miq-process.rb index e148b49a8..e7646725b 100644 --- a/lib/gems/pending/util/miq-process.rb +++ b/lib/gems/pending/util/miq-process.rb @@ -110,7 +110,7 @@ def self.processInfo(pid = nil) cpu_total /= MiqSystem.num_cpus percent_cpu = (1.0 * result[:cpu_time]) / cpu_total result[:percent_cpu] = round_to(percent_cpu * 100.0, 2) - result[:proportional_set_size] = Sys::ProcTable.ps(pid).smaps.pss + result[:proportional_set_size] = Sys::ProcTable.ps(pid).smaps.uss when :macosx h = nil begin