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: Thu, 11 Apr 2019 16:04:47 -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="24699"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 12 01:05:03 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 1hEikf-0006GS-2M for ged-emacs-devel@m.gmane.org; Fri, 12 Apr 2019 01:05:01 +0200 Original-Received: from localhost ([127.0.0.1]:56063 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEike-0000Om-3a for ged-emacs-devel@m.gmane.org; Thu, 11 Apr 2019 19:05:00 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hEikX-0000Oh-Ru for emacs-devel@gnu.org; Thu, 11 Apr 2019 19:04:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hEikW-0005Vq-CW for emacs-devel@gnu.org; Thu, 11 Apr 2019 19:04:53 -0400 Original-Received: from gateway34.websitewelcome.com ([192.185.149.105]:19027) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hEikV-0005UA-UE for emacs-devel@gnu.org; Thu, 11 Apr 2019 19:04:52 -0400 Original-Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway34.websitewelcome.com (Postfix) with ESMTP id 2AB7E6DC644 for ; Thu, 11 Apr 2019 18:04:49 -0500 (CDT) Original-Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id EikShXzsTYTGMEikShgRfj; Thu, 11 Apr 2019 18:04:49 -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=T0XgbjCAFU4VxdBxyIktO+KHICiLzUqvHzW2Yde/SIU=; b=KZZsB3gukXe0MO7zTbvs7JuA3S 6vtMMlH0qVundnCp9c3mgZ83eezVIUH/VMoSXdBE3C4tTipghrGAOMi5wZ0CbL7Mdqld7K4j9Y5Xr uEzGYRiNFBBdm3bzLQ5E8aZ4i4/CpCjUHGXX9FpRQIzrkptlqkvtHiS+dfnIiCTbWKl7PmHIdGSoU dkKPOi+3tmaKemjj4pVLkdQacOFtXVMDWLEvC+nw2nJPt/oNWrcElO851r2YAPkk0ExvEZ/kzzjnf v4BgBarut93muHkXpZqZXn9bnJ8Sf6EvvNdJ48CEdjPwIke5KDgHYVeU6e7QaXIam2KybBC9xBrWi jfRX7vDQ==; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:55510 helo=server.local) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.91) (envelope-from ) id 1hEikS-000dri-6V; Thu, 11 Apr 2019 18:04:48 -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: 1hEikS-000dri-6V X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.local) [45.48.239.195]:55510 X-Source-Auth: lawlist X-Email-Count: 1 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.149.105 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:235318 Archived-At: Thank you, Eli, for helping me to get started down the road towards diagnosing the excessive garbage collection issue that I am observing on my end. The garbage collection issue is most noticeable to the naked eye when the fake cursors feature is turned on (e.g., crosshairs) -- using a modified master branch from 04/08/2019. My naked eye does not perceive any obvious problem when holding down the right arrow-key in the stock / unmodified version of Emacs. I performed three (3) tests wherein I held the right arrow-key (right-char) depressed for a few seconds in the *GNU Emacs* welcome buffer: (progn (setq timer-list nil timer-idle-list nil) (add-hook 'post-command-hook (lambda () (message "%s" (garbage-collect))))) 1. Stock / Unmodified master branch as of 04/08/2019 (a038df77de7b1aa2d73a6478493b8838b59e4982). 2. Crosshairs turned _off_ using a modified master branch as of 04/08/2019 (a038df77de7b1aa2d73a6478493b8838b59e4982). 3. Crosshairs turned _on_ using a modified master branch as of 04/08/2019 (a038df77de7b1aa2d73a6478493b8838b59e4982). All tests were performed on the NS platform running OSX 10.6.8 with the following build options: CFLAGS='-Wall -O0 -g3' ./configure \ --with-ns \ --enable-checking='yes,glyphs' \ --enable-check-lisp-object-type \ --without-compress-install \ --without-makeinfo \ --with-gnutls=no \ --with-mailutils \ --without-makeinfo ============================ ;;; begin STOCK / UNMODIFIED ((conses 16 12248 37702) (symbols 48 1746 1) (strings 32 4063 432) (string-bytes 1 118324) (vectors 16 3486) (vector-slots 8 52564 9150) (floats 8 9 88) (intervals 56 55 25) (buffers 992 9)) ((conses 16 12249 37701) (symbols 48 1746 1) (strings 32 4063 432) (string-bytes 1 118324) (vectors 16 3486) (vector-slots 8 52564 9150) (floats 8 9 88) (intervals 56 55 25) (buffers 992 9)) ;;; end STOCK UNMODIFIED ============================ ;;; begin MODIFIED -- CROSSHAIRS "OFF" ((conses 16 4650 7834) (symbols 48 1312 1) (strings 32 595 1792) (string-bytes 1 36726) (vectors 16 3654) (vector-slots 8 52893 12656) (floats 8 32 261) (intervals 56 54 26) (buffers 1072 9)) ((conses 16 4651 7833) (symbols 48 1312 1) (strings 32 595 1792) (string-bytes 1 36726) (vectors 16 3654) (vector-slots 8 52893 12656) (floats 8 32 261) (intervals 56 54 26) (buffers 1072 9)) ;;; end MODIFIED -- CROSSHAIRS "OFF" ============================ ;;; begin MODIFIED -- CROSSHAIRS "ON" ((conses 16 5625 6858) (symbols 48 1314 0) (strings 32 597 1790) (string-bytes 1 36822) (vectors 16 3722) (vector-slots 8 53307 12242) (floats 8 233 421) (intervals 56 54 26) (buffers 1072 9)) ((conses 16 5626 6993) (symbols 48 1314 0) (strings 32 597 1790) (string-bytes 1 36822) (vectors 16 3722) (vector-slots 8 53307 12242) (floats 8 233 547) (intervals 56 54 26) (buffers 1072 9)) ;;; end MODIFIED -- CROSSHAIRS "ON" ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > Date: [04-11-2019 07:14:53] <11 Apr 2019 17:14:53 +0300> > From: Eli Zaretskii > To: Keith David Bershatsky > CC: emacs-devel@gnu.org > Subject: Re: NS port: How to debug excessive garbage collection? > > > Date: Wed, 10 Apr 2019 20:27:49 -0700 > > From: Keith David Bershatsky > > > > Q: How should I proceed to debug the excessive garbage collection issue on the NS port? > > Does that happen with the unmodified master branch, or only with your > changes? > > In any case, I think you should begin by finding out which type of > Lisp data contributes the most to the garbage, e.g. by looking at the > output of 'garbage-collect' (the function).