From nobody Thu Feb 22 13:20:40 2024 X-Original-To: freebsd-hackers@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 4TgYpT47Nzz5CcJH for ; Thu, 22 Feb 2024 13:27:13 +0000 (UTC) (envelope-from li-fbsd@citylink.dinoex.sub.org) Received: from uucp.dinoex.org (uucp.dinoex.org [IPv6:2a0b:f840::12]) (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 (2048 bits) client-digest SHA256) (Client CN "uucp.dinoex.sub.de", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TgYpS6Q7xz3xJQ for ; Thu, 22 Feb 2024 13:27:12 +0000 (UTC) (envelope-from li-fbsd@citylink.dinoex.sub.org) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of li-fbsd@citylink.dinoex.sub.org designates 2a0b:f840::12 as permitted sender) smtp.mailfrom=li-fbsd@citylink.dinoex.sub.org; dmarc=none; arc=pass ("uucp.dinoex.org:s=M20221114:i=1") Received: from uucp.dinoex.org (uucp.dinoex.org [IPv6:2a0b:f840:0:0:0:0:0:12]) by uucp.dinoex.org (8.18.1/8.18.1) with ESMTPS id 41MDR6LR074151 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Thu, 22 Feb 2024 14:27:06 +0100 (CET) (envelope-from li-fbsd@citylink.dinoex.sub.org) ARC-Seal: i=1; a=rsa-sha256; d=uucp.dinoex.org; s=M20221114; t=1708608429; cv=none; b=HyzP0fuV/uZ+QBtj4LfTou7SPCcoNQStrR5nvaNsMALZuUnBmpzopfrOyeoaWciLffEEXMaQmZw7KS4X9sV7ZqFW85chXPUVN8oo4C6JGCN/Q3NTlhAn/z1xu8QHsZm/5BXJqCAql/DZM+lVH8sDPhz5MrleMZyCuo6BhoZUQnk= ARC-Message-Signature: i=1; a=rsa-sha256; d=uucp.dinoex.org; s=M20221114; t=1708608429; c=relaxed/simple; bh=9PYUmuAcHdZGmGlD/K7dYb1zhCQZby6+08cYJipvkjA=; h=Received:Received:Received:X-Authentication-Warning:From: X-Newsgroups:Subject:Date:Message-ID:References:Injection-Date: Injection-Info:User-Agent:To:X-Milter:X-Greylist; b=bLT6qNy+PF4HnRb2shNmE/4g4ebSCf5ur6f9O1SZW1KA8TZXm/+aP961ul+SES86RjJy9Zo79GeCrUKBJD+EWcYruLtttj1av/wD+87VHKC5knGZNRMuqyn6r24nxX3zIl/QEpxLAj6PYwp+fBVT9jOVIWdwRUUyMHdcp0KzTjQ= ARC-Authentication-Results: i=1; uucp.dinoex.org X-MDaemon-Deliver-To: Received: (from uucp@localhost) by uucp.dinoex.org (8.18.1/8.18.1/Submit) with UUCP id 41MDR61K074150 for freebsd-hackers@freebsd.org; Thu, 22 Feb 2024 14:27:06 +0100 (CET) (envelope-from li-fbsd@citylink.dinoex.sub.org) Received: from admn.intra.daemon.contact (localhost [127.0.0.1]) by admn.intra.daemon.contact (8.17.1/8.17.1) with ESMTPS id 41MDKwvK057715 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Thu, 22 Feb 2024 14:20:58 +0100 (CET) (envelope-from li-fbsd@citylink.dinoex.sub.org) Received: from intra.daemon.contact (news@localhost) by admn.intra.daemon.contact (8.17.1/8.17.1/Submit) with NNTP id 41MDKevQ057650 for freebsd-hackers@freebsd.org; Thu, 22 Feb 2024 14:20:40 +0100 (CET) (envelope-from li-fbsd@citylink.dinoex.sub.org) X-Authentication-Warning: admn.intra.daemon.contact: news set sender to li-fbsd@citylink.dinoex.sub.org using -f From: "Peter 'PMc' Much" X-Newsgroups: m2n.fbsd.hackers Subject: Re: jails and CPU pinning Date: Thu, 22 Feb 2024 13:20:40 -0000 (UTC) Message-ID: References: Injection-Date: Thu, 22 Feb 2024 13:20:40 -0000 (UTC) Injection-Info: admn.intra.daemon.contact; logging-data="46450"; mail-complaints-to="usenet@citylink.dinoex.sub.org" User-Agent: slrn/1.0.3 (FreeBSD) To: freebsd-hackers@freebsd.org X-Milter: Spamilter (Reciever: uucp.dinoex.org; Sender-ip: 0:0:2a0b:f840::; Sender-helo: uucp.dinoex.org;) X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (uucp.dinoex.org [IPv6:2a0b:f840:0:0:0:0:0:12]); Thu, 22 Feb 2024 14:27:09 +0100 (CET) X-Rspamd-Queue-Id: 4TgYpS6Q7xz3xJQ X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.94 / 15.00]; ARC_ALLOW(-1.00)[uucp.dinoex.org:s=M20221114:i=1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.94)[-0.936]; FORGED_SENDER(0.30)[pmc@citylink.dinoex.sub.org,li-fbsd@citylink.dinoex.sub.org]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; R_DKIM_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; HAS_XAW(0.00)[]; ASN(0.00)[asn:205376, ipnet:2a0b:f840::/32, country:DE]; FROM_NEQ_ENVFROM(0.00)[pmc@citylink.dinoex.sub.org,li-fbsd@citylink.dinoex.sub.org]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[sub.org]; RCVD_TLS_LAST(0.00)[]; TO_DN_NONE(0.00)[] List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org On 2024-02-13, Marek Zarychta wrote: > Dear Knowledgeable Hackers, > > is CPU pinning supposed to work from inside the jail if the jail CPU set > is full? > From my observations processes inside the jails don't walk over > CPUs(?!) and can be pinned to specific CPUs neither from the host nor > from the jail. Is this expected behavior? root@edge:~ # jexec admn root@admn:/ # cpuset -g -p $$ pid 54831 mask: 6, 7, 8, 9 pid 54831 domain policy: prefer mask: 0 root@admn:/ # cpuset -l 9 bash [root@admn /]# cpuset -g -p $$ pid 55156 mask: 9 pid 55156 domain policy: first-touch mask: 0, 1 So what exactly is Your problem?