From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Keith David Bershatsky Newsgroups: gmane.emacs.devel Subject: Re: NS port: How to debug excessive garbage collection? Date: Sun, 14 Apr 2019 00:41:48 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="121098"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Eli Zaretskii , Daniel Colascione , emacs-devel@gnu.org To: Alex Gramiak Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 14 09:42:17 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hFZmL-000VMA-8P for ged-emacs-devel@m.gmane.org; Sun, 14 Apr 2019 09:42:17 +0200 Original-Received: from localhost ([127.0.0.1]:60720 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFZmK-00034X-3x for ged-emacs-devel@m.gmane.org; Sun, 14 Apr 2019 03:42:16 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFZmD-00034O-Qn for emacs-devel@gnu.org; Sun, 14 Apr 2019 03:42:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hFZmB-0002Ci-Vd for emacs-devel@gnu.org; Sun, 14 Apr 2019 03:42:09 -0400 Original-Received: from gateway22.websitewelcome.com ([192.185.46.152]:20845) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hFZm8-00020H-GR for emacs-devel@gnu.org; Sun, 14 Apr 2019 03:42:06 -0400 Original-Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway22.websitewelcome.com (Postfix) with ESMTP id 9FA995961 for ; Sun, 14 Apr 2019 02:41:50 -0500 (CDT) Original-Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id FZluhKQEvYTGMFZluhSOwc; Sun, 14 Apr 2019 02:41:50 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:Cc:To:From:Message-ID:Date: Sender:Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=pZCPfje94LE3oNwLCLa70bLzL4BEPImzqP3KMFT/qKA=; b=T1xLaWdde/91afIDdCY1CUVbVZ U9hM/GdIrnwYxzz4MZOwUanqVa49/UcxelqZUydH0WVNFsRYw6nKt1ffJOa8YgZ9t4m3+eV3h1P8B BlWfL37xZwWut8R7g8FAeqaCHbqLR3/IU/GIm1vrATkQtHHU6pYFuskXON7uvN2HyMknP/HV5jI2H zwzdOWHl3jiCfSU6fYyt512zK0zCaD0yqXqn5O3OfOLl3A9YvOuwi1wGQyfsF16ytlChPIZPFG17p xbYJNdYXBaF/8EyE46BcaTICz01UdVNXsfxdTdIPQw0R9E5CZySyGtWFbAt+fyKRC7g7ggm2zYsDN BuDcrbFQ==; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:56584 helo=server.local) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.91) (envelope-from ) id 1hFZlt-002OSZ-Ko; Sun, 14 Apr 2019 02:41:49 -0500 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3053.hostgator.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-BWhitelist: no X-Source-IP: 45.48.239.195 X-Source-L: No X-Exim-ID: 1hFZlt-002OSZ-Ko X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.local) [45.48.239.195]:56584 X-Source-Auth: lawlist X-Email-Count: 3 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 192.185.46.152 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:235430 Archived-At: Thank you, Alex, for the advice regarding testing for garbage collection issues on the other two platforms (i.e., X11 and w32), and also regarding make certain edits/improvements to the existing code of multiple fake cursors. I will work on these in the next day or so. Using an unsophisticated method of commenting out various modifications that I have made over the past few years, I am working towards coming up with a minimal (or at least significantly reduced) working example to demonstrate the issue that I am observing. I will need another 1 to 2 hours with a cup of coffee after a good night sleep .... At this point, I am about 98 percent certain that the main issue traces to the function mc_helper and the cache for fake cursors that have already been laid. In a nutshell, Emacs gets bogged down by a list of 100 elements of sub-lists -- and this is true even when the sub-list is reduced to just one element (instead of fourteen); e.g.,: '((make_fixnum (1))(make_fixnum (2))(make_fixnum (3)) ... (make_fixnum (99)) Eliminating other calls to the creation of floats appears to help reduce the overhead a little, but the main problem occurs with the master cache created by mc_helper. I'll continue chiseling away tomorrow ... Keith