LinuxQuestions.org
Social Bookmarking all things Linux and Open Source
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General > LQ Articles Discussion
User Name
Password
LQ Articles Discussion This forum is for the discussion of content posted to the Articles and Editorials section.

Notices

Reply
 
Thread Tools
Old 02-18-2007, 07:53 PM   #1
mlsx
LQ Newbie
 
Registered: Oct 2006
Location: china
Distribution: RedFlag
Posts: 16
Thanked: 0
Understanding memory usage on Linux


[Log in to get rid of this advertisement]
A new article entry has been added:

Understanding memory usage on Linux

Quote:
This entry is for those people who have ever wondered,
mlsx is offline     Reply With Quote
Old 02-21-2007, 02:07 AM   #2
vangelis
Member
 
Registered: Nov 2004
Location: Hellas
Distribution: Zenwalk 4.4.1, Kubuntu Feisty Fawn x86_64
Posts: 337
Blog Entries: 4
Thanked: 0
The article is great, thanks for clearing up many things.

One of them was that I couldn't find a single X text editor that would consume less memory than windows notepad. I really thought that it wasn't possible..no I see
vangelis is offline     Reply With Quote
Old 04-15-2007, 08:09 AM   #3
unksi
LQ Newbie
 
Registered: Apr 2007
Location: Finland
Distribution: Sidux
Posts: 1
Thanked: 0
This article cleared it up a lot for me, thank you
unksi is offline     Reply With Quote
Old 04-25-2007, 06:01 AM   #4
PhillipHuang
Member
 
Registered: Aug 2006
Location: Shen Zhen
Distribution: Ubuntu 9.04
Posts: 182
Thanked: 0
Very good article. Thanks a lot.
PhillipHuang is offline     Reply With Quote
Old 07-13-2007, 03:27 AM   #5
haxpor
Member
 
Registered: Dec 2006
Distribution: Fedora Core 6, Ubuntu 7.10
Posts: 80
Thanked: 0
Great, very useful.
THANKS again.
haxpor is offline     Reply With Quote
Old 07-13-2007, 07:28 AM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Kubuntu Karmic Koala
Posts: 17,467
Blog Entries: 4
Thanked: 88
I have added a note at the bottom of the article to ensure that it is clear that this is a copy of a post on the Virtual Threads blog. we should always attribute whenever this happens.
XavierP is offline     Reply With Quote
Old 07-20-2009, 07:23 AM   #7
BHABANIPRASADPATI
LQ Newbie
 
Registered: Aug 2006
Location: ORISSA,INDIA
Distribution: REDHAT ENTERPRISE
Posts: 29
Thanked: 0
Wow... nice one.
BHABANIPRASADPATI is offline     Reply With Quote
Old 07-20-2009, 08:35 AM   #8
johnsfine
Senior Member
 
Registered: Dec 2007
Posts: 1,682
Thanked: 182
Quote:
Originally Posted by BHABANIPRASADPATI View Post
Wow... nice one.
Did you notice the thread was old and the linked content was effectively very old (nearly obsolete even when it was posted).

It is even more true now that there is no way of providing memory use statistics that are both simple and correct. But the reasons have evolved.

It is still true that a lot of code is shareable and there are no good statistics on how much it is shared. When a process uses shareable code, that gets entirely counted in that process's memory use statistics regardless of whether it is also counted in other processes' memory use statistics.

But that has become a very small share of virtual memory use, especially on 64 bit systems.

For example, I just looked at the biggest virtual memory users on one of the shared systems I'm logged into at the moment. The biggest one, at 419MB, is identified in top as /usr/bin/sealer but is actually /usr/bin/python (I assume python sets its argv[0] based on what python program it is running).

I've seen many questions online (without great answers) about what that process is and why it is using so much virtual memory. I'm curious myself but don't have time for a serious investigation.

On my system, I see that only 11MB of that 419MB is resident and only 4.6MB is shareable. The entire moderately loaded multi user Centos system is using only 128MB of swap space, which I expect is mainly other tasks, not that 419MB task. But anyway, after including all the .so mappings (which are in that shareable 4.6MB) plus all of the resident memory (which already double counts some of the .so mappings) plus all of the swapped out memory, most of the 419MB is still unaccounted for.

In many cases the large blocks of memory that are in virtual size but no where else are "demand zero" memory. I haven't taken the trouble to figure out where the invisible majority of the 419MB is in this example.

Maybe long ago, the level of actual sharing of .so mappings was a significant fraction of the cause of confusing memory statistics. Maybe long ago influencing that level of sharing, as suggested in that article, by sticking to one version/type of desktop software, was a significant factor in improving memory efficiency.

But now, physical and virtual memory sizes have both grown so much faster than .so mapping sizes, that those things really don't matter.

Last edited by johnsfine; 07-20-2009 at 08:36 AM..
johnsfine is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory Usage on Linux lchand_p Linux - Software 2 06-19-2006 07:17 AM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 09:43 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 05:45 AM
Linux Memory usage Boomba Linux - General 8 03-25-2004 05:16 PM
Linux and Memory usage ganninu Linux - General 8 12-15-2003 08:33 AM


All times are GMT -5. The time now is 11:21 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration