Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3535930pxv; Mon, 28 Jun 2021 06:53:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQzet+NWgPtFPgxCLyz8NULgbXpePd7e4uamXRPS23LrbiHZX2icVS71Y8I4aSgQhI1JJB X-Received: by 2002:a05:6602:2205:: with SMTP id n5mr13451989ion.92.1624888412769; Mon, 28 Jun 2021 06:53:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624888412; cv=none; d=google.com; s=arc-20160816; b=zTRMsr7qrwA+InaU2G/YRqywHobre1Yt2egmJz2q2IOC7xfetBkpcdtJzLKWCovMGF ECuykkpUHsFlRN+DJ0smjJ/v6H76D2zKmkg3zECLdo5sD5+iOkioaSfNSz+IoZ2syf+c qqV4ZB213vB4Q0s4O0MrFnWPiQQYHbMPD6h/Lx+kmu/mGseNUYNDkHPf56erTnRCT1QG zYsoFUuUMxqMkCHynRdXIfZuFtm3DC8MVZ4Iky6NbHm0Un9uqjGsjAtHdAm1JbYCwj/z V6926jleFV4JWMRdpBGHZH/cTuuglgtOCL340nAQx+HgeMx8S3dBGS99/h+JbI4/X3Ub mnuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=DMK9OptVb1F8pIZsdHHHz8DEy/sPMopWfS2vl5q6VgE=; b=dE5i2BcG/sx36acYHbNbAtdsBASpUVfZHJT5LO6lRlCaGQqOw+eYKDA4nwgOqTC3a+ 2My1LYHyEzCav3Ip/C/KsBAeCA5rnJgHu6tOG45ArTNwrp+WTvRowAqs/wSrNHRVy24f n6/YVXHQ9JIajOlKUzdJECPJUXZ60mRjBOabd1Z72DZ/VuL/EAYNkvWlnPgLVzmNkSWH PVVhLlMwBGazmxS31V1M33ES6ydhRixAfFH7OQyM4vLn8/g0/O/QcbRwr3PPtNxiqX1i 4qaRmM1OU8ljkxxhCSskEDr1SlgTCwuh2JyrN32neLCLYqosWEAcdU2mkn4bbBxp1Z8p pLjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PwvPbzft; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s143si13384734ios.27.2021.06.28.06.53.17; Mon, 28 Jun 2021 06:53:32 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PwvPbzft; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232357AbhF1NxR (ORCPT + 99 others); Mon, 28 Jun 2021 09:53:17 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:23777 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232358AbhF1Nwz (ORCPT ); Mon, 28 Jun 2021 09:52:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1624888229; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DMK9OptVb1F8pIZsdHHHz8DEy/sPMopWfS2vl5q6VgE=; b=PwvPbzft6Oae49uso4gpnDrsbdDhnsjKQtD/nV5FHyu8vPJ+N8iPQu6q6c9mn2sQnJZCe6 HezMJGZLbfFH/GT7lDpJ0vRfSDGm85lBQnF/ypDj9YL09ZuPd+tWxz+r/k2dI8qIuo9JD7 67+RE2RZ8cnhd6OIGVV16Px4zvlgfF8= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-255-G3-BrDdZOPqrFuHacuk23g-1; Mon, 28 Jun 2021 09:50:28 -0400 X-MC-Unique: G3-BrDdZOPqrFuHacuk23g-1 Received: by mail-qt1-f198.google.com with SMTP id b11-20020ac812cb0000b0290250bfff0028so2003354qtj.9 for ; Mon, 28 Jun 2021 06:50:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version; bh=DMK9OptVb1F8pIZsdHHHz8DEy/sPMopWfS2vl5q6VgE=; b=PbC++Hq7rJIpDISEoaL8p1rHXL8CKdRBNOtwBYKDcvshUUWTLuu9o5hnsaddrkGsBW iCRulCk3ys/Z4tdG2XBZLNolzYbfiVqOo9hRCrQha35PSIy9MmACol1FiL28NlB05TL/ iRZUHcrjISvFPCNcij5eHtaHLVa+WP029Z4JfVZNxvQ7cKJo6gmvmybhMCC/R/Bq+IFC gdkLWlModPrj/zWbAn1At5lPzhyS5BFi68PNwApFPpPvT9tUW2bC9M8tk9iIfcX46NIg FHDbwYKNt7r4Os19BLz0edQb18HBvFkKhCWpOspBPbxzb1qXfXFrjhCUiR51woJX3rzW rhMA== X-Gm-Message-State: AOAM530lANIa+sauWP5Ql9mD26ODHdrvXQ69SB5nHXwF2Ojl5Sg/2bDo KD3CGuonOUM0tRib69PZuRb55CjwGnbU1JpIBbYWjB0gmQwrwxGyVNVl0yCvVVYhNkGsz2R/0rp AD1PbSy7Hl54771iAGWxQyPuG X-Received: by 2002:a37:454a:: with SMTP id s71mr25281108qka.88.1624888227560; Mon, 28 Jun 2021 06:50:27 -0700 (PDT) X-Received: by 2002:a37:454a:: with SMTP id s71mr25281082qka.88.1624888227374; Mon, 28 Jun 2021 06:50:27 -0700 (PDT) Received: from fionn (bras-base-rdwyon0600w-grc-10-174-88-120-156.dsl.bell.ca. [174.88.120.156]) by smtp.gmail.com with ESMTPSA id u15sm10318869qku.33.2021.06.28.06.50.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Jun 2021 06:50:26 -0700 (PDT) Date: Mon, 28 Jun 2021 09:50:25 -0400 (EDT) From: John Kacur To: Daniel Wagner cc: Mike Galbraith , RT , lkml , Clark Williams , Daniel Wagner , Johnathan Schwender , Peter Xu Subject: Re: [ANNOUNCE] rt-tests-2.0 In-Reply-To: <20210628081135.l7yvya7iaygb23ye@beryllium.lan> Message-ID: References: <20210625160801.9283-1-jkacur@redhat.com> <549a4a5579068b9b1ca7741cb0f4aafbd04f4389.camel@gmx.de> <1c1966dd51ae6f8ddcd892cba485c332281fbd37.camel@gmx.de> <3d6a6c593eed6f5d59209ba2d8db29fadcc72ad7.camel@gmx.de> <20210628081135.l7yvya7iaygb23ye@beryllium.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 28 Jun 2021, Daniel Wagner wrote: > 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 > Send me a patch, and I'll have a look. The timerthread()function is sensitive anyway, so it's probably a good idea not to put that kind of thing there. Note that the the code following the /* Get Current Time */ is getting the time, but you probably want something rougher that you can call strftime on? John