ignore kernel threads by default

Bug #1693656 reported by Paul Collins
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
NRPE Charm
Fix Released
Undecided
Unassigned

Bug Description

Linux seems to only grow more and more kernel threads, and very few of them end up doing anything much and occupy very little memory (just a kernel stack, 8K I think?, and a few other structures and not much more).

Ignoring them by default therefore seems like a reasonable thing to do, and means we don't have to manually set "procs" to a fixed value just so that we can append "-k".

As an example, my laptop currently has five hundred kernel threads, and that's with only 2 cores of 2 threads each. A machine with a reasonable number of CPUs would have many more, since many kernel threads are per-CPU.

"auto" is already supposed to do the right thing, so I'd suggest unconditionally adding "-k" on releases where it is supported (trusty supports it, so maybe no need to even check) when "auto" is set.

Related branches

Haw Loeung (hloeung)
Changed in nrpe-charm:
status: New → Confirmed
Paul Gear (paulgear)
Changed in nrpe-charm:
status: Confirmed → Triaged
Revision history for this message
Paul Gear (paulgear) wrote :
Changed in nrpe-charm:
status: Triaged → Fix Committed
Revision history for this message
Paul Gear (paulgear) wrote :

Released to candidate channel as cs:~nrpe-charmers/nrpe-14

Revision history for this message
Paul Collins (pjdc) wrote :

Per IRC, nrpe-14 LGTM.

Revision history for this message
Tom Haddon (mthaddon) wrote :

Have confirmed this change is in cs:nrpe, marked as Fix Released.

Changed in nrpe-charm:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.