From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2175 Path: news.gmane.org!not-for-mail From: Vallo Kallaste Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: s6-log taking 100% CPU Date: Thu, 13 Dec 2012 16:36:54 +0200 Message-ID: <20121213143654.GB16171@hape.internal> References: <20121213141924.GA16171@hape.internal> Reply-To: kalts@estpak.ee NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1355409414 29588 80.91.229.3 (13 Dec 2012 14:36:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Dec 2012 14:36:54 +0000 (UTC) Cc: supervision@list.skarnet.org To: Vallo Kallaste Original-X-From: supervision-return-2409-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Dec 13 15:37:08 2012 Return-path: Envelope-to: gcsg-supervision@plane.gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Tj9uO-00043a-1W for gcsg-supervision@plane.gmane.org; Thu, 13 Dec 2012 15:37:08 +0100 Original-Received: (qmail 27348 invoked by uid 76); 13 Dec 2012 13:33:55 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 27340 invoked from network); 13 Dec 2012 13:33:55 -0000 Content-Disposition: inline In-Reply-To: <20121213141924.GA16171@hape.internal> User-Agent: Mutt/1.5.20 (2009-06-14) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2175 Archived-At: On Thu, Dec 13, 2012 at 04:19:25PM +0200, Vallo Kallaste wrote: > I have noticed that s6-log enters busyloop after failing to rotate > the log. Some data: > > * I don't have strace output at hand, but from memory it was > infinite stream of identical poll() related lines. I have reproduced it and here's the strace output: poll([{fd=0, events=0}, {fd=5, events=POLLIN|POLLHUP}, {fd=4, events=POLLOUT}], 3, -1) = 1 ([{fd=4, revents=POLLOUT}]) poll([{fd=0, events=0}, {fd=5, events=POLLIN|POLLHUP}, {fd=4, events=POLLOUT}], 3, -1) = 1 ([{fd=4, revents=POLLOUT}]) poll([{fd=0, events=0}, {fd=5, events=POLLIN|POLLHUP}, {fd=4, events=POLLOUT}], 3, -1) = 1 ([{fd=4, revents=POLLOUT}]) poll([{fd=0, events=0}, {fd=5, events=POLLIN|POLLHUP}, {fd=4, events=POLLOUT}], 3, -1) = 1 ([{fd=4, revents=POLLOUT}]) poll([{fd=0, events=0}, {fd=5, events=POLLIN|POLLHUP}, {fd=4, events=POLLOUT}], 3, -1) = 1 ([{fd=4, revents=POLLOUT}]) poll([{fd=0, events=0}, {fd=5, events=POLLIN|POLLHUP}, {fd=4, events=POLLOUT}], 3, -1) = 1 ([{fd=4, revents=POLLOUT}]) poll([{fd=0, events=0}, {fd=5, events=POLLIN|POLLHUP}, {fd=4, events=POLLOUT}], 3, -1) = 1 ([{fd=4, revents=POLLOUT}]) poll([{fd=0, events=0}, {fd=5, events=POLLIN|POLLHUP}, {fd=4, events=POLLOUT}], 3, -1) = 1 ([{fd=4, revents=POLLOUT}]) poll([{fd=0, events=0}, {fd=5, events=POLLIN|POLLHUP}, {fd=4, events=POLLOUT}], 3, -1) = 1 ([{fd=4, revents=POLLOUT}]) poll([{fd=0, events=0}, {fd=5, events=POLLIN|POLLHUP}, {fd=4, events=POLLOUT}], 3, -1) = 1 ([{fd=4, revents=POLLOUT}]) ... ad infinitum BR, -- Vallo