Bug 275070

Summary: [Patch] Superkaramba memory sensor missing buffers and cache
Product: [Unmaintained] superkaramba Reporter: Duncan <1i5t5.duncan>
Component: generalAssignee: Ryan Nickell <p0z3r>
Status: RESOLVED UNMAINTAINED    
Severity: wishlist CC: cfeck
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: patch adding buffer (%bm) and cached (%cm) values to the memory sensor

Description Duncan 2011-06-06 20:36:50 UTC
Created attachment 60707 [details]
patch adding buffer (%bm) and cached (%cm) values to the memory sensor

+++ This bug was initially created as a clone of Bug #274906 +++

This is patch #2 in what might turn out to be a series, as I convert my current yasp-scripted plasmoid scripts into superkaramba themes.

The memory sensor, unaccountably, doesn't expose buffer or cache values.  I say unaccountably because the source code grabs the values from in its processing of the /proc/memoryinfo file, so it already has them, but for whatever reason, simply doesn't make them available as sensor format choices.

This corrects that by exposing two new format substitution values, %bm for buffer memory, %cm for cached memory (in the existing code this is normal cache plus swap cache, this simply uses that value).  The patch also adds %bm and %cm to the existly list of values that change the max to the total physical memory value (%tm) when used with the graph meter, since they're physical memory values and thus should graph against total physical memory.

Unlike the previous cpu sensor patch which simply zeroed the new values on the BSDs, this memory sensor patch doesn't touch BSD ifdef-ed code at all, so it is likely to well work equally well on the BSDs with no futher alterations.
Comment 1 Christoph Feck 2011-07-19 00:16:32 UTC
Both patches look good, do you have write access to KDE svn repositories?
Comment 2 Andrew Crouthamel 2018-09-04 15:53:06 UTC
Hello! Sorry to be the bearer of bad news, but this project has been unmaintained for many years so I am closing this bug.