Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I left my computer on for a few days and was sort of alarmed that there was apparently a memory leak with X. Ksysguard showed X as taking up something like 400MB of physical memory (there was about 900MB of my 2GB RAM actually used, according to free -mt and Gkrellm.) I logged out of KDE, restarted X, and voila- X's RAM usage is down to 38MB and my total RAM usage went down to about 500MB.
I am running SuSE 10.0 64-bit and have Xorg version 6.8.2 as supplied by SuSE. Has anybody else seen this behavior?
X shared memory (used by all X applications) is associated with the X server. In other words, that 900MB was cache for all the applications running on X. Because there was no pressure on memory in your case, keeping the storage was a good decision - faster operation for applications.
Probably a SUSE bug. I have never experience with Mandrake 9.0, Slackware 10.0, and Gentoo. Memory in Linux is confusing.
At about 7 hours of use X is only using 20 MB of RAM. I used the utility pmap to figure out the true memory consumption for each program that is running. I am using XFce4 as my window manager. When running pmap look for writable/private value when using the detail option.
As macemoneta said, Linux makes extensive use of memory caching, which is a Good Thing™. Caching programs and data in memory can significantly speed up programs as the computer doesn't have to access the hard drive which is quite an order of magnitude slower than memory access times. The result of this caching though often causes concern though in users who aren't aware of how Linux memory management works, but the important thing when looking at memory use is looking at how much of that is cached memory.
Mizzou_Engineer: what was the complete output of free -mt?
Well, I restarted my computer and after 24h 4m of uptime, the RAM usage is normal for this machine as I have 2 F@H clients running in the background. Free -mt does not show much now as you can see below. But it did say that the used +/- buffers/cache was about 900MB before I restarted, so I'll post it again if the RAM usage gets back up there.
On ubuntu 9.04 (using an Intel GMA chipset), I added this at the bottom of my /etc/X11/xorg.conf file and then had no more problem after restarting the X server:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.