From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A0C3142E73 for ; Thu, 13 Jun 2024 14:26:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718288794; cv=none; b=UvivXWDNXYRbq+dVXLaKNo2aP8YiK1N7dG31Ai4U/QX19UugHg4oaXAu5Cel2qE+X+9P9t7njT8mNQ3apRlmWbOrbqQ4kUjmW3vHTb7UlsJtZoe/lIQvt35lWSYasdlRzVHWwHqpO5S24M9tO6AzNehvcH0Kw2L2iRy5ujC+MXo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718288794; c=relaxed/simple; bh=YAKczWre9HE1HJvdC5Wq+wXmNYULKJB5bQLnc2OeHxI=; h=References:From:To:Cc:Subject:Date:In-reply-to:Message-ID: MIME-Version:Content-Type; b=IPEmLeq1u4FbhCOrTLTvIkVpzpcIoKJ7wwbD+b0A9uFi54079OGonYUNzQ2mKLev273tQtT/URredE89SpEBYpK22WdvItz89fYq5OdUCWUK5BnuZ3COf0QMUXMwW8dFRV60uFFTslW3R2O/lPzmecCUtAAR2//TTdKTFe3MO64= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=xenomai.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.221.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=xenomai.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-35e1fcd0c0fso922190f8f.0 for ; Thu, 13 Jun 2024 07:26:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718288791; x=1718893591; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=roW0zROq9X57FumGcbz0tp1ZTIadAez56YexvTJp2JU=; b=JrPctUIZCvPyo+Lb74AL1MD+/y2XCZh70qZsSD9KQ1/NRGsuVW4rAsVAw150skSZn+ 9Vuf9PWFnf5G4HDab34Gq0tLmRUaHBoaGsUT1pCKOfIFWP4V9kg5CqKJQ656la4Y0t3t 61GX6AXRimbi3foSpNFoBw1zTuvx3fRuX4ytIQGCNs6YAeXh3vae8wGyFyONLhNgYren 55Y06bX6db00X/7g2m9QRm0YhXyuAEdE3uqWTaZ6AGQq5x6mLsSYmpif5queCXuKOG+W AGQ3OVfUf2LevoraNRPpIaweRzPUKBFtkB5mdJ4nTPlrR8G4nPPmu2Bn/UbYbwY6khoL NkXg== X-Gm-Message-State: AOJu0YwW/VeXOI4qPO5QS8idzqU6GGNyOkddgKgx5PTB5jo6K6zKlozQ /m08yO6QyO+UGhBFTPFNrEY8gXYd1JCc/aprCEuZsiI13DoQMMuO X-Google-Smtp-Source: AGHT+IHU1aVQrHDy9bMF/7w6nEWj/wXBJAsTc8HUHRKUUEvo+felKX1IbntHFkbMo/QKHDBJ/mR9CA== X-Received: by 2002:adf:e98e:0:b0:35f:2a53:e563 with SMTP id ffacd0b85a97d-35fdf7adae1mr3459884f8f.36.1718288791103; Thu, 13 Jun 2024 07:26:31 -0700 (PDT) Received: from pyro ([2a01:e0a:19b:3cd0:989a:5c4b:b7ff:baf]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3607509353csm1896890f8f.22.2024.06.13.07.26.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 07:26:30 -0700 (PDT) References: <20240613134557.4013044-1-tobias.schaffner@siemens.com> <20240613134557.4013044-5-tobias.schaffner@siemens.com> User-agent: mu4e 1.10.5; emacs 29.3 From: Philippe Gerum To: Tobias Schaffner Cc: xenomai@lists.linux.dev, jan.kiszka@siemens.com Subject: Re: [libevl][PATCH 4/4] evl-test: Add hectic for real-time stress Date: Thu, 13 Jun 2024 16:26:13 +0200 In-reply-to: <20240613134557.4013044-5-tobias.schaffner@siemens.com> Message-ID: <87bk44rka1.fsf@xenomai.org> Precedence: bulk X-Mailing-List: xenomai@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Tobias Schaffner writes: > The -r option allows to add realtime-stress by running hectic in the > background while running the tests. > > Signed-off-by: Tobias Schaffner > --- > utils/evl-test | 14 +++++++++++++- > 1 file changed, 13 insertions(+), 1 deletion(-) > > diff --git a/utils/evl-test b/utils/evl-test > index fb85f69..9a12d58 100644 > --- a/utils/evl-test > +++ b/utils/evl-test > @@ -12,6 +12,7 @@ full_path=false > unittests_only=false > load_cmd="dohell 900" > load_cmd_pgid_file="/tmp/evl_test_load_cmd_$$" > +rt_load_pid="" > > usage() { > cat >&2 < @@ -19,7 +20,7 @@ evl test -h > > This help text. > > -evl test [ -l "load command" ] [ -k ] [ -u ] [ --list ] [ --List ] > +evl test [ -l "load command" ] [ -k ] [ -r ] [ -u ] [ --list ] [ --List ] > > Run a basic test/benchmark of evl on your platform, by first starting a > few unit tests, then running the latency test under the load generated by > @@ -31,6 +32,10 @@ By default, the load command is "dohell 900", which will generate load during > This script accepts the -k option to tell the unit test loop to keep > going upon a failing test. Otherwise evl test stops immediately. > > +If the script is passed the -r option, real-time stress is added to the test, > +with the help of the "hectic" test. But beware: the latency test figures are > +then no longer meaningful. > + > Use -u if you want to skip the latency test and only run the unittests. > > Use --list to output all the tests available. --List will print all the tests > @@ -67,6 +72,8 @@ while :; do > shift;; > -l) load_cmd="$2" > shift 2;; > + -r) rt_load=true; > + shift;; > -u) unittests_only=true > shift;; > --list) do_list=true > @@ -113,6 +120,11 @@ if test ! -z "${load_cmd}"; then > setsid /bin/sh -c "${load_cmd} & echo \$\$ > ${load_cmd_pgid_file}" > fi > > +if test x$rt_load = xtrue; then > + hectic > /dev/null 2>&1 & hectic -s 200 is even more stressful. -- Philippe.