Fedora Linux Support Community & Resources Center
  #1  
Old 15th September 2004, 06:50 AM
Corvash Offline
Registered User
 
Join Date: Aug 2004
Posts: 9
X.org consuming significant amounts of shared memory (170-200MB)

After 1-2 weeks of operation, top reports X as using 170-200MB of shared memory.

Is this usual or a sign of a memory leak (eg. applications using XSHM and not freeing the memory afterwards). Restarting X may recover between 30-40MB.

This was discovered on an occasion where I was unable to start an application as it failed to obtain approx 6MB of memory (my system has 512MB RAM and perhaps a 1GB of swap, so this is a definite anomaly).

X appeared at the top of top's listing when sorted by memory, so thats why I'm investigating it first.
Reply With Quote
  #2  
Old 15th September 2004, 07:43 AM
imdeemvp's Avatar
imdeemvp Offline
Registered User
 
Join Date: Feb 2004
Age: 49
Posts: 8,255
i would also like to know that too, and which programs to shut down if anyone knows please provide us with answer.......thanks in advance
__________________
HELP with JAVA, MP3's, Wireless, Repo's, YUM, Partitions, System Monitors, Nvidia, ATI drivers, LIMEWIRE PRO & MORE!.

Easiest and most friendly desktop ever is PCLinuxOS! Includes all this apps. Just try it.

"The greater the struggle THE greater the achievment."

Do you know HIM?

If you are an idiot click here. NThis will test you linux skills :D
Reply With Quote
  #3  
Old 16th September 2004, 05:53 AM
Corvash Offline
Registered User
 
Join Date: Aug 2004
Posts: 9
Try typing 'free' at a command prompt, you should get output like
Code:
[aravi@ironclad Fishing]$ free
             total       used       free     shared    buffers     cached
Mem:        515848     510832       5016          0      20504     253168
-/+ buffers/cache:     237160     278688
Swap:      1847424      70080    1777344
The Linux kernel caches recently accessed files in RAM so that they're faster to load. It will free up this space if a current process requires it (as of kernel 2.6, this is slightly different - more on that later). This means that memory usage may appear higher than it is. The -/+ Buffers/Cache line reports how much memory is used by actual processes and how much is ACTUALLY free.

Now, to how kernel 2.6 is slightly different. When new memory is needed the Linux kernel has two options - free up some space used for cached files or swap data in memory out to disk. In 2.4 it would resort to swapping only after it had pushed out all cached files, in 2.6 it may do one or the other (controlled via /proc/vm/swappiness).

You might want to check if that is your issue, or if an app really is consuming that much memory. In my case, an application failed to allocate memory - so I know there is another issue at work. Running top and pressing shift-M will give you a listing of which applications are currently consuming the most memory.
Reply With Quote
Reply

Tags
amounts , consuming , memory , shared , significant , xorg

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
something is consuming my memory enrico_m Using Fedora 4 21st September 2009 02:44 PM
setroubleshootd consuming a lot of memory davidslee9 Using Fedora 0 7th October 2008 10:00 AM
FC6 running consuming most of the memory ? dumpe2fs EOL (End Of Life) Versions 2 14th April 2007 08:31 AM
Kernel that supports large amounts of memory Gman12 Using Fedora 3 16th May 2006 12:38 AM
Kernel that supports large amounts of memory Gman12 Installation, Upgrades and Live Media 1 12th May 2006 04:44 PM


Current GMT-time: 06:48 (Saturday, 21-10-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat