From nobody Sun Feb 05 15:42:16 2023 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 4P8ttf4p2tz3kSFV; Sun, 5 Feb 2023 15:42:18 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-oa1-x2b.google.com (mail-oa1-x2b.google.com [IPv6:2001:4860:4864:20::2b]) (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 4P8ttf2nx6z45fs; Sun, 5 Feb 2023 15:42:18 +0000 (UTC) (envelope-from mjguzik@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-15fe106c7c7so12471343fac.8; Sun, 05 Feb 2023 07:42:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=jVVgFTrcAGpyddjHHWnNxAel18DnsxqunAqL2DViLto=; b=BiAf71d/C0CJSthQoHOmgGeJGwi8+9AU1sc9U6BeQXbn7Desz3t3+uHgOnn501gb3U gkngGnD/u2D5mlgxKQ+0JdOvspdeLiBkIWKlr/34jJE9ehkbpNWijs3IEd/qb+J0kYDp 9neoPBvCh4MzAw9/C7mYBOaaDwYhiFA0hvQ85tZll7dyArd5n5iLAQ0n9p1l9J0VghRX 26C16DhwkqftR4JZ5eTI6uXznM/xX2J51A9sGYPY+aQhLSh5udUiI2B1TnV0DxJ46kzc Jypw5+Nbdn3Y8QPc2Z9DPbveuLb9xLdQ/FmNFhNu63DdcDuV4JH+fcakZtEL6ceMD0DL kY0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=jVVgFTrcAGpyddjHHWnNxAel18DnsxqunAqL2DViLto=; b=KsyUdkj2LllqQI7X7mb0eLH5EA+1yX7ennNlFBXrZ4E+l48M7igsy5VhmB5aP0kTrl +RUWHhEBoQUJmSRN6NYbHRNfBAQVqVvkStSSJzbc6BQwywLqAzEYTrlQ6DnAE/9Zm4/W ObygYUnWpaNwMxoELtPp/4WQCOSc7OccovyFApBb8S6fn7kcouDri+haGhRgRdL35vJS iRZkF0m1ZQflutJc0ZA19YK3IupEhp6QFYs0ZBya/rOcWoH5zq02rvJRdlQcjjsPKIXT nMCPZcvMOtMVfbCLLWK7ls4Kbcd/n+Y28zl15aMCbsEPilZ6jeOYwHMH4DXnkOmeCXn5 Skxg== X-Gm-Message-State: AO0yUKXcTeXQPEB9AguezkL/nbZ4B2FuDGeAmDKtFi+t4P8EWHDG/DXs aixyND7+l9oFZVBioD9I8JSj6fjYxduieejYnPbSxTap X-Google-Smtp-Source: AK7set9vtOHcWiDBBCy0Ii5n6WbR64P6pc2O8SANbnFH5Ss5HJuH8fXaZg6YcNWPlqTDwPYkQtKwGH+MAutJ85vWAVU= X-Received: by 2002:a05:6870:7081:b0:163:9dcc:a882 with SMTP id v1-20020a056870708100b001639dcca882mr1228071oae.159.1675611736544; Sun, 05 Feb 2023 07:42:16 -0800 (PST) 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Received: by 2002:a8a:ad6:0:b0:49c:e11d:f815 with HTTP; Sun, 5 Feb 2023 07:42:16 -0800 (PST) In-Reply-To: References: <202302041751.314HpRrn042970@gitrepo.freebsd.org> From: Mateusz Guzik Date: Sun, 5 Feb 2023 16:42:16 +0100 Message-ID: Subject: Re: git: d9d5f2c042a5 - main - cpuset: add --count To: Alexey Dokuchaev Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4P8ttf2nx6z45fs X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2001:4860:4864::/48, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On 2/5/23, Alexey Dokuchaev wrote: > On Sat, Feb 04, 2023 at 05:51:27PM +0000, Mateusz Guzik wrote: >> commit d9d5f2c042a51a9f0dd69eb1fc349efd81ffa483 >> >> cpuset: add --count >> >> Can be used to count the number of hardware threads in the cpu set. >> >> For example: [...] >> >> The intent is to replace calls to sysctl hw.ncpu and kern.smp.cpus > > Speaking of these two, do we really need both, unless they are not > exactly the same? (They do seem so, though.) > They are not, cpuset grabs a pid argument, while nproc only works on itself. -- Mateusz Guzik