From nobody Sat Sep 2 14:56:12 2023 X-Original-To: current@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 4RdHz31ZwZz4rg4y for ; Sat, 2 Sep 2023 14:56:15 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-oa1-x2a.google.com (mail-oa1-x2a.google.com [IPv6:2001:4860:4864:20::2a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RdHz24QVGz3ccJ for ; Sat, 2 Sep 2023 14:56:14 +0000 (UTC) (envelope-from mjguzik@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=Pfr2VoNs; spf=pass (mx1.freebsd.org: domain of mjguzik@gmail.com designates 2001:4860:4864:20::2a as permitted sender) smtp.mailfrom=mjguzik@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-1c4c6717e61so2137176fac.1 for ; Sat, 02 Sep 2023 07:56:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693666572; x=1694271372; darn=freebsd.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=WkyfyEj8CcYRojkmVpFdDKaa8nN52LzYVB3HLzxRKGA=; b=Pfr2VoNs/GUi4c2FyQy2Vput20nDY3TU3cpm1DiIp1FXDzlshvnkjFJV3hm9IUt2Xz jKPMII1KMEsTWu8uyjbk5PdlRHBsWVLwsT6q0tcJu0XbceAQ78gDLydw5x20LCUnWIIj AX4RyZY/HrU6szC5SmtlHUNq0c48itPSkrBTOlUUrYKugMsYGLM530nQqfmYdJM1vz7X 12658k8YvgvSYZvPL+AZ7U4/jngJ3whLv98UNpL/Wjj4tMG/apCnPa1HhazmEc3cRcC+ B9KeAZW0h6PIVTddlGIf4U92kUF0zi68pmM3X+H2M6bgeGzArejZkm63yQPcn4X/yTx8 YaUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693666572; x=1694271372; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WkyfyEj8CcYRojkmVpFdDKaa8nN52LzYVB3HLzxRKGA=; b=EESeqSG9wKBpGEEzTWk0RlPZdPScYLmUt7kF3EeutWMAsE2d054yLewX1qndnAQxDk IoB8Aog02DLe0Y8/9EXUQDgtEpnbjKcQp9btGS69P/SH8Cv9vWpoe23XXSumzOEvX1Z8 bLRkBrkQ3rTUjraS8Qf3O44telT8o+Y294alGCS22ZiAxBut4kV5yoOxfjN6H3WGMcvD XP3IGYxD1BwB0l2plfgnR++iR4bmXi5HthcdilOFbmJYBsRUzE7KGiyYRXBjJPW/U5n7 dbwipBpqwYx+/R+l5aZo7jy/ROTbgvCSwm4RyVbESs2w2IjvFiXgV7AqyArLlbhzj0EV IBAg== X-Gm-Message-State: AOJu0YwC3j1xgKXiwTXzxUTVLILXNXWIG5iyw9w79OZZIyElms9k/HGX ETkWwt7X75Ox4jAeAQJvidM//qlfoZTcOvWhyRPAgMyp X-Google-Smtp-Source: AGHT+IGaXNI2qnWqnNB1FVpdBsdxSxBmx7B+Tu8yi9plilXgmCWJbx47jJmnUur3o1n4skq2QvVx8yPt0tRF/8RRgeE= X-Received: by 2002:a05:6870:f5a3:b0:1be:d3a1:fd9 with SMTP id eh35-20020a056870f5a300b001bed3a10fd9mr6054121oab.9.1693666572578; Sat, 02 Sep 2023 07:56:12 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Received: by 2002:a8a:60c:0:b0:4f0:1250:dd51 with HTTP; Sat, 2 Sep 2023 07:56:12 -0700 (PDT) In-Reply-To: <67616bb5b074851832053a0286c3c2fa@Leidinger.net> References: <67616bb5b074851832053a0286c3c2fa@Leidinger.net> From: Mateusz Guzik Date: Sat, 2 Sep 2023 16:56:12 +0200 Message-ID: Subject: Re: 100% CPU time for sysctl command, not killable To: Alexander Leidinger Cc: current@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; R_SPF_ALLOW(-0.20)[+ip6:2001:4860:4000::/36:c]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2001:4860:4864:20::2a:from]; BLOCKLISTDE_FAIL(0.00)[2001:4860:4864:20::2a:server fail]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[current@freebsd.org]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2001:4860:4864::/48, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4RdHz24QVGz3ccJ On 8/20/23, Alexander Leidinger wrote: > Hi, > > sysctl kern.maxvnodes=1048576000 results in 100% CPU and a non-killable > sysctl program. This is somewhat unexpected... > fixed here https://cgit.freebsd.org/src/commit/?id=32988c1499f8698b41e15ed40a46d271e757bba3 employing basic profiling tooling immediately shows the issue, in this case for example: pmcstat -S inst_retired.any_p -TI > Bye, > Alexander. > > -- > http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF > http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF > > -- Mateusz Guzik