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
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
03-14-2008, 11:46 AM
#1
Member
Registered: Jun 2003
Location: Santa Barbara
Distribution: OpenSuSe 11.4
Posts: 97
Rep:
xorg memory usage
I'm not sure if Xorg is just cashing or using the memory, but check out my top output:
Code:
09:33:37 up 8 days, 25 min, 7 users, load average: 1.30, 1.39, 1.57
Tasks: 168 total, 1 running, 167 sleeping, 0 stopped, 0 zombie
Cpu(s): 4.3%us, 0.7%sy, 0.2%ni, 93.2%id, 1.5%wa, 0.1%hi, 0.0%si, 0.0%st
Mem: 2061012k total, 1935224k used, 125788k free, 10180k buffers
Swap: 2104504k total, 1174524k used, 929980k free, 436876k cached
PID %MEM VIRT SWAP RES CODE DATA SHR nFLT nDRT S PR NI %CPU COMMAND
2782 41.3 1584m 752m 831m 1792 1.4g 12m 214k 0 S 15 0 2 Xorg
3031 41.3 1584m 752m 831m 1792 1.4g 12m 0 0 S 22 0 0 Xorg
16457 7.1 393m 250m 143m 3464 89m 137m 21k 0 S 5 -10 0 vmware-vmx
21674 5.3 474m 367m 106m 12m 216m 20m 36 0 S 15 0 0 firefox-bin
20574 4.1 454m 372m 82m 12m 199m 21m 164 0 S 15 0 0 firefox-bin
20693 3.4 112m 45m 67m 96 90m 9932 35 0 S 15 0 0 npviewer.bin
4103 2.9 575m 516m 58m 13m 314m 13m 13k 0 S 15 0 0 thunderbird-bin
4050 1.6 193m 161m 32m 48 30m 5748 2879 0 S 15 0 0 kdesktop
21960 1.4 62836 33m 27m 96 38m 10m 6 0 S 15 0 4 npviewer.bin
20428 1.1 195m 173m 22m 1876 96m 7692 143 0 S 39 19 0 beagled-helper
4116 0.9 229m 211m 17m 1876 132m 2132 4421 0 S 22 7 0 beagled
4067 0.8 155m 140m 15m 48 15m 5592 2027 0 S 15 0 0 konsole
4052 0.6 209m 197m 12m 48 12m 6444 1320 0 S 15 0 0 kicker
4133 0.4 129m 121m 8236 108 3496 5576 1089 0 S 15 0 0 opensuseupdater
I've got 2Gb of RAM and another 2Gb in swap. After a couple of days, my swap is @ 1.9Gb with pretty much all memory split between the two Xorg's. Yes, computer does run VERY slow.
I'm not running anything unusual except 2 monitors:
Suse 10.3 x64 with latest updates. No XGL or any other eye candy.
C2D 1.8Ghz
Ati x1300 256Mb
2Gb ram
250Gb HD
Any suggestions welcome.
Last edited by designator; 03-14-2008 at 11:48 AM .
Reason: Adding top header
04-05-2008, 04:04 AM
#2
Senior Member
Registered: Oct 2003
Location: Australia
Posts: 4,258
Rep:
since no one else has replied I would be more concerned with beagle.
beagle loves to index..I know its not showing as a ram hogger but pls consider not using it.
2) what happens if you just reboot? I notice your has been up for awhile
04-05-2008, 02:04 PM
#3
Member
Registered: Jun 2003
Location: Santa Barbara
Distribution: OpenSuSe 11.4
Posts: 97
Original Poster
Rep:
Quote:
Originally Posted by
aus9
since no one else has replied I would be more concerned with beagle.
beagle loves to index..I know its not showing as a ram hogger but pls consider not using it.
2) what happens if you just reboot? I notice your has been up for awhile
1) Don't care about beagle, never used it in my life so I'll just uninstall it.
2) Restarting does bring memory usage down to reasonable levels for a day or two, but I hate restarting.
04-05-2008, 06:55 PM
#4
Senior Member
Registered: Oct 2003
Location: Australia
Posts: 4,258
Rep:
fair enough.... can you post your /etc/X11/ xorg.conf or XF86Free.conf pls
04-05-2008, 07:04 PM
#6
Senior Member
Registered: Oct 2003
Location: Australia
Posts: 4,258
Rep:
04-05-2008, 07:21 PM
#7
Member
Registered: Jun 2003
Location: Santa Barbara
Distribution: OpenSuSe 11.4
Posts: 97
Original Poster
Rep:
Quote:
Originally Posted by
aus9
I do have the driver installed properly. I get decent frame rates in GL screensavers and glxgears.
04-05-2008, 07:24 PM
#8
Member
Registered: Jun 2003
Location: Santa Barbara
Distribution: OpenSuSe 11.4
Posts: 97
Original Poster
Rep:
Quote:
Originally Posted by
aus9
fair enough.... can you post your /etc/X11/ xorg.conf or XF86Free.conf pls
Code:
cat /etc/X11/xorg.conf
# /.../
# SaX generated X11 config file
# Created on: 2007-10-22T14:43:42-0700.
#
# Version: 8.1
# Contact: Marcus Schaefer <sax@suse.de>, 2005
# Contact: SaX-User list <https://lists.berlios.de/mailman/listinfo/sax-users>
#
# Automatically generated by [SaX2] (8.1)
# PLEASE DO NOT EDIT THIS FILE!
#
Section "Files"
FontPath "/usr/share/fonts/misc:unscaled"
FontPath "/usr/share/fonts/local"
FontPath "/usr/share/fonts/75dpi:unscaled"
FontPath "/usr/share/fonts/100dpi:unscaled"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/URW"
FontPath "/usr/share/fonts/Speedo"
FontPath "/usr/share/fonts/PEX"
FontPath "/usr/share/fonts/cyrillic"
FontPath "/usr/share/fonts/latin2/misc:unscaled"
FontPath "/usr/share/fonts/latin2/75dpi:unscaled"
FontPath "/usr/share/fonts/latin2/100dpi:unscaled"
FontPath "/usr/share/fonts/latin2/Type1"
FontPath "/usr/share/fonts/latin7/75dpi:unscaled"
FontPath "/usr/share/fonts/baekmuk:unscaled"
FontPath "/usr/share/fonts/japanese:unscaled"
FontPath "/usr/share/fonts/kwintv"
FontPath "/usr/share/fonts/truetype"
FontPath "/usr/share/fonts/uni:unscaled"
FontPath "/usr/share/fonts/CID"
FontPath "/usr/share/fonts/ucs/misc:unscaled"
FontPath "/usr/share/fonts/ucs/75dpi:unscaled"
FontPath "/usr/share/fonts/ucs/100dpi:unscaled"
FontPath "/usr/share/fonts/hellas/misc:unscaled"
FontPath "/usr/share/fonts/hellas/75dpi:unscaled"
FontPath "/usr/share/fonts/hellas/100dpi:unscaled"
FontPath "/usr/share/fonts/hellas/Type1"
FontPath "/usr/share/fonts/misc/sgi:unscaled"
FontPath "/usr/share/fonts/xtest"
FontPath "/opt/kde3/share/fonts"
InputDevices "/dev/gpmdata"
InputDevices "/dev/input/mice"
EndSection
Section "Module"
Load "dbe"
Load "type1"
Load "freetype"
Load "extmod"
Load "glx"
Load "dri"
EndSection
Section "ServerFlags"
Option "AllowMouseOpenFail" "on"
Option "IgnoreABI" "on"
EndSection
Section "InputDevice"
Driver "kbd"
Identifier "Keyboard[0]"
Option "Protocol" "Standard"
Option "XkbLayout" "us"
Option "XkbModel" "microsoftpro"
Option "XkbRules" "xfree86"
EndSection
Section "InputDevice"
Driver "mouse"
Identifier "Mouse[1]"
Option "Buttons" "5"
Option "Device" "/dev/input/mice"
Option "Name" "Logitech M-UV69a Optical Wheel Mouse"
Option "Protocol" "explorerps/2"
Option "Vendor" "Sysp"
Option "ZAxisMapping" "4 5"
EndSection
Section "Monitor"
Option "CalcAlgorithm" "XServerPool"
DisplaySize 338 270
HorizSync 30-80
Identifier "Monitor[0]"
ModelName "1703FP (DIGITAL)"
Option "DPMS"
VendorName "DELL"
VertRefresh 56-76
UseModes "Modes[0]"
EndSection
Section "Modes"
Identifier "Modes[0]"
EndSection
Section "Device"
BoardName "Framebuffer Graphics"
BusID "1:0:0"
Driver "fglrx"
Identifier "Device[0]"
#Option "NoDDC"
Option "UseInternalAGPGART" "no"
Option "no_accel" "no"
Option "no_dri" "no"
Option "mtrr" "off"
Option "ScreenOverlap" "0"
Option "GammaCorrectionI" "0x00000000"
Option "GammaCorrectionII" "0x00000000"
Option "Capabilities" "0x00000000"
Option "CapabilitiesEx" "0x00000000"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
Option "CenterMode" "off"
Option "PseudoColorVisuals" "off"
Option "Stereo" "off"
Option "StereoSyncEnable" "1"
Option "FSAAEnable" "no"
Option "FSAAScale" "1"
Option "FSAADisableGamma" "no"
Option "FSAACustomizeMSPos" "no"
Option "FSAAMSPosX0" "0.000000"
Option "FSAAMSPosY0" "0.000000"
Option "FSAAMSPosX1" "0.000000"
Option "FSAAMSPosY1" "0.000000"
Option "FSAAMSPosX2" "0.000000"
Option "FSAAMSPosY2" "0.000000"
Option "FSAAMSPosX3" "0.000000"
Option "FSAAMSPosY3" "0.000000"
Option "FSAAMSPosX4" "0.000000"
Option "FSAAMSPosY4" "0.000000"
Option "FSAAMSPosX5" "0.000000"
Option "FSAAMSPosY5" "0.000000"
Option "UseFastTLS" "0"
Option "BlockSignalsOnLock" "on"
Option "ForceGenericCPU" "no"
Option "KernelModuleParm" "locked-userpages=0"
VendorName "VESA"
EndSection
Section "Screen"
DefaultDepth 24
SubSection "Display"
Depth 15
Modes "1280x1024" "1152x864" "1024x768" "800x600"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1152x864" "1024x768" "800x600"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1152x864" "1024x768" "800x600"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "1152x864" "1024x768" "800x600"
EndSubSection
Device "Device[0]"
Identifier "Screen[0]"
Monitor "Monitor[0]"
EndSection
Section "ServerLayout"
Identifier "Layout[all]"
InputDevice "Keyboard[0]" "CoreKeyboard"
InputDevice "Mouse[1]" "CorePointer"
Screen "Screen[0]"
EndSection
Section "DRI"
Group "video"
Mode 0660
EndSection
04-05-2008, 07:26 PM
#9
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 10,458
Have you had a look with xrestop ???.
04-05-2008, 07:41 PM
#10
Member
Registered: Jun 2003
Location: Santa Barbara
Distribution: OpenSuSe 11.4
Posts: 97
Original Poster
Rep:
Quote:
Originally Posted by
syg00
Have you had a look with xrestop ???.
Not yet because I didn't know about this package. I can't really try it right now because this is my work computer (I'm home) plus I recently restarted it so memory usage is ~300MB. I installed xrestop though and I'll reply with output on Monday after a day of work with heavy hitters like Firefox.
Thanks for suggestion.
Last edited by designator; 04-05-2008 at 07:45 PM .
Reason: fixing grammar :-)
04-05-2008, 07:52 PM
#11
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 10,458
Run it in batch (more detailed) with "-m 1" and redirect stdout to a file. Do it again after some work and compare the results.
Should give you a start anyway.
04-06-2008, 12:36 AM
#12
Senior Member
Registered: Oct 2003
Location: Australia
Posts: 4,258
Rep:
well I never knew that...looks good thanks syg00
04-08-2008, 02:04 PM
#13
Member
Registered: Jun 2003
Location: Santa Barbara
Distribution: OpenSuSe 11.4
Posts: 97
Original Poster
Rep:
Well, I uninstalled Beagle and switched Firefox from 64bit version to 32bit and after 2 days my computer usage is still climbing. Here the output of xrstop:
Code:
0 - Mozilla Firefox ( PID:29022 ):
res_base : ox3c00000
res_mask : ox1fffff
windows : 229
GCs : 92
fonts : 1
pixmaps : 1249
pictures : 28
glyphsets : 73
colormaps : 0
passive grabs : 0
cursors : 10
unknowns : 27
pixmap bytes : 29685759
other bytes : ~12040
total bytes : ~29697799
1 - KDE Desktop ( PID:18698 ):
res_base : ox1a00000
res_mask : ox1fffff
windows : 70
GCs : 87
fonts : 1
pixmaps : 187
pictures : 125
glyphsets : 2
colormaps : 0
passive grabs : 72
cursors : 4
unknowns : 33
pixmap bytes : 29143076
other bytes : ~10456
total bytes : ~29153532
2 - Konsole ( PID:18715 ):
res_base : ox2200000
res_mask : ox1fffff
windows : 57
GCs : 119
fonts : 1
pixmaps : 95
pictures : 67
glyphsets : 2
colormaps : 0
passive grabs : 0
cursors : 6
unknowns : 24
pixmap bytes : 28951347
other bytes : ~7624
total bytes : ~28958971
3 - xorg memory usage - LinuxQuestions.org - Mozilla Firefox ( PID: 1211 ):
res_base : ox2800000
res_mask : ox1fffff
windows : 289
GCs : 97
fonts : 1
pixmaps : 841
pictures : 27
glyphsets : 57
colormaps : 0
passive grabs : 0
cursors : 6
unknowns : 30
pixmap bytes : 16661255
other bytes : ~13168
total bytes : ~16674423
4 - OpenOffice.org Writer ( PID: ? ):
res_base : ox3400000
res_mask : ox1fffff
windows : 37
GCs : 95
fonts : 1
pixmaps : 342
pictures : 21
glyphsets : 6
colormaps : 0
passive grabs : 0
cursors : 6
unknowns : 15
pixmap bytes : 7975804
other bytes : ~5344
total bytes : ~7981148
5 - kicker ( PID:18700 ):
res_base : ox1c00000
res_mask : ox1fffff
windows : 200
GCs : 126
fonts : 1
pixmaps : 535
pictures : 286
glyphsets : 7
colormaps : 0
passive grabs : 16
cursors : 12
unknowns : 24
pixmap bytes : 1907994
other bytes : ~17128
total bytes : ~1925122
6 - Thunderbird ( PID:18751 ):
res_base : ox2c00000
res_mask : ox1fffff
windows : 190
GCs : 87
fonts : 1
pixmaps : 64
pictures : 22
glyphsets : 20
colormaps : 0
passive grabs : 0
cursors : 10
unknowns : 32
pixmap bytes : 662245
other bytes : ~9688
total bytes : ~671933
7 - kwin ( PID:18696 ):
res_base : ox1800000
res_mask : ox1fffff
windows : 63
GCs : 122
fonts : 1
pixmaps : 1290
pictures : 986
glyphsets : 3
colormaps : 0
passive grabs : 239
cursors : 6
unknowns : 45
pixmap bytes : 569196
other bytes : ~36160
total bytes : ~605356
8 - openSUSE Updater ( PID:18785 ):
res_base : ox2600000
res_mask : ox1fffff
windows : 98
GCs : 123
fonts : 1
pixmaps : 62
pictures : 64
glyphsets : 3
colormaps : 0
passive grabs : 0
cursors : 2
unknowns : 15
pixmap bytes : 94864
other bytes : ~8344
total bytes : ~103208
9 - KMix ( PID:18783 ):
res_base : ox2e00000
res_mask : ox1fffff
windows : 477
GCs : 9
fonts : 1
pixmaps : 60
pictures : 3
glyphsets : 2
colormaps : 0
passive grabs : 24
cursors : 1
unknowns : 57
pixmap bytes : 45850
other bytes : ~14776
total bytes : ~60626
10 - kio_uiserver ( PID:18917 ):
res_base : ox3000000
res_mask : ox1fffff
windows : 34
GCs : 102
fonts : 1
pixmaps : 31
pictures : 11
glyphsets : 2
colormaps : 0
passive grabs : 0
cursors : 6
unknowns : 6
pixmap bytes : 45062
other bytes : ~4888
total bytes : ~49950
11 - kded ( PID:18688 ):
res_base : ox1200000
res_mask : ox1fffff
windows : 11
GCs : 120
fonts : 1
pixmaps : 25
pictures : 26
glyphsets : 4
colormaps : 0
passive grabs : 56
cursors : 3
unknowns : 20
pixmap bytes : 32408
other bytes : ~6784
total bytes : ~39192
12 - klipper ( PID:18781 ):
res_base : ox2a00000
res_mask : ox1fffff
windows : 10
GCs : 5
fonts : 1
pixmaps : 21
pictures : 3
glyphsets : 0
colormaps : 0
passive grabs : 24
cursors : 4
unknowns : 12
pixmap bytes : 20650
other bytes : ~2416
total bytes : ~23066
13 - KNetStats ( PID:18714 ):
res_base : ox2000000
res_mask : ox1fffff
windows : 59
GCs : 9
fonts : 1
pixmaps : 12
pictures : 3
glyphsets : 4
colormaps : 0
passive grabs : 0
cursors : 2
unknowns : 10
pixmap bytes : 15360
other bytes : ~3112
total bytes : ~18472
14 - knotes ( PID:18713 ):
res_base : ox1e00000
res_mask : ox1fffff
windows : 10
GCs : 7
fonts : 1
pixmaps : 9
pictures : 3
glyphsets : 2
colormaps : 0
passive grabs : 32
cursors : 1
unknowns : 9
pixmap bytes : 14010
other bytes : ~2560
total bytes : ~16570
15 - ksmserver ( PID:18695 ):
res_base : ox1600000
res_mask : ox1fffff
windows : 2
GCs : 1
fonts : 1
pixmaps : 0
pictures : 0
glyphsets : 0
colormaps : 0
passive grabs : 0
cursors : 1
unknowns : 4
pixmap bytes : 0
other bytes : ~1216
total bytes : ~1216
16 - knotify ( PID:18753 ):
res_base : ox1400000
res_mask : ox1fffff
windows : 2
GCs : 1
fonts : 1
pixmaps : 0
pictures : 0
glyphsets : 0
colormaps : 0
passive grabs : 0
cursors : 1
unknowns : 4
pixmap bytes : 0
other bytes : ~1216
total bytes : ~1216
17 - <unknown> ( PID: ? ):
res_base : ox200000
res_mask : ox1fffff
windows : 0
GCs : 1
fonts : 1
pixmaps : 0
pictures : 0
glyphsets : 0
colormaps : 0
passive grabs : 0
cursors : 0
unknowns : 0
pixmap bytes : 0
other bytes : ~1048
total bytes : ~1048
18 - <unknown> ( PID: ? ):
res_base : ox3600000
res_mask : ox1fffff
windows : 1
GCs : 1
fonts : 0
pixmaps : 0
pictures : 0
glyphsets : 0
colormaps : 0
passive grabs : 0
cursors : 4
unknowns : 1
pixmap bytes : 0
other bytes : ~168
total bytes : ~168
19 - <unknown> ( PID: ? ):
res_base : ox400000
res_mask : ox1fffff
windows : 1
GCs : 0
fonts : 0
pixmaps : 1
pictures : 2
glyphsets : 0
colormaps : 0
passive grabs : 0
cursors : 0
unknowns : 2
pixmap bytes : 0
other bytes : ~120
total bytes : ~120
20 - <unknown> ( PID: ? ):
res_base : ox3200000
res_mask : ox1fffff
windows : 1
GCs : 1
fonts : 0
pixmaps : 0
pictures : 0
glyphsets : 0
colormaps : 0
passive grabs : 0
cursors : 0
unknowns : 0
pixmap bytes : 0
other bytes : ~48
total bytes : ~48
21 - xrestop ( PID: ? ):
res_base : ox2400000
res_mask : ox1fffff
windows : 1
GCs : 1
fonts : 0
pixmaps : 0
pictures : 0
glyphsets : 0
colormaps : 0
passive grabs : 0
cursors : 0
unknowns : 0
pixmap bytes : 0
other bytes : ~48
total bytes : ~48
22 - <unknown> ( PID: ? ):
res_base : ox1000000
res_mask : ox1fffff
windows : 1
GCs : 1
fonts : 0
pixmaps : 0
pictures : 0
glyphsets : 0
colormaps : 0
passive grabs : 0
cursors : 0
unknowns : 0
pixmap bytes : 0
other bytes : ~48
total bytes : ~48
23 - <unknown> ( PID: ? ):
res_base : oxe00000
res_mask : ox1fffff
windows : 1
GCs : 1
fonts : 0
pixmaps : 0
pictures : 0
glyphsets : 0
colormaps : 0
passive grabs : 0
cursors : 0
unknowns : 0
pixmap bytes : 0
other bytes : ~48
total bytes : ~48
24 - <unknown> ( PID: ? ):
res_base : oxc00000
res_mask : ox1fffff
windows : 0
GCs : 1
fonts : 0
pixmaps : 0
pictures : 0
glyphsets : 0
colormaps : 0
passive grabs : 0
cursors : 0
unknowns : 0
pixmap bytes : 0
other bytes : ~24
total bytes : ~24
25 - <unknown> ( PID: ? ):
res_base : ox800000
res_mask : ox1fffff
windows : 0
GCs : 1
fonts : 0
pixmaps : 0
pictures : 0
glyphsets : 0
colormaps : 0
passive grabs : 0
cursors : 0
unknowns : 0
pixmap bytes : 0
other bytes : ~24
total bytes : ~24
26 - <unknown> ( PID: ? ):
res_base : oxa00000
res_mask : ox1fffff
windows : 0
GCs : 0
fonts : 0
pixmaps : 0
pictures : 0
glyphsets : 0
colormaps : 0
passive grabs : 0
cursors : 0
unknowns : 0
pixmap bytes : 0
other bytes : ~0
total bytes : ~0
27 - <unknown> ( PID: ? ):
res_base : ox600000
res_mask : ox1fffff
windows : 0
GCs : 0
fonts : 0
pixmaps : 0
pictures : 0
glyphsets : 0
colormaps : 0
passive grabs : 0
cursors : 0
unknowns : 0
pixmap bytes : 0
other bytes : ~0
total bytes : ~0
04-08-2008, 03:21 PM
#14
Senior Member
Registered: Jan 2006
Posts: 4,362
Rep:
I do not know about suse but in Fedora all you have to do is log out and log back in and xorg restarts.
04-08-2008, 03:38 PM
#15
Member
Registered: Jun 2003
Location: Santa Barbara
Distribution: OpenSuSe 11.4
Posts: 97
Original Poster
Rep:
Quote:
Originally Posted by
lazlow
I do not know about suse but in Fedora all you have to do is log out and log back in and xorg restarts.
I don't really like to log out either ;-)
Last time I restarted/logged off my Vista machine at home was about 2 months ago. I expect Linux to outperform that by at least 10-15 years :-)
Thanks for suggestion though.
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 10:43 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News