From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47150 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Possible memory leak? Date: Mon, 02 Feb 2009 09:47:52 +0100 Message-ID: <4986B338.6080903@wxs.nl> References: <68bfdc900902010644t71ec3644ue02d9fd29ef73282@mail.gmail.com> <4985B9CB.6010409@wxs.nl> <68bfdc900902012035s3aee016eo34b70f94d75b112c@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233564700 17503 80.91.229.12 (2 Feb 2009 08:51:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2009 08:51:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 02 09:52:53 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LTuY0-0005AX-MB for gctc-ntg-context-518@m.gmane.org; Mon, 02 Feb 2009 09:52:52 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7BAF91FD83; Mon, 2 Feb 2009 09:51:13 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20073-03; Mon, 2 Feb 2009 09:49:57 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 567991FD12; Mon, 2 Feb 2009 09:49:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 090191FB1D for ; Mon, 2 Feb 2009 09:48:56 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22058-02 for ; Mon, 2 Feb 2009 09:48:04 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by ronja.ntg.nl (Postfix) with ESMTP id 7A8151FCAA for ; Mon, 2 Feb 2009 09:47:57 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by filter2-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n128lsuF028867 for ; Mon, 2 Feb 2009 09:47:56 +0100 Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-1 (SurgeMail 3.9e) with ESMTP id 8004-1840426 for ; Mon, 02 Feb 2009 09:47:54 +0100 User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) In-Reply-To: <68bfdc900902012035s3aee016eo34b70f94d75b112c@mail.gmail.com> X-Originating-IP: 10.100.1.100 X-Authenticated-User: hagen@controller-1 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=83.247.100.17; country=NL; region=16; city=Dronten; latitude=52.5333; longitude=5.7167; http://maps.google.com/maps?q=52.5333,5.7167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 173531937 - ed4591af02a9 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:47150 Archived-At: Yue Wang wrote: >> also, mem consumption reported is a bit of a lie because lua seems to >> allocates double of what it needed with each increment but not always use it >> >> otf fonts are already quite packed in mkiv (i'm considering adding an option >> to mtx-font to precache fonts but i'm not sure if it's worth the trouble >> >> is mem consumption less a second run? > > Yes, dramatically less. with 4 chinese fonts loaded (I use zhfonts.tex > for testing), MKIV consumes 300-400MB. on my machine running mk with a fresh cache gives the same lua mem usage as with filled cache, however a fresh run tops at 1 meg while a filled run tops ar 500 (windows vista); that document uses several cjk fonts (relatively large due to many glyphs) and script fonts (some arabic and zapfino as well as cambria math which are much larger fonts due to many features mkiv lua stats : loaded fonts - adobesongstd-light:otf arabtype:ttf c:/windows/fonts/cambria:ttc htfs:ttf htsong:ttf ko eieletters:afm lmex10:tfm lmmi10:tfm lmmib10:tfm lmmono10-regular:otf lmmonoltcond10-regular:otf lmroman10-italic:otf lmroman10-regu lar:otf lmroman12-regular:otf lmsans10-regular:otf lmsy10:tfm lmtypewriter10-regular:otf msam10:tfm msbm10:tfm palatinoltarabic-regu lar:ttf rm-lmbx10:tfm rm-lmr10:tfm rm-lmr12:tfm rm-lmr8:tfm rm-lmtt10:tfm scheherazaderegot:ttf texnansi-lt55484:afm texnansi-lt5548 5:afm texnansi-lt55488:afm texnansi-lt55507:afm zapfinoextraltpro:otf mkiv lua stats : current memory usage - 361 MB (ctx: 370 MB) (keep in mind that at some point luatex has to load the glyph shapes and pass them to the pdf file so there will always be otf/pfb loading at the end of a run) as taco mentioned, real memory usage for a fresh run is probably somewhat lower due to fragmentation ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________