From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751267AbcFVIrf (ORCPT ); Wed, 22 Jun 2016 04:47:35 -0400 Received: from www.linutronix.de ([62.245.132.108]:41729 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750799AbcFVIrd (ORCPT ); Wed, 22 Jun 2016 04:47:33 -0400 Date: Wed, 22 Jun 2016 10:44:19 +0200 (CEST) From: Thomas Gleixner To: Mike Galbraith cc: LKML , Ingo Molnar , Peter Zijlstra , "Paul E. McKenney" , Eric Dumazet , Frederic Weisbecker , Chris Mason , Arjan van de Ven , rt@linutronix.de, Rik van Riel , Linus Torvalds , George Spelvin , Len Brown , ltp@lists.linux.it Subject: Re: [patch V2 00/20] timer: Refactor the timer wheel In-Reply-To: <1466581044.3188.34.camel@gmail.com> Message-ID: References: <20160617121134.417319325@linutronix.de> <1466581044.3188.34.camel@gmail.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org B1;2802;0cOn Wed, 22 Jun 2016, Mike Galbraith wrote: > FWIW, testing with ltp, I noticed a new failure in logs. It turns out > to be intermittent, but the testcase mostly fails. You forgot to cc the LTP folks ... > rtbox:~ # /usr/local/ltp/conformance/interfaces/sigtimedwait/sigtimedwait_1-1.run-test > Test FAILED: sigtimedwait() did not return in the required time > time_elapsed: 1.197057 > ...come on, you can do it... > rtbox:~ # /usr/local/ltp/conformance/interfaces/sigtimedwait/sigtimedwait_1-1.run-test > Test PASSED > > #define ERRORMARGIN 0.1 > ... > if ((time_elapsed > SIGTIMEDWAITSEC + ERRORMARGIN) > || (time_elapsed < SIGTIMEDWAITSEC - ERRORMARGIN)) { > printf("Test FAILED: sigtimedwait() did not return in " > "the required time\n"); > printf("time_elapsed: %lf\n", time_elapsed); > return PTS_FAIL; > } > > Looks hohum to me, but gripe did arrive with patch set, so you get a note. hohum is a euphemism. That's completely bogus. The only guarantee a syscall with timers has is: timer does not fire early. Thanks, tglx