From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: MPS: profiler Date: Fri, 21 Jun 2024 13:33:27 +0200 Message-ID: References: <87v823xvq1.fsf@localhost> <86cyobmmhc.fsf@gnu.org> <87r0crxung.fsf@localhost> <87le2zxsqx.fsf@localhost> <8634p6n7jd.fsf@gnu.org> <87tthm3gq2.fsf@gmail.com> <87msneag5u.fsf@localhost> <86r0cqlgvi.fsf@gnu.org> <87ed8qpnqv.fsf@localhost> <86jziilfzh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9244"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Ihor Radchenko , eller.helmut@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 21 13:34:11 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sKcWx-00029y-AT for ged-emacs-devel@m.gmane-mx.org; Fri, 21 Jun 2024 13:34:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKcWM-00027L-Sd; Fri, 21 Jun 2024 07:33:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sKcWL-000274-D5 for emacs-devel@gnu.org; Fri, 21 Jun 2024 07:33:33 -0400 Original-Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sKcWJ-0005eT-Tz; Fri, 21 Jun 2024 07:33:33 -0400 Original-Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-a6f11a2d18aso212329166b.2; Fri, 21 Jun 2024 04:33:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718969609; x=1719574409; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=MwpjA/ge1R5kjHYgzZj1A21YV4iZdBIWSCb0CdfnwOg=; b=Yduj+JbIdVSRBx2/eaD9JmuGbBE+vq0FnlqyPaSZaUNGYhX5GLx1Wz/8tMq8M8YMIV Dd517E6bj+0DdXx+8K9JEx7/N2SJkBmLI0QfvRawY/qumGCZ3MjcrVWf5gDXP6PBhEWb PhxVL6t/tResTUPbgEnalHJqHLzD+M0lCWUdFchNK9G8Y1kN5Z4rksnua0vpV7exBI8w 8aEkIuWZVfYBuEEs6H/Hztpr+hL7qQCZmoGCLxKcOMLQxMOrHOBMeGv76UUF8i+zHg65 lsu8ssB5U/mK2LDN7yDtxhRehqS7Y/2I04gpcqGm4lLDW+0wrmENjPLNVO3HaicWygvk Pyag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718969609; x=1719574409; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=MwpjA/ge1R5kjHYgzZj1A21YV4iZdBIWSCb0CdfnwOg=; b=VlzFsaDzw1xvF+ralAcb1uNoZpzLgM9DkrOjv8oNN4uuaP5t5lPhNNHNqbeq+9MI23 whOWGRwd5uD93w/LQMEfyRWzVwXJBRmsHJXW7cOpf9duUhWnC8qLFUBcvW6iTjVzaA/C iPYzPJ+dZ6QBMDU0B8eLlSzEvRBPvPJGpEuZBh0jTgx16JGO49V7ZjzcAtbh4K3XWwzx J7TGH30qaKgPP6Ro3cpZ3Eet8O8wE33NW7Oz0GcCBucZ+MJ7FZWuYxmPzBOxKtB9FrMI +u6wCjETa99OjYsa36uv34oPdVkovO+TB6z4nS5gbsu9GlbPB19ZZ1m3ZHooydC661I7 iPvg== X-Forwarded-Encrypted: i=1; AJvYcCUzNXDR11TdhfyutIe017uDaw5R6x15lxjLP9tkS4u1EqUO6TMqf+UPo+t4ioSEEB0PFyONOMqVa1wpROlX3ITWtzoR X-Gm-Message-State: AOJu0YzPWXkVoCSNYAH4ep2kj/L8Zy3vMiJCXiaoo3sljLeep1Us4Ffv 4sPgrfFYshWJZo7LO4QRMRnvwauL28dncq5o3MWrWOF9rmgNu+pSi8POww== X-Google-Smtp-Source: AGHT+IG0shWhbQS0wL4v+mc46v1coqjB4WsmfcWSqjfTctZeR4nMeTPnoDCdsL+K8r5vEJgFrnNnGg== X-Received: by 2002:a17:907:a707:b0:a6f:b08b:86cb with SMTP id a640c23a62f3a-a6fb08b8da5mr390731766b.56.1718969609169; Fri, 21 Jun 2024 04:33:29 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a72a.dip0.t-ipconnect.de. [79.227.167.42]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6fcf48b287sm74424566b.69.2024.06.21.04.33.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jun 2024 04:33:28 -0700 (PDT) In-Reply-To: <86jziilfzh.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 21 Jun 2024 13:58:26 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::634; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x634.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:320393 Archived-At: Eli Zaretskii writes: >> From: Ihor Radchenko >> Cc: gerd.moellmann@gmail.com, eller.helmut@gmail.com, emacs-devel@gnu.org >> Date: Fri, 21 Jun 2024 10:57:12 +0000 >> >> Eli Zaretskii writes: >> >> >> Profiler might be running for a long time. If I understand correctly, >> >> parking anything for a long time risks that "anything" to be not >> >> garbage-collected at all. >> > >> > ... >> > Or maybe I misunderstood you suggestion (or that of Gerd): to me, >> > "while profileing" means just while the profiler's SIGPROF handler >> > runs, nut the whole time profiler is active. >> >> My understanding that the suggested parking was for the time profiler is >> active in Emacs (that is: between M-x profiler-start and M-x >> profiler-stop). > > That's unreasonable and impractical. Gerd, was this what you > suggested? Yes, that's what I meant :-). That woulld be safe, at least. >> Unless I miss something, SIGPROF handler cannot touch the arena to park >> it or it will lead to problems exactly like the one I encountered. > > That depends on what you mean by "park the arena". mps_arena_park, mps_arena_clamp.