From nobody Fri Jul 15 08:20:28 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LkknT08dKz4T2xx; Fri, 15 Jul 2022 08:20:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LkknS6kXhz3TX0; Fri, 15 Jul 2022 08:20:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657873228; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Qg1xZEV79L+4/835gKjzvMvN+zeIlbFKnLWiPDcjDhI=; b=F/Hg1GWCa7N0ZToN3/QQnLu8jN9IY38edeyBXv12WqZ78WbmsHae6Vtq6N5qeB+DWODq1T UuaGanmU49Tk1U0XMe21UJbtO73gHSugaxl/bbTXD7436jbsUsiVB3ZrlUK7FeKpDNy7cH TP/PeHsQJ6rwgCCx6cU7+iqS5a1PBRukyzybMJjkA9yAjH5xCAFMjBqMh/C9IruXfs57Jn U5/HOM7q/SmLOEVPs58YMvEua+XMlGvEpjQboU7YOZu/3TDVoUcCdNiJCwKZgNjYgtlYHk o5X/J/VU8VRJP9whNqbclodJ6w7GMB+TlpL/I+A8GrAF8ziWKTbJ8+yJsfONNQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LkknS5XyBzbRx; Fri, 15 Jul 2022 08:20:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 26F8KS5e070406; Fri, 15 Jul 2022 08:20:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26F8KSpN070405; Fri, 15 Jul 2022 08:20:28 GMT (envelope-from git) Date: Fri, 15 Jul 2022 08:20:28 GMT Message-Id: <202207150820.26F8KSpN070405@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Peter Holm Subject: git: ac19e54390a0 - main - stress2: Enable more swap disk usage List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pho X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ac19e54390a0ff3c273cac514f404e867e26682a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657873228; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Qg1xZEV79L+4/835gKjzvMvN+zeIlbFKnLWiPDcjDhI=; b=X1hMFiFuq+5JNqH8spXoKjwH7yNiVuyiJBd0k/0UMWRuG/BqntP+kd6lO8nz3dkP+HFaq3 6ypRlj/AorugFHeOfEg4mBZNXTPtjQo88Twlwy2WseDNsOSd84pqftwBkDSWR72qxQr5+l LqOu5G15lXK+TSxysag7Maj47bCLmGXXAuzSib08LdBFFu/hatHbKeZQ8E20u2SVzDS3kL q2wQH2f8jwc+9buKNLypDiqhuftYNb0R8yBXhl22kIuFbf7cqTDIY6sp+VBkj07HUeA1Hb m1yfPaIHi6mfnz6N3kNUH9J8qWmgS+zolW158wI1njkqImOtiLdDgQ9BgoOPdw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657873228; a=rsa-sha256; cv=none; b=BkfVlz1C9rsR1A6s4rf1AM9jvUlozst4LZXmyFDZlElGebYNOVQ+m95+Tq6u+T79J1AOY3 mpbSD5KIUbJPlU9lcxDgsADWEFh42+r5iEu/4HT+hQL+EMMU+FEQWc53kiAv4A0SsARy/s yZl12fk0aBnmImOU38rlvHGEQ8H+vGjfwrAkOpbfyMG1ckInIKbBjiYcKAtXuQzZrAqExJ oB+ksp2DidtALEl/WSdnBwu2KYiPmXk6+0kxao7CyiKgnvp0j4T/lbwae7l5w/7dzFrAPI TnuSG3tIGWfzLyHZcO/MDoRqDb+apxmiIjo2XrxP5/b9ApbaeHQH9xDLj4PzoQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pho: URL: https://cgit.FreeBSD.org/src/commit/?id=ac19e54390a0ff3c273cac514f404e867e26682a commit ac19e54390a0ff3c273cac514f404e867e26682a Author: Peter Holm AuthorDate: 2022-07-15 08:19:39 +0000 Commit: Peter Holm CommitDate: 2022-07-15 08:19:39 +0000 stress2: Enable more swap disk usage --- tools/test/stress2/misc/swap6.sh | 2 +- tools/test/stress2/testcases/swap/swap.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tools/test/stress2/misc/swap6.sh b/tools/test/stress2/misc/swap6.sh index 30a3fd8e703a..ee929ee79018 100755 --- a/tools/test/stress2/misc/swap6.sh +++ b/tools/test/stress2/misc/swap6.sh @@ -33,7 +33,7 @@ . ../default.cfg [ `sysctl -n vm.swap_total` -eq 0 ] && exit 0 -min=5 # percent swap usage +min=10 # percent swap usage (cd ../testcases/swap; ./swap -t 10m -i 100 -l 100 -h > /dev/null) & sleep 1 mx=0 diff --git a/tools/test/stress2/testcases/swap/swap.c b/tools/test/stress2/testcases/swap/swap.c index 75bfe7856aed..c54605a4b0fe 100644 --- a/tools/test/stress2/testcases/swap/swap.c +++ b/tools/test/stress2/testcases/swap/swap.c @@ -155,10 +155,8 @@ test(void) c[i] = 0; i += page; } -#if 0 - if (op->hog != 1) - usleep(1000); -#endif + if (arc4random() % 100 < 10) + usleep(10000); } free((void *)c);