Skip to content
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

Add script for monitoring memory hogging task #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Piyush-Chetwani
Copy link

This script will list all the tasks which are memory hogging and save them in process.txt from which one can decide which are those tasks which are memory hogging and redundant and which should be killed using taskKiller.sh (#3)

@aquatiko
Copy link
Collaborator

Hey Piyush,
I think you misunderstood the aim slightly

The aim to generate an analysis of your background tasks over many system runs, so that it is easier for you to decide which are those tasks which are memory hogging and redundant.

The current implementation seems to record the top memory-hogging task correctly but we need an analysis based approach.
We will be running (automatically) this script at every startup, then record the top memory consuming processes (which you have done correctly). While writing the result to a file, we need to update/add the entries to a file with a frequency. i.e this particular process was found in top 10, x number of times from y.

You can use a txt file or a csv or whatever works best. Also, a constant variable which a user can change to make it top T process oposed to top 10 would be awesome.

You would also need to decide on a primary key for uniquely adressing the entries, I think the process-name remains same in every run so it could be used but you are free to do whatever way works best. All the best!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants