Page 1 of 1

Memory usage of /home/<user>

Posted: Sun Oct 08, 2023 3:38 pm
by rasat
How to check the memory usage of scripts in home folder, or if possible in a specific folder? I have 26 scripts in /home/rasat/.fvwm.

Re: Memory usage of /home/<user>

Posted: Sun Oct 08, 2023 3:45 pm
by CharlesV
Are you asking how much memory is taken up by the scripts in that folder?
__ or
asking how much memory is being taken up when those scripts when they are running?

Re: Memory usage of /home/<user>

Posted: Mon Oct 09, 2023 12:16 am
by kreemoweet
If you have something like the Xfce Task Manager program, it will show your scripts in the process tree, with their "RSS" resident memory usage and CPU % utilization, as well as a few other optional measurements.
The location of the scripts will be shown if you elect to display "full command line" also.

Re: Memory usage of /home/<user>

Posted: Mon Oct 09, 2023 8:21 am
by Adrian
Do you mean disk space?

Re: Memory usage of /home/<user>

Posted: Mon Oct 09, 2023 8:31 am
by rasat
CharlesV wrote: Sun Oct 08, 2023 3:45 pm Are you asking how much memory is taken up by the scripts in that folder?
__ or
asking how much memory is being taken up when those scripts when they are running?
My question is, how much memory is taken up by the scripts in that folder? They are individual items that have class names and Window ID by Fvwm (FvwmButtons, FvwmPager, FvwmBacker, Script, etc.). Surely visible with the right bash command.

Re: Memory usage of /home/<user>

Posted: Mon Oct 09, 2023 11:06 am
by MXRobo
ram memory or disk memory?

Re: Memory usage of /home/<user>

Posted: Mon Oct 09, 2023 11:58 am
by CharlesV
Hmm.. well... ls will show you disk space used.

For ram on a particular process, you can use the time command.

Code: Select all

time script_name

or the ps command.

Code: Select all

ps -p <PID_Here> -o %cpu,%mem,cmd
Some examples here:
https://askubuntu.com/questions/593401/ ... running-it

and here

https://stackoverflow.com/questions/179 ... at-runtime

Re: Memory usage of /home/<user>

Posted: Mon Oct 09, 2023 2:09 pm
by rasat
Had a look at Task Manager (xfce4-taskmanager), which gives the Ram memory that I was searching for. Missing are still scripts without a class, if these can be found.

Image

Re: Memory usage of /home/<user>

Posted: Mon Oct 09, 2023 3:11 pm
by CharlesV
You might try htop I prefer that to really find out whats going on.