Added a new 'memwithbuffersperc' variable - #2314
Open
mfluhr wants to merge 1 commit into
Open
Conversation
✅ Deploy Preview for conkyweb ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
ETFM6T
approved these changes
Feb 8, 2026
Collaborator
|
I think it would be better if this was an optional argument for mem and memperc instead of a new variable. You only need to check "-b" in args, so it should be straightforward, and there are plenty of examples ranging from simple to advanced. |
Contributor
Author
|
Ok, I can of course adjust the code in this direction... So, if I introduce now a '-b' argument, I think we should also remove the $memwithbuffers, and this would trigger errors in existing configurations. Are you OK with such change? |
…m in use, including buffers and caches
mfluhr
force-pushed
the
memwithbuffersperc
branch
from
May 26, 2026 08:40
a6d9ca7 to
3420837
Compare
✅ Deploy Preview for conkyweb canceled.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added a new 'memwithbuffersperc' variable to get the percentage of memory in use, including memory used by system buffers and caches.
As an Android OS developer, I am rebuilding the AOSP daily, and the build process is heavily multi-threaded, consuming almost all my RAM. Since I want to avoid the oomd killer kicking in, I am closely monitoring RAM usage, not only using
memandmemperc, but alsomemwithbuffers.Since there is no
memwithbufferspercvariable available, I tought this might be a great addition both for completeness and statistics purposes.The code should not affect existing conky configurations, since it is a new variable addition.
It has been tested locally using the following configuration