From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Possible cache problems Date: Tue, 2 Jun 2015 19:09:21 +0200 Message-ID: <20150602170921.GF2027@chitra.no-ip.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yzpgt-00078M-17 for emacs-orgmode@gnu.org; Tue, 02 Jun 2015 13:09:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yzpgs-0006o6-3I for emacs-orgmode@gnu.org; Tue, 02 Jun 2015 13:09:26 -0400 Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:35501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yzpgr-0006nW-T3 for emacs-orgmode@gnu.org; Tue, 02 Jun 2015 13:09:26 -0400 Received: by wikd7 with SMTP id d7so20086452wik.0 for ; Tue, 02 Jun 2015 10:09:24 -0700 (PDT) Received: from chitra.no-ip.org ([2001:610:120:3001:2ad2:44ff:fe4a:b029]) by mx.google.com with ESMTPSA id ny7sm22567516wic.11.2015.06.02.10.09.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jun 2015 10:09:23 -0700 (PDT) Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs Org mode Hi, I have been noticing a strange heisenbug. From time to time, Org starts eating CPU for certain specific tasks: org-end-of-line, fill-paragraph, folding or unfolding trees, or adding/changing properties with org-set-property. However these happen only after I have been using Org for a while. I think I also see similar CPU eating symptoms when I have buffers editing version controlled files. I have auto-revert-mode enabled for files under version control, I think that is related. I'm not entirely sure though, I don't know how to narrow it down either. I say it is cache related since all this magically goes away, once I go to the top of my current tree, and call org-element-cache-reset. However, once the symptoms start showing, it happens more frequently despite my cache resets. It's very hard to reproduce this though. I see it when I have been using the same Emacs session over several days. I always run emacs as a daemon, so sessions lasting a week or more is quite common. To see the symptoms I have to wait about half a week to a whole week, hence the hard to reproduce comment. However, once the symptoms show, it gets bad rather fast. I end up restarting when the need to reset the cache gets too frequent. Any thoughts? Thanks, -- Suvayu Open source is the future. It sets us free.