From nobody Thu Feb 16 18:19:44 2023 X-Original-To: dev-commits-src-main@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 4PHjsG5kTSz3rGw9; Thu, 16 Feb 2023 18:19:46 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) (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 4PHjsG3bQHz4Mg2; Thu, 16 Feb 2023 18:19:46 +0000 (UTC) (envelope-from mjguzik@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-oi1-x232.google.com with SMTP id cz14so2502720oib.12; Thu, 16 Feb 2023 10:19:46 -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=yAcFh9e221DXzKjyGFEb0RaR72E7gEMT51OAT9JHMTs=; b=E/u8mrMMrOQ5QRMB0LuChYf9gS8pzlg9kHqdCN7ghTPvNAbl3r1J4glmAnKb54X92q JCt4b1SyioVbKHw+uWWOsk1BUnSxfXPS14jVZDmdQanFNFc2BfNRonAZ2CZ7PyG+Am2F tfRApoPJ23wjiIXk3ZR1ln/YyRRy2VwvtPBTJNQOfdPG2PoqRqKwcBrdCUx5hmdcH/Rz c7Zm2uzmsIvhIWp0LVoyaKk4DCqZbSXJhg84HcJI1Hg/DtailWTxEdi8YzLROX7CpivE u8y6sX3r+YQpCyilZbwIVYl3irZ/36PqXVpfRdhC0wH2amBtixtaevcDKvP0IS2E6tU1 H7jQ== 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=yAcFh9e221DXzKjyGFEb0RaR72E7gEMT51OAT9JHMTs=; b=c+daRH9WcwpOQ4x1tniYbiGd2nlJS8R8Si6/E1FPcOJDCl9xHcj/viJjw09nPu4aKp 8PlIGUY+JTKzHmv2Efly88FcJmKkfpqDJIzKnzl04k508K+/HN0C1hHr6yDkoreZ0m1z D9tnRjH4+HNBMjit38nHn4IFdIzuoX5T7gcqs4DpFC81psjE2jFhPz78uRbSnC71p/tQ davU3eF1QU1j6v61M/A3AFiAKdV4HX8e4AuA4UExb2SRSadnBPfyU1XsDaSzlPc1jpxQ R3lDq3FYOVYEjPS333gyZ685AjcTLfQZOvXS2I3ZRdF889/svGfyBBkXPAJDx+mMMQPz wcfw== X-Gm-Message-State: AO0yUKUuceS7CYu3wox2ri4U/pXK1Rm8bDSXXskCRQelpcClZRm+shPQ BlnfBVHfaukWelHSRDJGiW8ZSmsCPQBJi43szHgpNaNe X-Google-Smtp-Source: AK7set/2s/5kOUVHJeoILWlv5m1rJbG/AYepopYihEx1if1YK+hIrXQWxtkBRX8V4chI3t2oJN1F5eRaTLF2QFTTv9g= X-Received: by 2002:a05:6808:2195:b0:378:348b:9346 with SMTP id be21-20020a056808219500b00378348b9346mr197261oib.81.1676571584911; Thu, 16 Feb 2023 10:19:44 -0800 (PST) List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Received: by 2002:ac9:4381:0:b0:4b9:9c2d:ce62 with HTTP; Thu, 16 Feb 2023 10:19:44 -0800 (PST) In-Reply-To: References: <202302041751.314HpRrn042970@gitrepo.freebsd.org> From: Mateusz Guzik Date: Thu, 16 Feb 2023 19:19:44 +0100 Message-ID: Subject: Re: git: d9d5f2c042a5 - main - cpuset: add --count To: Jan Beich 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: 4PHjsG3bQHz4Mg2 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On 2/16/23, Jan Beich wrote: > Mateusz Guzik writes: > >> +.Pp >> +The long options are as follows: >> +.Bl -tag -width ".Fl -count" >> +.It Fl -count >> +Count the number of hardware threads included in the set. Requires >> +.Fl g >> +and >> +.Fl p >> +flags. >> +.El > > --count appears to report total number of "hardware threads" instead of > "included in the set". Is this intentional? If so the wording is confusing. > > $ cpuset -l 1 -- cpuset -g --count -p -1 > 8 > $ cpuset -l 1 -- cpuset -g -p -1 > pid -1 mask: 1 > pid -1 domain policy: first-touch mask: 0 > $ procstat cpuset $$ > PID TID COMM TDNAME CPU CSID CPU MASK > 1111 7777 zsh - -1 1 0-7 > > $ cpuset -l 1 yes >/dev/null & > $ cpuset -g --count -p $(pgrep yes) > 8 > $ cpuset -g -p $(pgrep yes) > pid 2222 mask: 1 > pid 2222 domain policy: first-touch mask: 0 > $ procstat cpuset $(pgrep yes) > PID TID COMM TDNAME CPU CSID CPU MASK > 2222 8888 yes - 1 3 1 > that was a bug not worth fixing, so i whacked the feature: https://cgit.freebsd.org/src/commit/?id=2924ae099a1e8ffc5b6040f3af5645aa54c0f629 -- Mateusz Guzik