From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109131 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sylvain Hubert Newsgroups: gmane.comp.tex.context Subject: Re: Bug: context/mtxrun makes Firefox eat up cpu Date: Thu, 29 Oct 2020 15:18:49 +0100 Message-ID: References: <3940DC89-A350-4034-B34A-1BDE401C46D5@elvenkind.com> <8AB0A48D-9D67-4DCF-9F1C-30B8268C6D9E@elvenkind.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5260592164058140762==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22961"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 29 15:21:59 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kY8oQ-0005qh-9d for gctc-ntg-context-518@m.gmane-mx.org; Thu, 29 Oct 2020 15:21:58 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 776FA1A9BA4; Thu, 29 Oct 2020 15:19:08 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CoDTuP3z3A0W; Thu, 29 Oct 2020 15:19:06 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 862A71A9BA7; Thu, 29 Oct 2020 15:19:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DD14E1A9BA3 for ; Thu, 29 Oct 2020 15:19:04 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZPcNcouziHsw for ; Thu, 29 Oct 2020 15:19:03 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.53; helo=mail-io1-f53.google.com; envelope-from=champignoom@gmail.com; receiver= Original-Received: from mail-io1-f53.google.com (mail-io1-f53.google.com [209.85.166.53]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 765651A9B90 for ; Thu, 29 Oct 2020 15:19:02 +0100 (CET) Original-Received: by mail-io1-f53.google.com with SMTP id q25so3599332ioh.4 for ; Thu, 29 Oct 2020 07:19:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=KH/85fGW6OYPSFOkp6rLPBrQt/Wy8c7+1CCGzSSkdUw=; b=RFJJHDooifX88e3cLGvP7OSJfsUXDqq/V1LQluKnOJig6vsISEEMrx9+rae841vK/H qSkPxEqcsZw1BPDlEH1RUo53vWuR72FJhd0PJ9T/vTWU1YE4TkRzEy9OcoOVmyLhOckf 54NsaomEYk94xIf3JEXNcyBQ2pFaKTyo84EIsSyk5WmClkifc50JUA4E0+1lgtIN3KYB bhG1bjwxe0t7QZj4IoP5wLrTO7aWouyBRqg+m8mR1XCFjDQfXTLVcyFzVOIhibPVMC5r aaHkTiFz4xfrC/T+9Dq5U+MechnehLKYt41hLbhn/atCj/o1zFOLKWsOVV0khurNqIib Pokg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=KH/85fGW6OYPSFOkp6rLPBrQt/Wy8c7+1CCGzSSkdUw=; b=rRVRhpIJGxwYFlJ0ZceoXVw/D8KeEjLGqsGGH/pzegCVvWE35WPk7DayZFRvs0rolB 3qZUboRAgu35H3sus+jtErWg8+vHPOYK8GVMMwR0/X2nPWHqIfw7l6qxYOvgCXTHmbIh sApLadiwLK0n2RvdQYo7g7hw5Z20wudyXL1ciuL478XifrXCe0DlqRqNCanLD+klIiZP oTqAaKvZIYtXMPfZHc/dg+ljq3azQHSo0Uw4y6kDmvGuNEE7XRPIxIfji8xsvqmGQx/b AGooFnKB6BTeSymwyNKl88JtJOBOPpu/cpbvFwft9oRqEjmuU0P5Doa7Ooc4e0DOcCX5 enxQ== X-Gm-Message-State: AOAM530ttYxkzXpyYxi4Qcn+CW2XwvJvTpTwjV5xTB26bCfVjCB8YLol mLhWWgoSVf40p23vsfNDLio0bLFdRjeOvUC2sTPCl0TN3Ug= X-Google-Smtp-Source: ABdhPJxS6WqoC3/M8xj3XKhoNY3H1wUdqXY9c5H7OSeffvKiqCekBnAE+6hXWg08lhzN1RgMM5do9HkNNNp+z/3c5LE= X-Received: by 2002:a02:84c3:: with SMTP id f61mr3871857jai.8.1603981141242; Thu, 29 Oct 2020 07:19:01 -0700 (PDT) In-Reply-To: <8AB0A48D-9D67-4DCF-9F1C-30B8268C6D9E@elvenkind.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:109131 Archived-At: --===============5260592164058140762== Content-Type: multipart/alternative; boundary="00000000000026784705b2cff6e2" --00000000000026784705b2cff6e2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I would consider it more constructive to admit the existence of the bug and find a way look into the source code of luametatex, since `context --help` is obviously not a terribly complicated routine to investigate. On Thu, 29 Oct 2020 at 13:56, Taco Hoekwater wrote: > > > > On 29 Oct 2020, at 12:44, Sylvain Hubert wrote: > > > > I've just tried chromium which behaves a bit better but still > experiences a sudden raise of cpu usage from <10% to >70% during ~1s. > > I've also noticed that, even without any browser running, each time > after I compile a file with `context`, my terminal get stuck for ~1s. > > So I'm pretty sure this is a context bug, probably caused by unnecessar= y > excessive disk operations or something. > > But it seems to be a big problem only on your machine. What hardware are > you running on? Is it a Raspberry PI? > > Like any TeX-related program, ConTeXt does a fair bit of disk access whil= e > starting up, but I haven=E2=80=99t heard of that being an actual problem = since the > age of single-core CPUs. And it certainly should not have an effect on th= e > CPU usage of any other program (it could affect system responsiveness, > though). > > Best wishes, > Taco > > > > > > _________________________________________________________________________= __________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ > --00000000000026784705b2cff6e2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I would consider it more constructive to admit the existen= ce of the bug and find a way look into the source code of luametatex, since= `context --help` is obviously not a terribly complicated routine to invest= igate.

On Thu, 29 Oct 2020 at 13:56, Taco Hoekwater <taco@elvenkind.com> wrote:


> On 29 Oct 2020, at 12:44, Sylvain Hubert <champignoom@gmail.com> wrote:
>
> I've just tried chromium which behaves a bit better but still expe= riences a sudden raise of cpu usage from <10% to >70% during ~1s.
> I've also noticed that, even without any browser running, each tim= e after I compile a file with `context`, my terminal get stuck for ~1s.
> So I'm pretty sure this is a context bug, probably caused by unnec= essary excessive disk operations or something.

But it seems to be a big problem only on your machine. What hardware are yo= u running on? Is it a Raspberry PI?

Like any TeX-related program, ConTeXt does a fair bit of disk access while = starting up, but I haven=E2=80=99t heard of that being an actual problem si= nce the age of single-core CPUs. And it certainly should not have an effect= on the CPU usage of any other program (it could affect system responsivene= ss, though).

Best wishes,
Taco




___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--00000000000026784705b2cff6e2-- --===============5260592164058140762== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5260592164058140762==--