Bug 275070 - [Patch] Superkaramba memory sensor missing buffers and cache
Summary: [Patch] Superkaramba memory sensor missing buffers and cache
Status: RESOLVED UNMAINTAINED
Alias: None
Product: superkaramba
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: Ryan Nickell
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-06 20:36 UTC by Duncan
Modified: 2018-09-04 15:53 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch adding buffer (%bm) and cached (%cm) values to the memory sensor (1.12 KB, patch)
2011-06-06 20:36 UTC, Duncan
Details

Note You need to log in before you can comment on or make changes to this bug.
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.