From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#10404: [PATCH] Power: sleep longer than two seconds at a time Date: Thu, 25 Feb 2016 16:50:36 +1030 Message-ID: <87povlwbt7.fsf@gnus.org> References: <834nd3kxhn.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456381340 17816 80.91.229.3 (25 Feb 2016 06:22:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Feb 2016 06:22:20 +0000 (UTC) Cc: 10404@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 25 07:22:09 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aYpJR-0001is-AX for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Feb 2016 07:22:09 +0100 Original-Received: from localhost ([::1]:40373 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYpJQ-00047f-EU for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Feb 2016 01:22:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYpJN-00047a-8l for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 01:22:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYpJK-00013X-2J for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 01:22:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYpJJ-00013T-VO for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 01:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aYpJJ-0000bl-Oo for bug-gnu-emacs@gnu.org; Thu, 25 Feb 2016 01:22:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Feb 2016 06:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10404 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 10404-submit@debbugs.gnu.org id=B10404.14563812672278 (code B ref 10404); Thu, 25 Feb 2016 06:22:01 +0000 Original-Received: (at 10404) by debbugs.gnu.org; 25 Feb 2016 06:21:07 +0000 Original-Received: from localhost ([127.0.0.1]:44600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYpIR-0000ag-2h for submit@debbugs.gnu.org; Thu, 25 Feb 2016 01:21:07 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:58571) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYpIP-0000aW-Gf for 10404@debbugs.gnu.org; Thu, 25 Feb 2016 01:21:05 -0500 Original-Received: from [175.103.25.178] (helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aYpI1-0004Vn-Ia; Thu, 25 Feb 2016 07:20:42 +0100 In-Reply-To: (Glenn Morris's message of "Sat, 20 Jul 2013 15:46:52 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aYpI1-0004Vn-Ia MailScanner-NULL-Check: 1456986042.52473@cPNabrzV5t4gjJKi/2d2XQ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113779 Archived-At: Glenn Morris writes: > Comments from Jan in > http://lists.gnu.org/archive/html/emacs-devel/2013-07/msg00540.html > > I don't know, I haven't seen this 2 second polling that is mentioned > (with strace/dtruss). When the cursor stops blinking, there is a 30 > second timeout, and after that a very long timeout (thousands of > seconds, I don't have the exact value). But on the other hand, I was > not running Lisp at the time. > > I don't know where that leaves this patch. > (See also comments in http://debbugs.gnu.org/10404#11 ) If I start "emacs -Q" and strace it, I see basically the following every couple of seconds. [pid 8439] --- SIGIO {si_signo=SIGIO, si_code=SI_KERNEL} --- [pid 8439] rt_sigreturn() = 1 [pid 8439] recvmsg(9, {msg_name(0)=NULL, msg_iov(1)=[{"\241 \33\f\263\0\340\3!\1\0\0.\1\0\0000\5\0\0\263\0\340\3\0\0\0\0\0\0\0\0", 4096}], msg_controllen=0, msg_flags=0}, 0) = 32 [pid 8439] recvmsg(9, 0x7ffda37f3120, 0) = -1 EAGAIN (Resource temporarily unavailable) [pid 8439] poll([{fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=13, events=POLLIN}], 4, 0) = 0 (Timeout) [pid 8439] poll([{fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=13, events=POLLIN}], 4, 0) = 0 (Timeout) [pid 8439] poll([{fd=9, events=POLLIN|POLLOUT}], 1, 4294967295) = 1 ([{fd=9, revents=POLLOUT}]) [pid 8439] writev(9, [{"\31\0\v\0\366\0\0\0\0\0\30\0! \0\0\366\0\0\0!\1\0\0.\1\0\0000\5\0\0"..., 44}, {NULL, 0}, {"", 0}], 3) = 44 [pid 8439] recvmsg(9, 0x7ffda37f2ff0, 0) = -1 EAGAIN (Resource temporarily unavailable) [pid 8439] recvmsg(9, 0x7ffda37f3120, 0) = -1 EAGAIN (Resource temporarily unavailable) [pid 8439] poll([{fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=13, events=POLLIN}], 4, 0) = 0 (Timeout) [pid 8439] recvmsg(9, 0x7ffda37f3340, 0) = -1 EAGAIN (Resource temporarily unavailable) [pid 8439] poll([{fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=13, events=POLLIN}], 4, 0) = 0 (Timeout) [pid 8439] pselect6(14, [6 8 9 13], [], NULL, {100000, 0}, {NULL, 8}) = 1 (in [9], left {99998, 551877999}) So something is polling and stuff on Linux, at least... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no