From nobody Sun Dec 05 23:58:01 2021 X-Original-To: bugs@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 C38B118B8FA1 for ; Sun, 5 Dec 2021 23:58:01 +0000 (UTC) (envelope-from bugzilla-noreply@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 4J6k5j3bYBz4Sp0 for ; Sun, 5 Dec 2021 23:58:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 5824A211E3 for ; Sun, 5 Dec 2021 23:58:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1B5Nw1ZC012278 for ; Sun, 5 Dec 2021 23:58:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1B5Nw1ja012277 for bugs@FreeBSD.org; Sun, 5 Dec 2021 23:58:01 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 260245] swap/vm: Apparent memory leak: 100% swap usage Date: Sun, 05 Dec 2021 23:58:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.2-RELEASE X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: koobs@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: mfc-stable13? mfc-stable12? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter cc flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638748681; 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=NRtVjIMB81WMNPvMzg+T9o9VO1aQV6LblhgTNZILFrQ=; b=JCTBtfc1E8VXnX+nDWMHNPQ2TwXkXiPdEai8RXt/rZlAlhO1D0FXzG5YZ8EqvqX1gCeHJH 1uR528tRegToTT6Fk5K80hSuXeT+1AL+llmjY59DypR0DlW2YWM8TP6DOShvfmhWekx94z QZwWuUDAg+3EgGr6viC3A/tyr1DpkvAT6ySKmF0DZEhYBRgcSH4Et9TzEvAFv0YCGELwg/ wHAyEqYp24kjXbOCU185qwI4bJYwr76U4T3UwigimZpq7P4QT/9DiC5KbfMznc+pxhCqRq 76ZCifVqa1Mo6KOBR32LqnEljftVk6HOznYxTJvGsP8MqI9vv1ySUr/Qky9ZNg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638748681; a=rsa-sha256; cv=none; b=kqcHQpoGKrNYwR2lzl396V1MFlGHa/9qeP9W9ls4ejzzU9rKKdnDNz19LQzOXfI2fWnml2 1J3PW0aarDDXj9+UT2r4zSsyg9RbocC2SrB56yYJiSNvYlhUIv/D2G0lryrFqasbQfl5J6 H2FVaLehGm1lVQXwv4RmjRQ08WhWMlV1jMwOp1jA1LqGXgLeSc6c7poWxqzzOCRrNkBKPX KWzcpSDp25d+UJVhjqimuTHWzBJWMmWtIBB7vDMujuaD+/om8en2cEBL3twdLpzmKW1wAi JinkEnB4yerHjbzPIzMfYvXXZzcHPHfFfUHFhgf9F4UdpDCKVJRRaCqdXKwvAg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260245 Bug ID: 260245 Summary: swap/vm: Apparent memory leak: 100% swap usage Product: Base System Version: 12.2-RELEASE Hardware: Any OS: Any Status: New Keywords: needs-qa Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: koobs@FreeBSD.org CC: markj@FreeBSD.org Flags: mfc-stable13?, mfc-stable12? A system running buildbot workers for the upstream (C)Python project CI, running 12.2-RELEASE-p7 GENERIC amd64, sees swap usage increase over time (multiple runs) until 100% is consumed, at which point the following errors= are generated: Nov 23 10:10:57 122-RELEASE-p10-amd64-9e36 kernel: swap_pager_getswapspace(= 18): failed Nov 23 10:10:57 122-RELEASE-p10-amd64-9e36 kernel: swap_pager_getswapspace(= 9): failed Nov 23 10:10:57 122-RELEASE-p10-amd64-9e36 kernel: swap_pager_getswapspace(= 3): failed Nov 23 10:10:58 122-RELEASE-p10-amd64-9e36 kernel: pid 24131 (python), jid = 0, uid 1002, was killed: out of swap space Nov 23 10:11:01 122-RELEASE-p10-amd64-9e36 kernel: pid 78211 (python3.9), j= id 0, uid 1002, was killed: out of swap space Nov 23 10:11:01 122-RELEASE-p10-amd64-9e36 kernel: swap_pager_getswapspace(= 32): failed Nov 23 10:11:01 122-RELEASE-p10-amd64-9e36 syslogd: last message repeated 26 times Nov 23 10:11:01 122-RELEASE-p10-amd64-9e36 kernel: swap_pager_getswapspace(= 24): failed Nov 23 10:11:01 122-RELEASE-p10-amd64-9e36 kernel: swap_pager_getswapspace(= 32): failed Nov 23 10:11:01 122-RELEASE-p10-amd64-9e36 kernel: swap_pager_getswapspace(= 24): failed Usually, a single test run will consume 30-40% of the 8Gb swap total, and a second or third run will consume it all. The system is unable to swapoff, and no memory/vm resource utilisation chan= ges after killing processes. The issue appears not to be reproducible after updating to a stable/12 kern= el and installing in-place. Steps to reproduce: - Install 12.2-RELEASE and update to latest patch level (p7 at time of writ= ing) - Checkout CPython (main) sources and run test suite [1] Additional References: Buildbot worker build run history: https://buildbot.python.org/all/#/builders/172 (test failure output may pro= vide additional info)) [1] test command: make buildbottest TESTOPTS=3D-j4 TESTTIMEOUT=3D2100 I will follow this report up with `sysctl -a |grep vm` and `vmstat -z` outp= ut before and after issue reproduction --=20 You are receiving this mail because: You are the assignee for the bug.=