From nobody Thu Sep 22 18:06:26 2022 X-Original-To: questions@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 4MYNWt5bc9z4cx8M for ; Thu, 22 Sep 2022 18:06:34 +0000 (UTC) (envelope-from verm@darkbeer.org) Received: from mx.coeval.ca (mx.coeval.ca [184.75.211.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4MYNWt0DTDz3ZXV for ; Thu, 22 Sep 2022 18:06:33 +0000 (UTC) (envelope-from verm@darkbeer.org) Received: from mx.darkbeer.org (unknown [192.168.211.20]) by mx.coeval.ca (Postfix) with ESMTP id 84DA0436070 for ; Thu, 22 Sep 2022 18:06:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=darkbeer.org; s=mail; t=1663869986; bh=4AhtYva60d5JuY7XispZa7b9ic6zJ+Pn7eQggW1j7vY=; h=Date:From:To:Subject:References:In-Reply-To; b=b1OTtTAx/zg9bnYlUDKV3dB0yJkFSomlWG3AXe0BdYLz24+mjbqWzJScLXIfQki/P rytRDI/IQgfu33nCj3s46MFjWhwwM12v4rUk33ileddh7E7mbSLxwPoFL6oDjvPhtf NB/sqXQHEalYRSmVNGkLovS0U+YT9oEqlVGz0xHg= Received: by mx.darkbeer.org (Postfix, from userid 1001) id 84014470BFD; Thu, 22 Sep 2022 18:06:26 +0000 (UTC) Date: Thu, 22 Sep 2022 18:06:26 +0000 From: Amar Takhar To: questions@freebsd.org Subject: Re: Disabling CPUs Message-ID: <20220922180626.GB79310@darkbeer.org> References: List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Rspamd-Queue-Id: 4MYNWt0DTDz3ZXV X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=darkbeer.org header.s=mail header.b=b1OTtTAx; dmarc=none; spf=pass (mx1.freebsd.org: domain of verm@darkbeer.org designates 184.75.211.21 as permitted sender) smtp.mailfrom=verm@darkbeer.org X-Spamd-Result: default: False [-3.48 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.98)[-0.983]; R_DKIM_ALLOW(-0.20)[darkbeer.org:s=mail]; R_SPF_ALLOW(-0.20)[+ip4:184.75.211.21]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[darkbeer.org]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; ASN(0.00)[asn:32489, ipnet:184.75.211.0/24, country:CA]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[darkbeer.org:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N On 2022-09-21 19:05 -0700, Kevin Oberman wrote: > I am looking to disable all 8 E-cores on my Alder Lake system to prevent > repeated crashes. The man page has an example of this: > Modify the cpuset all threads are in by default to contain only the first 4 > CPUs, leaving the rest idle: >            cpuset -l 0-3 -s 1 > I did this, but in subsequent port build, all 12 "CPUs" were running at 100%. > Am I missing something? Maybe use -p 1" instead of "-s 1". > > I also found suggestions to use "hint.lapic.N.disabled", but teh lines that > were supposed to be in dmesg and the messages log were not present. I am > baffled, but really need to do something to stop the crashes currently > impacting Alder Lake systems. You need to do it in BIOS it's the only way. Unfortunately even if you do it within FreeBSD it still sees those cores just doesn't schedule them it causes an issue somewhere regardless I did try to not schedule anything to them. If you don't see any specific option to disable E-cores you'll need to disable them individually. As far as I know the E-cores are always the last cores in the list. Any Alder Lake BIOS should have the setting. Amar.