View previous topic :: View next topic |
Author |
Message |
i_caint_spell n00b
Joined: 09 Jan 2003 Posts: 19
|
Posted: Tue Apr 22, 2003 8:21 pm Post subject: should X be taking up 282 mb of memory? |
|
|
i just dont remember seeing anything taking up 300 mb of memory, prior to .. just now.
thanks |
|
Back to top |
|
|
ebrostig Bodhisattva
Joined: 20 Jul 2002 Posts: 3152 Location: Orlando, Fl
|
Posted: Tue Apr 22, 2003 10:51 pm Post subject: |
|
|
The best answer to that is: It depends.
If there is nothing else running than X and a window manager, it sounds a little excessive.
Do you have an Nvidia graphics card? If so, there was a memory leak with one of the drivers, try to search the forums to find the thread.
Erik _________________ 'Yes, Firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.' |
|
Back to top |
|
|
shm Advocate
Joined: 09 Dec 2002 Posts: 2380 Location: Atlanta, Universe
|
Posted: Tue Apr 22, 2003 11:18 pm Post subject: Re: should X be taking up 282 mb of memory? |
|
|
i_caint_spell wrote: | i just dont remember seeing anything taking up 300 mb of memory, prior to .. just now.
thanks |
How are you collecting memory usage data? |
|
Back to top |
|
|
neuron Advocate
Joined: 28 May 2002 Posts: 2371
|
Posted: Tue Apr 22, 2003 11:23 pm Post subject: |
|
|
/me 's guessing your looking at it's caching |
|
Back to top |
|
|
dice Guru
Joined: 21 Apr 2002 Posts: 577
|
Posted: Tue Apr 22, 2003 11:30 pm Post subject: |
|
|
You'll also want to ask yourself if X is actually taking up 300 megs of memory. The output that you get from something like top can be a little misleading. Consider this:
Code: | top - 17:17:11 up 4 days, 21:20, 1 user, load average: 2.04, 2.01, 1.95
Tasks: 60 total, 3 running, 57 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.2% user, 1.2% system, 98.6% nice, 0.0% idle
Mem: 1034040k total, 797420k used, 236620k free, 150760k buffers
Swap: 529160k total, 48728k used, 480432k free, 312864k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ Command
3180 root 9 0 347m 85m 20m S 0.4 8.5 68:50.09 X |
Initially it might appear that X is taking up 347 megs of memory when in actuality it's taking up 85 megs of resident memory, 20 megs of which is shared and can be used by other programs. The additional 262 megs of memory have been swapped out, it's not actually in use. Not even that entire 85 megs X is using in resident memory is strictly necessary, the kernel will dump excessive baggage into swap when the system is under pressure. For instance, I've created a program that does nothing more than take up a bunch of memory, sleep for 30 seconds, then free up the memory it allocated. After running the program and futzing around in X a bit more I get this:
Code: | top - 17:26:37 up 4 days, 21:29, 1 user, load average: 2.20, 2.09, 2.00
Tasks: 59 total, 5 running, 54 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.2% user, 0.8% system, 99.0% nice, 0.0% idle
Mem: 1034040k total, 329996k used, 704044k free, 41916k buffers
Swap: 529160k total, 156388k used, 372772k free, 69896k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ Command
3180 root 9 0 361m 21m 4640 S 0.0 2.2 69:20.49 X |
So X has been cut down to a mere 21 megs of resident memory, 4.6 megs of which is shared. |
|
Back to top |
|
|
Evangelion Veteran
Joined: 31 May 2002 Posts: 1087 Location: Helsinki, Finland
|
Posted: Wed Apr 23, 2003 7:24 am Post subject: |
|
|
The AGP-aperture size is also reported as "used" even though it's not really used at all. If your AGP-aperture is 128megs, it would seem like X is taking at least 128megs of RAM, when in reality it's not using that 128 megs at all. _________________ My tech-blog | My other blog |
|
Back to top |
|
|
jrz Apprentice
Joined: 19 Mar 2003 Posts: 272 Location: Sacramento, CA USA
|
Posted: Wed Apr 23, 2003 8:28 am Post subject: |
|
|
don't worry, your RAM is being put to good use X doesn't really take all that RAM. _________________ Press F1 for Help. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|