Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3302270pxv; Mon, 28 Jun 2021 01:14:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpovqMcH0Neq7jR1nbu/tj/mZ8llAkSC/z/1I1OMXD8AD6IwVAOIZDGOsrY9/rewQ1NGqI X-Received: by 2002:a5d:88c4:: with SMTP id i4mr20390729iol.210.1624868047455; Mon, 28 Jun 2021 01:14:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624868047; cv=none; d=google.com; s=arc-20160816; b=ylhJ8vGgc+I3Ost2LIXaAI/JM+f11/VOes8CLmT+K1W7r1XZt8Fc2rKyjk4/N4Zot6 mZqwCy0NGl9xQ00KPyieQP6UCNYabvsaDLR3LOIvoPmXN6F1fOlH3jKcIexKoP7DrC8w 1z934oplgzWc0HMbeu3nuVRbuFqiyv0/aOsaVG+JrEXf6jfUNE56BHO4JCV5NI2pdb2E Z+Vh4jOxrlbk7spTZ4gx9tdrX0GXLq1CzodYvxdaa1NThk6GdPSgVWjTFPWy+wzPpRgP U3Cb/gGM00BQJgHO2BPUOo8OYk9Cg6ybVkFAEIPe96cZzTFj2piTF6R3DpSAxDSSvSQY XC9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=QdIt14BRdObysLWfyiFJSEaESt6XVGGREsI7FbXQnlI=; b=Q43em8XKOkGjAzN6Hk3RGM3ytQWNRIObSnv5WpmNBWZdW465hbM0QLtYUwZEsjq0M6 8735Ujzo6Ijo7p3uFRBsHu8LxyKlfmEQPAfce4S7JPEwFJk4C1/AUTQu/AhArKbBKLnu TEq12Mm0qwcfv29VzQ6EC521FRpTXZpy36xiO3gN3n6AeiraVvTN/oHAsoK0JHn6m38h Ff1EchVTyUoD2IBmn6ZfhENSAs9114GGIqVOBkHz4B47vD7eYnG3IqFRCUaIUiahlWXT /SDOiIHufobUNsQu6bDroKLPUHW2HqIY+VnFt/oT8ki35QC5Sh474/KWUvj6gxDp5VHp 8EGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=monom.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t15si16552636jai.117.2021.06.28.01.13.55; Mon, 28 Jun 2021 01:14:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=monom.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232351AbhF1IOR (ORCPT + 99 others); Mon, 28 Jun 2021 04:14:17 -0400 Received: from mail.monom.org ([188.138.9.77]:37530 "EHLO mail.monom.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230294AbhF1IOD (ORCPT ); Mon, 28 Jun 2021 04:14:03 -0400 Received: from mail.monom.org (localhost [127.0.0.1]) by filter.mynetwork.local (Postfix) with ESMTP id 00FBD50051C; Mon, 28 Jun 2021 10:11:36 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.monom.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (unknown [94.31.100.41]) by mail.monom.org (Postfix) with ESMTPSA id BBC2A500143; Mon, 28 Jun 2021 10:11:35 +0200 (CEST) Date: Mon, 28 Jun 2021 10:11:35 +0200 From: Daniel Wagner To: Mike Galbraith Cc: John Kacur , RT , lkml , Clark Williams , Daniel Wagner , Johnathan Schwender , Peter Xu Subject: Re: [ANNOUNCE] rt-tests-2.0 Message-ID: <20210628081135.l7yvya7iaygb23ye@beryllium.lan> References: <20210625160801.9283-1-jkacur@redhat.com> <549a4a5579068b9b1ca7741cb0f4aafbd04f4389.camel@gmx.de> <1c1966dd51ae6f8ddcd892cba485c332281fbd37.camel@gmx.de> <3d6a6c593eed6f5d59209ba2d8db29fadcc72ad7.camel@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3d6a6c593eed6f5d59209ba2d8db29fadcc72ad7.camel@gmx.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mike, On Sat, Jun 26, 2021 at 02:45:27PM +0200, Mike Galbraith wrote: > On Sat, 2021-06-26 at 13:47 +0200, Mike Galbraith wrote: > > On Sat, 2021-06-26 at 08:55 +0200, Mike Galbraith wrote: > > > On Fri, 2021-06-25 at 12:08 -0400, John Kacur wrote: > > > > I'm pleased to announce rt-tests-2.0 > > > > > > Greetings, > > > > > > cyclictest seems to have grown an mlock related regression. > > > > Ok, chores done, I did a quick bisect/confirm. I didn't go stare > > at rt_test_start() to ponder what the mlockall connection may be. > > Moving the call above "Get current time" stops it mucking things up. Thanks a lot for your excellent report. rt_test_start does static char ts_start[MAX_TS_SIZE]; static void get_timestamp(char *tsbuf) { struct timeval tv; struct tm *tm; time_t t; gettimeofday(&tv, NULL); t = tv.tv_sec; tm = localtime(&t); /* RFC 2822-compliant date format */ strftime(tsbuf, MAX_TS_SIZE, "%a, %d %b %Y %T %z", tm); } void rt_test_start(void) { get_timestamp(ts_start); } I'd say the tsbuf access is the one which triggers a pagefault. John, I would suggest to move the rt_test_start() into rt_init() and take the timestamp at the execution start (as my initial version was). I think the additional pain in slightly more correct start timestamp (which is also not defined what it actually means in this context) is just not worth the effort. Thanks, Daniel