From nobody Mon Nov 13 01:04:00 2023 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 4STB5Y0T4Rz5165L for ; Mon, 13 Nov 2023 01:04: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 4STB5X4q21z3KjR for ; Mon, 13 Nov 2023 01:04:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699837440; 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=Y6Mhw3mqRgiJJg5zuVYnTeJR8GM/28eD3FwDqyxFaHg=; b=gDTfTvL7OvUAysvHRMkFlIsIg0j7fDrFxrXGOcciSDwWQ2ltz3u0m0bDGD/iTvhAuZ+vlI l2Ec3njYrs3TfnfNqD5HOmy09FKczzMXhtT1wQuhnFm+UgyA04y0WwJtB+6+7MX6UXehHI LCTH3Fli//6Dh5219sKaeNVE/wCik456d178cHd35544O5sZTDasPRntJK0D6dTMqoOOmp D6aZFSaH+gx99mojkA0Ue0NN//IbQWyk5czU+sUVY/5EO/fJGUzE3KT2zgkvs0+eBQeMfV ty4xGK+6WfYOOCERsbCGW1tFXcIVZe9n0d5FS5lGX+xQPqDLMF+di9nld8Rsbw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699837440; a=rsa-sha256; cv=none; b=Q5eIxBOqU46Ny2ldHWIBWFX7tpdnOApxg7N8VgDJlcUmZr4Fk78fKItsVBmmYDRMr1BzM3 6k50cUX+N7iLINOEkZsmP2GJMN1kZ0NdQ5XWxetiOoGnuJV8kgMFOZTfwjcwD3HVpJPjle fmLjA9rTV54muTyjoH+l9m6m4IZEspTl3uwGNbiDe5oOZDJgV4yceGzWadS4AP6Zlp4kah hwDJKeBllZCglA7WfZ9ArvSEWPFUVqhBYB6//94o30GFtg86IHuLpQA12SFoX8Gwq5SrTR +VtOzfnynbsGt+Xzxmd9kPotB3NShHVI7rkhgCHTk9RjHG/SsgPiebywaYswQw== 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 4STB5X3w8zzlk8 for ; Mon, 13 Nov 2023 01:04:00 +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 3AD140cD023369 for ; Mon, 13 Nov 2023 01:04:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3AD140Ym023368 for bugs@FreeBSD.org; Mon, 13 Nov 2023 01:04:00 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 275048] System prints "reboot: v_swappgsin" twice when rebooting Date: Mon, 13 Nov 2023 01:04:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd@kumba.dev X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275048 Bug ID: 275048 Summary: System prints "reboot: v_swappgsin" twice when rebooting Product: Base System Version: 14.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: freebsd@kumba.dev Unsure what is exactly going on here. One of my systems that's been testing the 14.0-RC releases out prints "reboot: v_swappgsin" exactly two times when the system is rebooting via manual command. No crashes, no ill effects observed. Reboot comes back up normally, too. I looked at reboot.c's source code and the specific output is a 'warnx()' c= all in function 'get_pageins', and only prints the string "v_swappgsin" when sy= sctl tunable 'vm.stats.vm.v_swappgsin' is not equal to 0: sbin/reboot/reboot.c:284: > static u_int > get_pageins(void) > { > u_int pageins; > size_t len; >=20 > len =3D sizeof(pageins); > if (sysctlbyname("vm.stats.vm.v_swappgsin", &pageins, &len, NULL,= 0) > !=3D 0) { > warnx("v_swappgsin"); > return (0); > } > return pageins; > } Actual commands and output, over SSH: > # reboot > reboot: v_swappgsin > reboot: v_swappgsin It doesn't always happen, but it started with 14.0-RC3 (at least). I never= saw this under 13.2-RELEASE. The system does run a Squid proxy, so it sees a g= ood amount of filesystem activity and I'm sure RAM is thrashed pretty good. The specific bit of code first appeared in 2001: https://cgit.freebsd.org/src/commit/sbin/reboot/reboot.c?id=3D85ae580ccbfa0= 0573031dff5c8ce078c37144523 >From my read of that, it looks like reboot is simply waiting for processes = to finish cleaning up and exiting. Squid has a built-in 30-second hold before= it will exit, but I usually shut it down manually before initiating a reboot. In any event, as far as I can tell, the function appears to be doing its jo= b.=20 But I think the 'warnx()' message could be a bit more informative as to wha= t it is doing? --=20 You are receiving this mail because: You are the assignee for the bug.=