From nobody Tue Jul 16 04:48:06 2024 X-Original-To: dev-commits-src-all@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 4WNRQZ6h0Jz5QyKr; Tue, 16 Jul 2024 04:48:06 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WNRQZ69bkz4g4g; Tue, 16 Jul 2024 04:48:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721105286; 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=JkBvu6u+9hC++dEp9bBmCrwBd6KY5pXGNfVhpet53VU=; b=sFHrkNY2cVVoCbgzTChAFtyEsQ0+9WJ8S8wyOXY9cN55kncpH59AcNwqHpOunjCIUigszM DAkWyQYsK/ZjzFaFBKtKA+oNZff10gFYlpmy+wEH0t+Y/wcwzQzeEwcSp9qAo2xR+SY10m wu6lElPPhZhuS3Uf9yXK4J4PwZdpvFEP7jj01h7DYRCyL6g91IxmPfaGyt2OGhca5MuVSE +5nMtAFN7MKSt/1BdhYxOgQ3w+STpW1+hL2qKKmcRyCzZgFC6fGjQZiK+cMICw/AXf30y+ 9jMsi60ijgVMIY/xfKkace1CfFaO0WDCilwz9OO1IlnVob3Bl4hnmdKA6t/Z7Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721105286; a=rsa-sha256; cv=none; b=KfcT9JkQKzvsXHdhDpDLscYkxlcdI+RXDvqCLgqhpvsCSAp2OL31PtQtGD2p8c3rIpdW9W lvbUyToywnSNpDEYgy8M3WhUrXdohTEYjglaNiH4L3yl9sEBG3W4ziHmK3vSFX1i0B4Ap0 xbLv26S7cCtH1dPNIQ7co4gXBvcmmqjQglf/FCkn315CY2tY6zUtxXJ42wTQ/3v/3nFbjj q/TIk2FZ3zMP8VTp9KkkmPbDU4nAusTY2UIS9hMyz1VbknQdL8H+V6qNHBV76niX4VF+3F OERyebuanVeaMt9CYpWTKmSNaiN6rRFK4PHu8cU6DvRowW0X0CanN/5KKVUsEQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721105286; 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=JkBvu6u+9hC++dEp9bBmCrwBd6KY5pXGNfVhpet53VU=; b=tIw7UtzLq1wyfEiSKqCMcIDNdnSwBKTkC5RzMZV4UvXG7X5+ZRbsfaSRmOacaUipJiuD0I bbdVieFnGBxgfKUnbiaVaHB55UgCsuZbxnOLVIGxUn3yIVGdL6noDidpq36571+EF5OCV4 swEqpZ+UzlIKpO8AH6dbBhlyqwZmgp6IdkVD5ByiLTbEzmnzdLBRRHU8MOhzxLdsD96HmG ZFbtCkQIVIqLSTy6i9t2Ls0p+6McOVlFcAOQ42b7Qk6zvdoRVbH8vyxcWDbPJa5o5MwYax nyVGIFfTtYoVSHvnjOqrNbJoaeNqYiVgDgXm255r9ZqI3ThPcO+pAKRk/H3aJQ== 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 4WNRQZ5mbszMcm; Tue, 16 Jul 2024 04:48:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46G4m62C006027; Tue, 16 Jul 2024 04:48:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46G4m6Cq006024; Tue, 16 Jul 2024 04:48:06 GMT (envelope-from git) Date: Tue, 16 Jul 2024 04:48:06 GMT Message-Id: <202407160448.46G4m6Cq006024@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: 9c73f38cd3ab - main - stress2: Add a new test scenario. Update the exclude list List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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: 9c73f38cd3abc21e88ec446d44a35b27ee4439ea Auto-Submitted: auto-generated The branch main has been updated by pho: URL: https://cgit.FreeBSD.org/src/commit/?id=9c73f38cd3abc21e88ec446d44a35b27ee4439ea commit 9c73f38cd3abc21e88ec446d44a35b27ee4439ea Author: Peter Holm AuthorDate: 2024-07-16 04:47:28 +0000 Commit: Peter Holm CommitDate: 2024-07-16 04:47:28 +0000 stress2: Add a new test scenario. Update the exclude list --- tools/test/stress2/misc/all.exclude | 3 ++- tools/test/stress2/misc/swapoff6.sh | 42 +++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/tools/test/stress2/misc/all.exclude b/tools/test/stress2/misc/all.exclude index 07cff21a1d9a..f8936d9efee8 100644 --- a/tools/test/stress2/misc/all.exclude +++ b/tools/test/stress2/misc/all.exclude @@ -60,6 +60,7 @@ suj36.sh https://people.freebsd.org/~pho/stress/log/log0392.txt 20221114 swapoff2.sh swap_pager_force_pagein: read from swap failed 20171223 swapoff3.sh Excessive OOM killing 20220403 swapoff5.sh log0005.txt, known issue 20210111 +swapoff6.sh https://people.freebsd.org/~pho/stress/log/log0540.txt 20240716 systrace.sh WiP 20200227 systrace2.sh WiP 20200227 syzkaller16.sh zonelimit issue 20210722 @@ -70,8 +71,8 @@ syzkaller59.sh Page fault 20220625 syzkaller65.sh panic: in_pcblookup_hash_locked: invalid local address 20230318 syzkaller66.sh panic: in_pcbconnect: inp is already connected 20230621 syzkaller67.sh panic: ASan: Invalid access, 8-byte read at ... 20230621 +quota6.sh https://people.freebsd.org/~pho/stress/log/log0456.txt 20240707 truss3.sh WiP 20200915 -unionfs19.sh https://people.freebsd.org/~pho/stress/log/log0519.txt 20240702 # Test not to run for other reasons: diff --git a/tools/test/stress2/misc/swapoff6.sh b/tools/test/stress2/misc/swapoff6.sh new file mode 100755 index 000000000000..b6ab08784f87 --- /dev/null +++ b/tools/test/stress2/misc/swapoff6.sh @@ -0,0 +1,42 @@ +#!/bin/sh + +# +# Copyright (c) 2024 Peter Holm +# +# SPDX-License-Identifier: BSD-2-Clause +# + +# A swap test scenario, using swapoff(8) and sort(1) for VM pressure + +# Out of free pages seen:://people.freebsd.org/~pho/stress/log/log0540.txt + +. ../default.cfg +[ `id -u` -ne 0 ] && echo "Must be root!" && exit 1 + +[ `swapinfo | wc -l` -eq 1 ] && exit 0 +set -u +nmax=`sysctl -n hw.ncpu` +[ $nmax -gt 4 ] && nmax=4 + +for i in `jot $nmax`; do + timeout -k 2m 1m sort /dev/zero & + sleep .`jot -r 1 1 9` +done +while [ `swapinfo | tail -1 | awk '{sub("%","");print $NF}'` -lt 2 ]; do sleep 1; done + +start=`date +%s` +while [ $((`date +%s` - start)) -lt 300 ]; do + while ! swapoff -a > /dev/null 2>&1; do sleep .1; done + swapon -a > /dev/null + ncur=`pgrep sort | wc -l` + if [ $ncur -lt $nmax ]; then + echo "Starting $((nmax - ncur)) sort" + for i in `jot $((nmax - ncur))`; do + timeout -k 2m 1m sort /dev/zero & + sleep .`jot -r 1 1 9` + done + fi +done +pkill -9 sort +wait +exit 0