memory usage [solved]

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
Ricker
Level 2
Level 2
Posts: 61
Joined: Mon Jun 05, 2017 1:26 pm
Location: USA

memory usage [solved]

Post by Ricker » Tue Feb 13, 2018 6:06 pm

Hello,

How do I check the memory (RAM) usage of my computer while Linux Mint is in operation..??

Thanks
Last edited by Ricker on Wed Feb 14, 2018 10:08 pm, edited 1 time in total.

User avatar
Pjotr
Level 20
Level 20
Posts: 10770
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: memory usage

Post by Pjotr » Tue Feb 13, 2018 6:14 pm

In the terminal:

Code: Select all

top
Tip: 10 things to do after installing Linux Mint 19 Tara
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

Ricker
Level 2
Level 2
Posts: 61
Joined: Mon Jun 05, 2017 1:26 pm
Location: USA

Re: memory usage

Post by Ricker » Tue Feb 13, 2018 6:16 pm

I type Top in the terminal??

User avatar
xenopeek
Level 24
Level 24
Posts: 22749
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: memory usage

Post by xenopeek » Tue Feb 13, 2018 6:16 pm

System Monitor in your menu.
Image

ralplpcr
Level 5
Level 5
Posts: 619
Joined: Tue Jul 28, 2015 10:11 am

Re: memory usage

Post by ralplpcr » Tue Feb 13, 2018 6:17 pm

In a terminal, type free -g.
This will show your memory usage in GB. *Note: approximately 1GB is normally "reserved", so your total will show 1 less than is actually installed.

Code: Select all

 $ free -g
             total       used       free     shared    buffers     cached
Mem:             7          5          2          0          0          1
-/+ buffers/cache:          3          4
Swap:            7          0          7
Alternately, the top command in a terminal will show a bit more detail as to which programs are using that memory.

Ricker
Level 2
Level 2
Posts: 61
Joined: Mon Jun 05, 2017 1:26 pm
Location: USA

Re: memory usage

Post by Ricker » Tue Feb 13, 2018 6:49 pm

I only have 1.5GB installed in my T42 laptop and was wondering if this will be OK for Linux Mint..??

User avatar
Pjotr
Level 20
Level 20
Posts: 10770
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: memory usage

Post by Pjotr » Tue Feb 13, 2018 6:55 pm

Please generate an overview of your system like this:

- Launch a terminal window (this is how to launch a terminal window);

- make the terminal window full screen, to avoid chopped lines;

- copy/paste this command into the terminal:

Code: Select all

inxi -Fxz
(if you type: the letter F is a capital letter)

- Press Enter.

- Copy/paste the output in your next message.
Tip: 10 things to do after installing Linux Mint 19 Tara
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

Ricker
Level 2
Level 2
Posts: 61
Joined: Mon Jun 05, 2017 1:26 pm
Location: USA

Re: memory usage

Post by Ricker » Tue Feb 13, 2018 7:19 pm

Thanks!

Right now I need to make dinner so I will try to generate an overview of the system ASAP... :D

User avatar
Pjotr
Level 20
Level 20
Posts: 10770
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: memory usage

Post by Pjotr » Tue Feb 13, 2018 7:34 pm

No hurry.... Past midnight over here, so I'm going to hit the sack. :mrgreen:
Tip: 10 things to do after installing Linux Mint 19 Tara
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

User avatar
Termy
Level 5
Level 5
Posts: 762
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: memory usage

Post by Termy » Tue Feb 13, 2018 7:58 pm

Lots of ways to get system information on memory usage. Here are some examples:

Code: Select all

free -h

Code: Select all

top # Or htop, if installed.

Code: Select all

ps -ax --sort -pmem -o pid,tty,stat,time,pmem,comm

Code: Select all

watch -n 0.1 cat /proc/meminfo

Code: Select all

watch -n 0.1 free -lth

Code: Select all

for F in {overcommit_memory,lowmem_reserve_ratio,memory{_failure_early_kill,_failure_recovery},overcommit_memory}; { printf "%s = %s\n" "$F" "$(< /proc/sys/vm/$F)"; }
As for GUI ways, depends on your setup. lol There's usually some sort of "task manager" type thing which shows plenty of information about memory usage.
Last edited by Termy on Tue Feb 13, 2018 8:04 pm, edited 1 time in total.
Here to help.

I'm LearnLinux (LL) on YouTube: https://www.youtube.com/channel/UCfp-lN ... naEE6NtDSg
I'm also terminalforlife (TFL) on GitHub: https://github.com/terminalforlife

ralplpcr
Level 5
Level 5
Posts: 619
Joined: Tue Jul 28, 2015 10:11 am

Re: memory usage

Post by ralplpcr » Tue Feb 13, 2018 8:02 pm

Ricker wrote:
Tue Feb 13, 2018 6:49 pm
I only have 1.5GB installed in my T42 laptop and was wondering if this will be OK for Linux Mint..??
It'll run, but it won't be a speed-demon or anything. I'd recommend using the XCFE version - - it's the "lightest" of the 4 current environments. While the others will technically run,they're likely to be very laggy and not enjoyable to use.

If you can get more memory, I'd suggest upgrading to 2GB - - that's the max your motherboard can handle. 1GB sticks for that can be found for around $20 in the US.
You may also want to consider changing out the hard drive to an SSD. That will greatly improve your experience.... though it all depends on whether you wish to spend the money. A regular spindle drive will work - - it'll just be slower.

FreedomTruth
Level 4
Level 4
Posts: 417
Joined: Fri Sep 23, 2016 10:19 am

Re: memory usage

Post by FreedomTruth » Wed Feb 14, 2018 12:06 am

inxi -I (that's a capital i) will show basic memory usage; inxi -t m10 will show the ten most memory-using processes. You can even combine them

Code: Select all

user@host:~$ inxi -It m10
Processes: Memory - MB / % used - top  10 active
           1: mem: 1592.51MB (4.9%) command: VirtualBox pid: 3521
           2: mem: 397.35MB (1.2%) command: palemoon pid: 23086
           3: mem: 383.84MB (1.1%) command: VirtualBox pid: 3605
           4: mem: 125.79MB (0.3%) command: X pid: 2660
           5: mem: 67.74MB (0.2%) command: mono-service.exe (started by: mono) pid: 2837
           6: mem: 51.22MB (0.1%) command: scp-dbus-service.py (started by: python) pid: 6388
           7: mem: 42.07MB (0.1%) command: knotify4 pid: 11469
           8: mem: 32.85MB (0.1%) command: python pid: 3180
           9: mem: 31.59MB (0.0%) command: xfdesktop pid: 3109
           10: mem: 25.93MB (0.0%) command: Thunar pid: 3105
Info:      Processes: 323 Uptime: 2 days Memory: 4948.1/32205.5MB Client: Shell (bash) inxi: 2.1.28 
1.5GB should handle mint mate or xfce ... I run mint 17.3 xfce on a 512 mb ram machine :)
If you abide in My word, you are My disciples indeed. And you shall know the truth, and the truth shall make you free... Most assuredly, I say to you, whoever commits sin is a slave of sin... Therefore if the Son makes you free, you shall be free indeed.

Ricker
Level 2
Level 2
Posts: 61
Joined: Mon Jun 05, 2017 1:26 pm
Location: USA

Re: memory usage

Post by Ricker » Wed Feb 14, 2018 2:36 pm

Thanks for the advice!!

When I was on OSDisc.com I asked Ramsey about Linux Mint and he recommend the Linux Mint 18.1 Xfce 32bit DVD

So I bought this DVD and I am very impressed with Linux Mint compared to Windows XP Pro.. Day and night difference...Life is good again in cyber space.. :D

At the moment my IBM T42 laptop is a dual boot and would imagine over time I will need to use Gparted to reclaim more real estate on the hard drive... :D

Screenshot_2018-02-14_12-42-54.png
Top ten processes

Ricker
Level 2
Level 2
Posts: 61
Joined: Mon Jun 05, 2017 1:26 pm
Location: USA

Re: memory usage

Post by Ricker » Wed Feb 14, 2018 2:50 pm

Generate an overview of your system with TOP command.... :D

Screenshot_2018-02-TOP.png
Top command

User avatar
bob466
Level 4
Level 4
Posts: 268
Joined: Mon May 15, 2017 5:23 am
Location: Australia

Re: memory usage

Post by bob466 » Wed Feb 14, 2018 7:44 pm

xenopeek wrote:
Tue Feb 13, 2018 6:16 pm
System Monitor in your menu.
Yes I use it...but with 16GB of Ram memory usage has never been an issue for me...more is always best. :D
Linux For Ever...Windoze Never

Ricker
Level 2
Level 2
Posts: 61
Joined: Mon Jun 05, 2017 1:26 pm
Location: USA

Re: memory usage

Post by Ricker » Wed Feb 14, 2018 9:38 pm

Linux Mint seems to be OK for Youtube, online banking, Ebay, and general Web surfing.... :D

Linux Mint Xfce beats Windows XP Pro... My Firefox in Win XP Pro would lock up... :x

Ricker
Level 2
Level 2
Posts: 61
Joined: Mon Jun 05, 2017 1:26 pm
Location: USA

Re: memory usage

Post by Ricker » Wed Feb 14, 2018 10:06 pm

My biggest problem with Windows XP Pro and Windows 7 was installing updates... :x

They would fail to install... With Linux Mint Xfce all of my updates installed without any problems/errors... 8)

Bill Gates discontinued MSE (Anti-virus) support for Windows XP .. And the guy is worth billions... (BYE BILL)... :lol:

Ricker
Level 2
Level 2
Posts: 61
Joined: Mon Jun 05, 2017 1:26 pm
Location: USA

Re: memory usage

Post by Ricker » Wed Feb 14, 2018 11:21 pm

leucocyte wrote:
Wed Feb 14, 2018 8:43 pm
Ricker wrote:
Tue Feb 13, 2018 6:49 pm
I only have 1.5GB installed in my T42 laptop and was wondering if this will be OK for Linux Mint..??
My answer would be :"yes and no".
According to the officials requirement , "512MB RAM (1GB recommended for a comfortable usage)".
An other OS with a W used to advert in the 90' that it could work with only 8MB of ram. Which was true as long as you didn't run any apps...
I guess the "pure linux mint core" only use 500MB. But every stuff you add on top of that adds more load.

Right now, my webbrowser "eats" 860MB, and the rest should be around 1GM despite being in what I call "a normal situation".
Good way to check if you need more memory is to see if your computer tends often to use swap. If yes, it means it's time to do something.

Adding Ram is then the best answer. But since your laptop dates from 2004 it may not accept a lot. And laptops tends to be... complicated when you have to add hardware on it... Anyway, any improvement would be nice.
Using a SSD drive may probably not be a good idea. Swap partition on SSD may be incredibly fast compared to standard HD drive, but SSD have a limited number of write cycle and since swap write/erase a lot it may decrease their lifetime.
If it's not installed on your computer, you could try to install zram. It improves the performance of swap.

Back to the initial question then: what are you using this computer for?
If it's for basic internet browsing and so on, the answer may be to use distributions and apps that use a minimum of ram resources. Maybe Mint is not the perfect distro for you then and you should try stuff like puppylinux and co. that comes with apps adapted to old computers.
If you want to use it as a powerful computer, doing video compression, heavy picture treatment, etc... then my answer would be... why don't you just buy a new computer? Even an low budget computer of today is incredibly powerful compared to a 15year old computer...

Hope to have been helpful and relevant :oops: (!)
At the moment I have three laptops IBM T41 XP Pro / IBM T42 XP Pro / Acer Aspire Netbook Win 7

I was hoping to salvage the IBM laptops because they are built well plus replacement batteries are cheap.... :D

User avatar
Termy
Level 5
Level 5
Posts: 762
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: memory usage [solved]

Post by Termy » Fri Feb 16, 2018 2:54 pm

leucocyte wrote:
Thu Feb 15, 2018 9:00 pm
Donno what to say. Lots of use for old computers.
Examples are : servers, multimedia workstation, stuff for children...
Recycling them can be useful too.
Absolutely. I've repurposed many old machines over the years.
Here to help.

I'm LearnLinux (LL) on YouTube: https://www.youtube.com/channel/UCfp-lN ... naEE6NtDSg
I'm also terminalforlife (TFL) on GitHub: https://github.com/terminalforlife

Ricker
Level 2
Level 2
Posts: 61
Joined: Mon Jun 05, 2017 1:26 pm
Location: USA

Re: memory usage [solved]

Post by Ricker » Fri Feb 16, 2018 3:11 pm

Termy wrote:
Fri Feb 16, 2018 2:54 pm
leucocyte wrote:
Thu Feb 15, 2018 9:00 pm
Donno what to say. Lots of use for old computers.
Examples are : servers, multimedia workstation, stuff for children...
Recycling them can be useful too.
Absolutely. I've repurposed many old machines over the years.

When IBM hires students from college they only hire the cream of the crop people...Therefore these IBM laptops will endure the test of time... :D
My three laptops were purchased used from eBay and a IBM computer refurbish center. I replaced the CMOS battery in both IBM laptops.. All is well and the Linux Mint 18.1 Xfce works absolutely great. However I am still a Newbie... :D

Post Reply

Return to “Newbie Questions”