From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47151 Path: news.gmane.org!not-for-mail From: Yue Wang Newsgroups: gmane.comp.tex.context Subject: Re: Possible memory leak? Date: Mon, 2 Feb 2009 17:13:20 +0800 Message-ID: <68bfdc900902020113n13def902j4887b47c2f07a7c2@mail.gmail.com> References: <68bfdc900902010644t71ec3644ue02d9fd29ef73282@mail.gmail.com> <4985B9CB.6010409@wxs.nl> <68bfdc900902012035s3aee016eo34b70f94d75b112c@mail.gmail.com> <4986B338.6080903@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233609140 15165 80.91.229.12 (2 Feb 2009 21:12:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2009 21:12:20 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 02 22:13:33 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 1LU66d-0004rX-7N for gctc-ntg-context-518@m.gmane.org; Mon, 02 Feb 2009 22:13:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 155A81FC91; Mon, 2 Feb 2009 22:12:02 +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 06481-01-56; Mon, 2 Feb 2009 22:10:48 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0A9011FCCE; Mon, 2 Feb 2009 21:27:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2D1331FC1A for ; Mon, 2 Feb 2009 21:27:34 +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 06278-01-13 for ; Mon, 2 Feb 2009 21:26:36 +0100 (CET) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by ronja.ntg.nl (Postfix) with ESMTP id 1F6DA1FC91 for ; Mon, 2 Feb 2009 10:19:51 +0100 (CET) Original-Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.178]) by filter1-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n129DL5c026520 for ; Mon, 2 Feb 2009 10:16:08 +0100 Original-Received: by wa-out-1112.google.com with SMTP id j4so703838wah.2 for ; Mon, 02 Feb 2009 01:13:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=0LM66azZPeGUTLzxRA0pkBwjTswE6Ooqm4PT3X7i8SM=; b=ldoKwCAIud9GzKAe9v+PUmyEnSG8f0F+pcMjdvv7Vm+Qj3JJ/dGNbQ9t1QCyMNHIQ3 bRyn+ppusdRf6gmdDLZQ7Atu0Vfb/PMeealLEnSMWK7/2FehtntpitrnIL66dI15iiL+ GNFtTbfjwcBl9pP7VCeqXmLURGIab9IT5AYc8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Tj0rHddfJh0h9MZxvkPR8pPf0DIkLjl4z7ArvlsHgTGKtmSroJn41Zl4FlzJ22+tsK k3FosPpjdzzCx8agvR+bzX09R7fmwPBwhSdZCcoUhYhSG7yCKe2fa6q/nmjtuS6wUAfu Kji2T5x23EkK3dDzPMxuuKNx0k3nFkDZhMCtI= Original-Received: by 10.114.137.16 with SMTP id k16mr2768450wad.189.1233566000212; Mon, 02 Feb 2009 01:13:20 -0800 (PST) In-Reply-To: <4986B338.6080903@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.146.178; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 173553130 - de63633ba6af X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 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:47151 Archived-At: > 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 > depends on how you use them. \font\a=simsun at 10pt and \definetypeface blablabla [simsun] are different. > mkiv lua stats : current memory usage - 361 MB (ctx: 370 MB) You cannot depend on the memory report by mtxrun. The actual memory usage is *much* larger than the reported value. Only the one reported by the system is believable. > > (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 The memory usage without taking fragmentation into account has nothing to do with the user's experience. With 1G memory on my machine, and the best memory allocation implementation I can find (The FreeBSD operating system's memory allocation algorithm is very efficient. Firefox 3 also uses its implementation). In order to use ConTeXt with 4 chinese fonts, I should - First, quit Firefox, Gnome and X Window - Run sudo shutdown now and log into the single user mode - Run context foobar.tex, when finishing dumping the first Chinese font's font cache, press control + C, and run that again for the second font. And that's my experience. If I don't do that, the swap will be caching for several minutes, and finally the kernel stopped the luatex program since it uses too much memory. > > ----------------------------------------------------------------- > 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 > ___________________________________________________________________________________ > ___________________________________________________________________________________ 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 ___________________________________________________________________________________