Memory usage of /home/<user>

Message
Author
User avatar
rasat
Posts: 653
Joined: Tue Dec 19, 2017 12:19 pm

Memory usage of /home/<user>

#1 Post 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.

User avatar
CharlesV
Administrator
Posts: 8169
Joined: Sun Jul 07, 2019 5:11 pm

Re: Memory usage of /home/<user>

#2 Post 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?
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

kreemoweet
Posts: 10
Joined: Mon Aug 24, 2020 11:19 pm

Re: Memory usage of /home/<user>

#3 Post 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.

User avatar
Adrian
Developer
Posts: 9271
Joined: Wed Jul 12, 2006 1:42 am

Re: Memory usage of /home/<user>

#4 Post by Adrian »

Do you mean disk space?

User avatar
rasat
Posts: 653
Joined: Tue Dec 19, 2017 12:19 pm

Re: Memory usage of /home/<user>

#5 Post 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.

MXRobo
Posts: 1843
Joined: Thu Nov 14, 2019 12:09 pm

Re: Memory usage of /home/<user>

#6 Post by MXRobo »

ram memory or disk memory?

User avatar
CharlesV
Administrator
Posts: 8169
Joined: Sun Jul 07, 2019 5:11 pm

Re: Memory usage of /home/<user>

#7 Post 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
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
rasat
Posts: 653
Joined: Tue Dec 19, 2017 12:19 pm

Re: Memory usage of /home/<user>

#8 Post 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

User avatar
CharlesV
Administrator
Posts: 8169
Joined: Sun Jul 07, 2019 5:11 pm

Re: Memory usage of /home/<user>

#9 Post by CharlesV »

You might try htop I prefer that to really find out whats going on.
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

Post Reply

Return to “Software / Configuration”