Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: quartz-wm memory once again



Well, I guess I was wrong, either that or it's materially worse in 2.2.1.  So, it's been running since about 7:45 last night, and has ballooned from 2.68MB to 76.8 MB overnight, and only slept once in the meantime, making it seem much more linear than I originally thought.  

leaks run yielded the following

lazarus 255 % leaks quartz-wm                                                 ~
Process 79977: 308028 nodes malloced for 74747 KB
Process 79977: 0 leaks for 0 total leaked bytes.

The core file is on the way, but it's 768MB, I'll send a link as soon as I get it started uploading to a sharing site. 

Also, in the process of grabbing the core file I noticed that I have 19 instances of the Xquartz process running, is that normal?  More copies of Xquartz than X windows in fact. (I have two xterms open right now...)

On Wed, Apr 30, 2008 at 7:52 PM, Tom Scogland <email@hidden> wrote:
I ran leaks against it, and it only found two strings totaling 64 bytes I had to restart since so I don't have which ones in particular on hand, but that's not anywhere near enough to really matter.  Will get it anyway if I can.

It starts expanding as soon as I start the process, but it's nowhere near linear, it expands faster the longer its been running, or seems to anyway.  Since I restarted X just recently I'll set something up to pull heaps periodically and mark when the system goes to sleep so it'll be easier to watch, and once it gets back up to size I'll pull a core (may be a few days).

Thanks for the quick response.


On Wed, Apr 30, 2008 at 7:45 PM, Ben Byer <email@hidden> wrote:

On Apr 30, 2008, at 12:42 PM, Tom Scogland wrote:

Hi,
I seem to be having a similar problem to the one detailed in http://lists.apple.com/archives/x11-users/2007/nov/msg00728.html except that I've run the 10.5.2 version, 2.2.1, and 2.1.4 and all of them end up eating 300+ MB of memory after a few days.  The confounding part is, the only thing I have run under X11 in those days is xterms, plain old everyday xterms, no rdesktop or anything of the kind and it still blows up.  It seems to expand most across sleeps for some reason.  

I'm running leopard 1.5.2 on a  MBP, and currently running X11.app version 2.1.4.  Attached is the output from `heap quartz-wm` with it currently sitting at 368.85MB of ram.  If there is any assistance I can provide to make this problem go away I would be delighted to oblige.

Hmm..

Zone DefaultMallocZone_0x43000: 1027005 nodes (394483904 bytes) 

                                     CLASS_NAME  TYPE               BINARY     COUNT     BYTES       AVG
                                     ==========  ====               ======     =====     =====       ===
                                     NSCFString  ObjC       CoreFoundation    394160 121666720     308.7
                                       NSCFData  ObjC           Foundation    375724 136259904     362.7
                                   <non-object>                               130922 132499200    1012.0
                          NSConcreteMutableData  ObjC           Foundation    125254   4008128      32.0
                                     __NSCFDate  ObjC       CoreFoundation       182      2912      16.0

Those first three lines are highly suspicious.   For reference, I left quartz-wm running overnight on my iMac, and slept it a couple of times, and I have:

                                   <non-object>                                 3409    258272      75.8
                                     NSCFString  ObjC       CoreFoundation      1055     28832      27.3
                                 NSCFDictionary  ObjC           Foundation        88      5824      66.2
                                      NSCFArray  ObjC           Foundation        54      1760      32.6
                                     NSCFNumber  ObjC           Foundation        39       624      16.0

The next time you see this, can you try running "leaks quartz-wm" and see if it reports any leaks?   If not, my next suggestion would be to try running Amit Singh's gcore program (source at http://www.osxbook.com/book/bonus/chapter8/core/download/gcore-1.3.tar.gz, more info at http://www.osxbook.com/book/bonus/chapter8/core/) to take a coredump of the bloated process -- if you could then get that file to me, I should be able to see what's taking up so much space.

How soon does it start expanding?   Does it start growing linearly as soon as you start running it, or do you need to run it for a few days before it starts growing?
-b




--
-N
AKA:Tom Scogland
I am enough of an artist to draw freely upon my imagination. Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world.
-Albert Einstein



--
-N
AKA:Tom Scogland
I am enough of an artist to draw freely upon my imagination. Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world.
-Albert Einstein
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.