On Thu, 11 Jun 2009 12:03:57 +0200 RocketIII Scientist <rocketiii.scient...@gmail.com> said:
use xrestop. that reports what x apps use what x resources. you'll find e uses 1 screen sized pixmap for desktop bg and thats pretty much it. as reported already - it looks like x added a leak in mouse pointer changes. the code for animating the pointer (per frame) is: Ecore_X_Cursor cur; cur = ecore_x_cursor_new(p->win, p->pixels, p->w, p->h, p->hot.x, p->hot.y); ecore_x_window_cursor_set(p->win, cur); ecore_x_cursor_free(cur); so literally: 1. create cursor with canvas ARGB pixel data 2. set cursor to window 3. free cursor (ok - as cursor will stay around until the window is deleted due to reference counting). any previously set cursor should be freed if it was set by this as it was already freed and when replaced, will be freed. i bet x has grown a bug in this code as e is probably about the only thing that animates cursor by drawing them its own memory then creating a new cursor for the new frame. you can check the ecore_x calls as to what they do xlib-wise, but they are correct. > Hi > > Lately I've been seeing huge memory consumption by the X-server and I've > started to suspect some unexpected feature in E17... I'm building E17 from > source, almost daily using easy17.sh script. > > I write to this list because I guess people here are more capable of > saying if it is so or not. I consider myself uncapable of that. > > I'm running E17 both at home and at work (and on my Freerunner :-) ). > At work, with ATI Radeon HD 2600 XT card ("RV630 [Radeon HD 2600XT]") with > dual DVI-connected displays, using the AMD/ATI fglrx driver (latest). > > At home I have ATI Radeon HD3300 Integrated graphics on Asus M3A78-T mb > using the opensource ATI driver. > > The symptom of memory consumption is identical to both configurations and > shows up after 1-2 days of running. Restarting enlightenment does not > release any memory in X-server, instead I need to logout of X to resolve > that. Once X managed to own all memory, including virtmem (swap) so all I > could do was to recycle the PC (push the on/off button thatis). > > Below you see the output of 'top', 'xrestop' and 'xdpyinfo' with various > info. Please let me know if I can provide more info. > > // top - showing memory usage when X has been running for 2 days. > top - 09:17:47 up 9 days, 18:48, 13 users, load average: 0.17, 0.20, 0.11 > Tasks: 154 total, 1 running, 152 sleeping, 0 stopped, 1 zombie > Cpu(s): 2.0%us, 2.8%sy, 8.8%ni, 86.5%id, 0.0%wa, 0.0%hi, 0.0%si, > 0.0%st > Mem: 2060356k total, 1634216k used, 426140k free, 153080k buffers > Swap: 1108476k total, 88612k used, 1019864k free, 607680k cached > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ > COMMAND > 31639 root 20 0 932m 581m 13m S 8 28.9 49:34.87 Xorg > 31676 isiz 20 0 31516 18m 8484 S 0 0.9 11:25.53 enlightenment > ... > > > // xrestop > xrestop - Display: :0.0 > Monitoring 17 clients. XErrors: 4 > Pixmaps: 10913K total, Other: 74K total, All: 10988K > total > > res-base Wins GCs Fnts Pxms Misc Pxm mem Other Total PID > Identifier > 0800000 80 19 1 2 439 10000K 13K 10013K 31676 > Enlightenment Background > ... > > Isn't the Pxm mem value a bit large ? (I'm using E17 default background > image). > > > I found a link to a thread describing similar symptoms where they also > suggest it's E17 problem... > http://bugs.archlinux.org/task/13662 > > // xdpyinfo shows > name of display: :0.0 > version number: 11.0 > vendor string: The X.Org Foundation > vendor release number: 10600000 > X.Org version: 1.6.0 > maximum request size: 16777212 bytes > motion buffer size: 256 > bitmap unit, bit order, padding: 32, LSBFirst, 32 > image byte order: LSBFirst > number of supported pixmap formats: 7 > supported pixmap formats: > depth 1, bits_per_pixel 1, scanline_pad 32 > depth 4, bits_per_pixel 8, scanline_pad 32 > depth 8, bits_per_pixel 8, scanline_pad 32 > depth 15, bits_per_pixel 16, scanline_pad 32 > depth 16, bits_per_pixel 16, scanline_pad 32 > depth 24, bits_per_pixel 32, scanline_pad 32 > depth 32, bits_per_pixel 32, scanline_pad 32 > keycode range: minimum 8, maximum 255 > focus: window 0x1600004, revert to PointerRoot > number of extensions: 35 > AMDXVOPL > ATIFGLEXTENSION > ATIFGLRXDRI > ATITVOUT > BIG-REQUESTS > Composite > DAMAGE > DOUBLE-BUFFER > DPMS > DRI2 > GLX > Generic Event Extension > MIT-SCREEN-SAVER > MIT-SHM > RANDR > RECORD > RENDER > SECURITY > SGI-GLX > SHAPE > SYNC > X-Resource > XC-MISC > XFIXES > XFree86-DGA > XFree86-DRI > XFree86-VidModeExtension > XINERAMA > XINERAMA > XInputExtension > XKEYBOARD > XTEST > XVideo > XVideo-MotionCompensation > glesx > default screen number: 0 > number of screens: 1 > > screen #0: > dimensions: 3200x1200 pixels (821x311 millimeters) > resolution: 99x98 dots per inch > depths (7): 24, 1, 4, 8, 15, 16, 32 > root window id: 0x8c > depth of root window: 24 planes > number of colormaps: minimum 1, maximum 1 > default colormap: 0x20 > default number of colormap cells: 256 > preallocated pixels: black 0, white 16777215 > options: backing-store NO, save-unders NO > largest cursor: 64x64 > current input event mask: 0x5e0033 > KeyPressMask KeyReleaseMask > EnterWindowMask > LeaveWindowMask StructureNotifyMask > ResizeRedirectMask > SubstructureNotifyMask SubstructureRedirectMask > PropertyChangeMask > number of visuals: 81 > default visual id: 0x23 > ... > > -- > ex animo > - Ingi > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > enlightenment-users mailing list > enlightenment-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-users > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users