LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-10-2016, 12:55 PM   #1
frameworker
LQ Newbie
 
Registered: Feb 2016
Posts: 2

Rep: Reputation: Disabled
Understanding memory management


A question about physical and virtual memory:
In my case I have 1GB physcial memory and 2GB swap space.
After a while, some programs started, the kernel store pages into swap although all the memory requested by the system and all the running programs would be fit within the 1GB physical space.

If I start more and more programs, it is not obvious why the linux system is not using the maximal physical space.

I'm not an kernel expert, I know a little bout memory pages and that programs will use only explicit allocated memory.

Here's a picture from the system monitor:

445+225 = 670MB , that's would fit into 1GB isn't it?


 
Old 02-10-2016, 01:08 PM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Is that a screen from Linux? It looks like Windows to me, for some reason.
Google "Linux ate my RAM" as I think it will answer your questions.
 
Old 02-10-2016, 01:12 PM   #3
frameworker
LQ Newbie
 
Registered: Feb 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
The screenshow comes from GNOME system monitor, it's really linux.
The question is not why the memory goes away, the question is why the memory pages doesn't gathered onto the physical site, why the kernel work's as this screenshot shows.
 
Old 02-10-2016, 07:20 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,152

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
An operating system needs to accommodate all potential users of what is after all a general purpose environment. Not just a couple of currently running programs. Have a look at /proc/meminfo for an idea of some of the considerations in play. At all times.
Then try and figure out what that monitor is actually displaying.
 
  


Reply



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
Understanding Memory Use NotionCommotion Linux - Newbie 8 06-27-2013 08:54 PM
[SOLVED] Help understanding driver management in Slackware as compared to Windows. Laxman_prodigy Slackware 11 08-15-2011 09:05 PM
[SOLVED] help me understanding my memory fdelval Linux - Software 4 11-04-2010 03:52 PM
Linux memory management: Real memory or Cached buffers? gubbu Linux - Server 2 10-01-2010 01:58 AM
Memory Page Scanning and Reclaim/Memory Management ilfantomas Linux - Kernel 1 03-02-2010 08:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:29 PM.

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