The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux
.
google unix.com



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to deal with lots of data in memory in order not to run out of memory emitrax High Level Programming 1 05-28-2009 10:09 AM
How to find Total and Free Physical Memory and Logical Memory in SOLARIS 9 0ktalmagik SUN Solaris 4 02-03-2009 09:37 AM
How can I get memory usage or anything that show memory used from sar file? panithat HP-UX 1 03-31-2008 12:26 PM
how to round up a memory address(memory alignment problem) nj302 High Level Programming 6 09-21-2005 08:57 PM
Shared memory shortage but lots of unused memory cjcamaro UNIX for Advanced & Expert Users 1 10-13-2004 05:10 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-14-2009
sixstrings sixstrings is offline
Registered User
  
 

Join Date: Jan 2005
Posts: 33
what is the output of the free command?
  #2 (permalink)  
Old 07-15-2009
CRGreathouse CRGreathouse is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 104
Quote:
Originally Posted by Corona688 View Post
That big honking thing leaking 40% of your RAM and counting looks like your X server. Note how its actual memory consumption is way higher than the amount still paged in(RSS), its allocating lots of memory, not using it, and having it paged out to make room for more! Try upgrading it.

(You can avoid the lines getting cut off by redirecting ps into a file or pipe, by the way.)
Corona, thank you. I haven't managed to update it yet, but it looks like you've identified the problem. It's definitely a slow memory leak -- when I first start the system it's taking a much smaller piece of RAM.

Quote:
Originally Posted by sixstrings View Post
what is the output of the free command?
It's not too bad right now -- I only started the system 8 hours ago.
Code:
~$ free -m
             total       used       free     shared    buffers     cached
Mem:          3401       1913       1488          0         96        484
-/+ buffers/cache:       1331       2069
Swap:         5083          0       5083
  #3 (permalink)  
Old 07-17-2009
sixstrings sixstrings is offline
Registered User
  
 

Join Date: Jan 2005
Posts: 33
The key line in your free output is the buffers/cache line.

Linux will make use of unused memory, and you want it to do this. I will cache things it thinks it may need in the future, almost like read-ahead on hard drives (very simple example and not totally accurate, but works for this).

As an application requires more memory, the kernel will flush some of the cache out to free up memory. So looking at that output, you have slightly over 2GB free.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:44 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0