LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-29-2007, 11:28 PM   #1
otoomet
Member
 
Registered: Oct 2004
Location: Tartu, Århus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 588

Rep: Reputation: 45
X11 memory footprint


Hi,

is there any way to config X11 to use less memory? I have 1G ram, but X seems to eat up everything what is available. Currently 2 instances of X consume more than 900M, so I don't believe more memory will be a solution.

I remember a few years ago I played around with an P1 with 64M ram. There was an option to switch off X11 caches, and that worked very well.

Any ideas?

Thanks in advance,
Ott

This is debian lenny

Code:
X Window System Version 1.3.0
Release Date: 19 April 2007
X Protocol Version 11, Revision 0, Release 1.3
 
Old 09-30-2007, 12:09 AM   #2
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
First, why do you need to run multiple instances of X11? Second, there is no good reason why any instance of X11 should be using 900MB of RAM. Mine is currently using about 25KB. Where did you get the information about how much RAM its using. If it really is using that much, something is horribly broken and fixing it should greatly improve performance.
 
Old 09-30-2007, 12:26 AM   #3
otoomet
Member
 
Registered: Oct 2004
Location: Tartu, Århus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 588

Original Poster
Rep: Reputation: 45
Well, I admit these numbers are coming from 'top'. However, I notice that the system starts swapping when switching applications/desktops after having run a while. It is not a problem, but something I'd like to keep under check.

This is my home desktop where both me and my wife are logged on most of the time. Usually we don't switch it off, just hibernate. That's why the problems accumulate. The top memory consumers according to 'top' are:

Code:
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                       
 3679 tiina     15   0  578m 138m  10m S    0 13.8  66:07.92 galeon                                                         
18399 siim      15   0  190m  94m  19m S    1  9.4   2:17.24 firefox-bin                                                    
 3364 root      15   0  602m  34m 3672 S    0  3.5  33:32.62 Xorg                                                           
19390 siim      15   0 35324  27m  10m S    0  2.7   0:13.54 gimp                                                           
18417 siim      15   0 79368  25m  17m S    0  2.6   0:01.67 gaim                                                           
 7298 tiina     16   0 79548  22m 5344 S    0  2.2   4:36.75 skype                                                          
 3702 tiina     15   0  134m  16m 7008 S    0  1.7   0:49.44 evolution                                                      
 5043 root      15   0  282m  16m 3984 S    0  1.6   1:14.49 Xorg
May it be the case that the problem lies with galeon, but this memory also shows up with X?

Thanks, Ott
 
Old 09-30-2007, 11:41 AM   #4
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
well when you show top as saying
Code:
VIRT  RES 
602m  34m
virtual memory is "virtual" as in not real.
RES = resident, as in, IS real. but still most likely shows shared memory over and over again on every program.

X just shows ever darn thing as memory. is shows all you video cards memory
as being used up and adds that to the total. it shows ever image ever viewed on your machine as used up virtual memory.

basically the answer is to just stop looking at top and thinking it has anything to do with anything.
 
Old 09-30-2007, 05:03 PM   #5
redjokerx
Member
 
Registered: Aug 2004
Location: San Diego
Distribution: Slackware
Posts: 303

Rep: Reputation: 31
I've noticed that X uses up about as much memory as Firefox. It could be that.
 
  


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
Java Linux Process memory footprint with and without -Xmx rolandofghent Linux - General 5 09-27-2007 09:08 AM
Kernel memory footprint and analysis. unreal128 Linux - General 2 09-09-2007 03:29 PM
LXer: Reduce your Linux memory footprint LXer Syndicated Linux News 0 02-03-2007 01:33 AM
small memory footprint grcunningham Linux - Software 1 05-26-2004 08:38 AM
Help!!!: TCP code size/memory usage / footprint bichettelinux Linux - Networking 3 07-13-2003 05:31 PM


All times are GMT -5. The time now is 07:14 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration