-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shortcut for live plot of memory usage? #167
Comments
thank you, I will update the doc; in general however the examples are not meant to be exhaustive or even fully correct on all systems, just a general samples of how the app can be used |
@tenox7 unless I'm overlooking something, it would be worth labelling examples that should not be run verbatim, because many of them do work well with copy-pasting and it doesn't seem unreasonable to then expect that approach to work well with other examples also. So if some examples are more like templates that need adjustment, let's make sure that's impossible to not notice before first running the command. |
I like the idea of have scripts with concrete metrics. We could write shell scripts that not only check command availability but also resolve OS differences between Linux/BSD/MacOS, etc. I have a bunch of scripts myself that I wanted to add but they are little beyond what I want in examples. I'm ok with getting flood of pull requests for these. What I'm unclear is how to actually distribute them. Should it go to the package? if so where should they land? Maybe have one shell script that takes argument of a metric? In respect of examples in the readme I have a feeling that there already is too many of them, and definitely too many are using awk. I want to convert more to sed/perl, maybe python? Also there is too much sar, I think for memory usage I would like to use |
@tenox7 I see!
A flood of pull requests will need quick response times to not end up in frustration.
Probably yes, they would become part of the API then though meaning that usage of a script cannot just change in breaking ways without a major version bump or frustrate users.
For candidates:
Needs checking against FHS, was only brainstorming so far.
I'm not sure that will give good maintainability. I'd prefer a bunch of independent scripts where each can be fixed without breaking the rest of them.
Too many seems like a concern of discoverability and/or cognitive overload. Good organization would be an alternative to dropping existing useful bits.
How would sed be better than awk?
Maybe, I don't have sar installed and I need to know or research that I need package "sysstat" installed for it. Not a showstopper to me personally though.
Understood, yes. |
@hartwork suggested:
Rather |
@edgar-bonet |
Quick confirmation that in default Termux also only this makes sense: |
The existing command in the doc is:
But I found on my system (Mint 21.2) I had to use:
Perhaps its obvious to others, but for me as a newbie, I figured I needed to run:
And then count to the colored column in which
%memused
appeared.The text was updated successfully, but these errors were encountered: