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 09:51:52 +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> <87sex6ags5.fsf@localhost> <87msne3flr.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20585"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Ihor Radchenko , Eli Zaretskii , emacs-devel@gnu.org To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 21 09:52:31 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 1sKZ4Q-0005Ac-Jq for ged-emacs-devel@m.gmane-mx.org; Fri, 21 Jun 2024 09:52:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKZ3z-0005gu-PB; Fri, 21 Jun 2024 03:52:04 -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 1sKZ3t-0005gd-Ek for emacs-devel@gnu.org; Fri, 21 Jun 2024 03:51:58 -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 1sKZ3s-0005Pg-09; Fri, 21 Jun 2024 03:51:57 -0400 Original-Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-a6f176c5c10so199368166b.2; Fri, 21 Jun 2024 00:51:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718956314; x=1719561114; 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=qZPTxcQBNr7bcge+kNaOLTV+TWNTnTxXmIR3Xb5aETU=; b=MUlTA9XCgRkXzQfziSNMX9tqFXTwttTOFao2oLn0XV+hn9+ZPTGLbeRTMVMk10gf5e RW8inMSwU8JWOuTcbDal6puM1PdhQlBL9XVEJdKFaC+U/eHoS9iNBr4DZ+vUAOXuxSC1 /iinA9psHcYDgaU4vFRLlbWF7cK4g261tx65dRbB9hDIdCOrN/4asx3NKg/b2Cfq+G4/ YA+e4zXDtrefIWigXYgEQbt6arYVP0VDxNDGFbUXbrMxtT+kYCZj1WwmEqUDQHpLqKPp zwO3NDh9cd/P0li0pCi4vsPCglixOUj49+eqmaaJTjeAI9Xp+Z0zCRd7L4frPFt9sqDW XBtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718956314; x=1719561114; 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=qZPTxcQBNr7bcge+kNaOLTV+TWNTnTxXmIR3Xb5aETU=; b=OPGW59zQrnNghdheIg0gqfc3cLHloVH4rHGS7qomELNUlJxfWj3EKzegRI3uvr9k74 cY3PeH/bsnuim80WQgxv0EP2MDSVxF70mb1r53loQ0F3BFOLPiK4uBp1fhp6Q8kYlrbE t5ty/IZXQmBD+/pMdz17mnx+GFe93HH2gZONNk0nMUXsNydiWAitGgqVmOsd3/UGz2Hf TV446+FBzQVchs+D+M6HKMUsq0Cy7zxqbwJQexAfEsETJ6OCsZixEGUkEix6x3Gf14IA YmEK0yVZExHTzD71YR5P46l1SLZLvc+Pug1wu/MRBdxeAB9ETteAIE4gfsuQ7DQMZDoc 9i1Q== X-Forwarded-Encrypted: i=1; AJvYcCVUCQkK+CKNF/gbV61oLW+RBtekCrGARDFPtWxAhLRPWv3JhIIpBUnoc3MR2r8ybpTR2BxB3hyFdxqsMipmjCOKEVqaszRlnpTBFkkNSXHie4g= X-Gm-Message-State: AOJu0YwDQhpsx829qOrXd2QoF7r6zK1KLKqUKQIpEUhbm1pabP6eIGKE TX49PCvAkDmF2Ux+b26b3KFi8D7nWtBXxwgUp8BKVFH13BC0xoJ7XB3Rew== X-Google-Smtp-Source: AGHT+IH9yZYu9GzAxMporsPVJffzG3C/vUw12g/AcLdQN5f2hjojl1yYQwQVWI0D70CXlVqsgvnjfw== X-Received: by 2002:a17:906:13d8:b0:a6f:4dfc:5f31 with SMTP id a640c23a62f3a-a6fab7d0af8mr440415766b.73.1718956313665; Fri, 21 Jun 2024 00:51:53 -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-a6fcf48b1d6sm54627366b.71.2024.06.21.00.51.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jun 2024 00:51:53 -0700 (PDT) In-Reply-To: <87msne3flr.fsf@gmail.com> (Helmut Eller's message of "Fri, 21 Jun 2024 09:44:00 +0200") 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: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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:320371 Archived-At: Helmut Eller writes: > On Fri, Jun 21 2024, Ihor Radchenko wrote: > >> May you infer from the backtrace whether MPS "freezes" everything at the >> time when segfault triggers? If it does, such freezes should probably be >> recorded by the profiler and accumulated in "GC" entry in the profiler >> report, as we do it on master. Otherwise, profiler will be missing some >> data. > > There is a function mps_arena_busy, that might be useful. The doc says > that it should only be used for debugging. But the implementation > actually checks if the arena holds a lock. Yes, the SIBPROF handler could at least return early then.