Skip to content

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