LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-10-2017, 05:04 AM   #1
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,715

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Question How much memory is Chromium actually using?


Hi.

How much memory is Chromium actually using?

In MATE System Monitor - there's multiple entries (image atttached).

Compared to Firefox (image attached), there's 1 entry.

Thanks.
Attached Thumbnails
Click image for larger version

Name:	ch.png
Views:	36
Size:	101.1 KB
ID:	25841   Click image for larger version

Name:	ff.png
Views:	29
Size:	65.2 KB
ID:	25842  
 
Old 09-10-2017, 06:59 AM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Chrome/Chromium starts a new process for each new tab. And 100 MB per tab is something which looks familiar to me. FF run as one single process. But I don't know how much it allocates at start en how much for each tab, and if it allocates such an insane amount.

jlinkels
 
Old 09-11-2017, 12:45 PM   #3
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,715

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Question

So the only way to figure out the total memory usage of Chromium is to manually add them up from e.g. htop, system mon, etc.?
 
Old 09-11-2017, 01:15 PM   #4
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,792

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
Perhaps you can list the processes with
Code:
ps -eo pid,rss,vsz,comm | awk '$NF~/^chromium/'
If successful, you can sum up the rss (rss should be more precise than vsz):
Code:
ps -eo rss,comm | awk '$NF~/^chromium/ {sum+=$1} END {print sum}'
 
Old 09-11-2017, 01:17 PM   #5
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,792

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
Perhaps you can list the processes with
Code:
ps -eo pid,rss,vsz,comm | awk '$NF~/^chromium/'
If successful, you can sum up the rss (rss should be more precise than vsz):
Code:
ps -eo rss,comm | awk '$NF~/^chromium/ {sum+=$1} END {print sum,"kbyte"}'
If there is more than one user on the system, filter for your user:
Code:
ps -u $USER -o rss,comm | awk '$NF~/^chromium/ {sum+=$1} END {print sum,"kbyte"}'

Last edited by MadeInGermany; 09-11-2017 at 01:21 PM. Reason: added "kbyte"
 
Old 09-11-2017, 01:22 PM   #6
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,715

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by MadeInGermany View Post
Perhaps you can list the processes with
Code:
ps -eo pid,rss,vsz,comm | awk '$NF~/^chromium/'
If successful, you can sum up the rss (rss should be more precise than vsz):
Code:
ps -eo rss,comm | awk '$NF~/^chromium/ {sum+=$1} END {print sum,"kbyte"}'
If there is more than one user on the system, filter for your user:
Code:
ps -u $USER -o rss,comm | awk '$NF~/^chromium/ {sum+=$1} END {print sum,"kbyte"}'
Hi MIG.

Code:
ps -eo rss,comm | awk '$NF~/^chromium/ {sum+=$1} END {print sum}'
Code:
2136172
So about 2136 MB or just over 2GB?

Last edited by linustalman; 09-11-2017 at 01:24 PM.
 
Old 09-11-2017, 01:36 PM   #7
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,792

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
Yes, I have edited my post to clarify it is kbyte.
Or scale to MB
Code:
ps -u $USER -o rss,comm | awk '$NF~/^chromium/ {sum+=$1} END {printf "%.1f MB\n",sum/1024}'
 
1 members found this post helpful.
Old 09-11-2017, 01:37 PM   #8
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,715

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Thumbs up

Quote:
Originally Posted by MadeInGermany View Post
Yes, I have edited my post to clarify it is kbyte.
Or scale to MB
Code:
ps -u $USER -o rss,comm | awk '$NF~/^chromium/ {sum+=$1} END {printf "%.1f MB\n",sum/1024}'
That's perfect! Thank you sir.

Last edited by linustalman; 09-11-2017 at 01:38 PM.
 
  


Reply

Tags
chromium



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Chromium 59 memory askfor Slackware 12 06-14-2017 10:07 PM
Chromium memory usage high actinide Linux - Newbie 1 08-08-2016 12:04 AM
Switching to Chromium re the Chrome 32 bit fiasco, Chromium freezes all the time Clived Linux Mint 3 01-29-2016 04:37 PM
LXer: How to Purge Memory in Google's Chromium browser LXer Syndicated Linux News 0 05-16-2012 05:00 PM
Chromium memory leak? Hammett Linux - Software 1 11-16-2010 07:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration