LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 11-13-2009, 10:29 PM   #1
rehan999
Member
 
Registered: Aug 2007
Posts: 134

Rep: Reputation: 15
Unhappy Memory taking 95% for X server.


Greetings

I have a Machine installed with RHEL 4.7.

The machine gets freeze every day and by using the top command i get X taking 95% of the memory.

I have 8GB of RAM.
localhost % free -m
total used free shared buffers
Mem: 7984 7941 43 0 5
-/+ buffers/cache: 7875 109
Swap: 16347 16347 0


Localhost % cat /proc/driver/nvidia/cards/0
Model: Quadro FX 5600
IRQ: 185
Video BIOS: 60.80.13.00.01
Card Type: PCI-E
DMA Size: 40 bits
DMA Mask: 0xffffffffff
Bus Location: 02.00.0



Localhost % cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 190.42 Tue Oct 20 20:25:42 PDT 2009
GCC version: gcc version 3.4.6 20060404 (Red Hat 3.4.6-10)



Top command output
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
20244 root 15 0 24.1g 7.4g 1944 S 0.3 95.0 112:57.72 X



PLease help me out in trouble shooting this problem.

If need further please feel free to contact.


Regards
 
Old 11-14-2009, 12:07 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 404Reputation: 404Reputation: 404Reputation: 404Reputation: 404
Hard freezes are a symptom of either a buggy kernel module or a hardware problem.

I don't know if you have some problem or not with an application leaking ram, because the output you pasted is so messy (please, use code tags next time to wrap the terminal output). But in any case, that could (at most) activate the kernel OOM killer, that would kill the offending app (hopefully, but it might be any random one as well). Filling your ram doesn't freeze your computer.

About kernel modules, I'd check first any 3rd party module that's not part of the kernel (nvidia is an example of that, so try to reproduce your problem using the vesa driver or the nv one).

About hardware, check your ram using memtest (most livecds include a boot option to launch it) and watch over the temperature of your cpu, video card and HDs. Check also your HDs with smartmontools.

ps. Filling your ram doesn't crash your pc, but if you start to swap heavily to disk then it will turn really slow, to the point that it might seem to be frozen. However, the HD should show some heavy activity when that happens.

Last edited by i92guboj; 11-14-2009 at 12:16 AM.
 
Old 11-14-2009, 12:31 AM   #3
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
The following could be one of your problems.

http://us.download.nvidia.com/XFree8...hapter-10.html

Another problem could be some Xorg versions have a memory leak or pixmaps causing the memory leak. The only way to fix this is set a limit for pixmaps or upgrade Xorg to at least 7.2 or higher.

I suggest use CentOS, so you are not confined to buying when you need to upgrade.

I doubt nVidia states their drivers being stable for every distribution although they are a reputable company that makes good drivers. I use Gentoo portage tree to find out which versions of the desire program are stable and reliable for a whole setup. At this time nVidia drivers version 180.60 are stated as stable while 190.42 is not, so this is something to think about. Even though this is for Gentoo, so you could this information for other distributions..


On my setup X Window Server only uses around 14 megabytes of RAM. I got this when using pmap -d pid as root. The writable or private is the value that I used.
 
Old 11-14-2009, 08:45 AM   #4
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194Reputation: 1194
Quote:
Originally Posted by rehan999 View Post
I have a Machine installed with RHEL 4.7.
Upgrading to a newer version may be less effort than diagnosing this problem.

Quote:
Originally Posted by i92guboj View Post
Hard freezes are a symptom of either a buggy kernel module or a hardware problem.

I don't know if you have some problem or not with an application leaking ram, because the output you pasted is so messy
The output was messy but it also unambiguously showed that there is a memory leak somewhere in the X process. Not a hardware problem, not a buggy kernel module.

Quote:
Originally Posted by Electro View Post
The following could be one of your problems.

http://us.download.nvidia.com/XFree8...hapter-10.html
Doesn't look to me like it fits at all.

Quote:
Another problem could be some Xorg versions have a memory leak or pixmaps causing the memory leak.
I don't know about any of that, but it fits the symptoms. By the "pixmaps" part of that suggestion do you still mean a bug in X or do you mean a bug in some other program that is using X and causes X to use unlimited memory?

Quote:
The only way to fix this is set a limit for pixmaps or upgrade Xorg to at least 7.2 or higher.

I suggest use CentOS, so you are not confined to buying when you need to upgrade.
If this is a bug in X then upgrading is probably easier than diagnosing it. If it is a bug in some program using X, I don't know whether upgrading would make a difference.

I don't know how to place limits on resources inside X. Hopefully the OP understood what you meant by that. That does seem to be the more reasonable thing to try first, in case this is a bug in something using X.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
postgresql - postmaster is taking 99% of memory tcegrid Linux - Newbie 1 02-05-2008 03:05 PM
Whats taking up all my memory? kryptobs2000 Linux - General 17 05-31-2006 05:41 PM
are the consoles already taking up system memory? DJOtaku Linux - General 5 10-31-2005 03:52 PM
x is taking alot of memory Smokey Slackware 3 02-07-2005 04:07 PM
Why is XFree taking so much memory? eantoranz Linux - Software 15 10-27-2004 12:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:20 AM.

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