From nobody Sun Aug 25 09:31:09 2024 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 4Ws7r63SZJz5VgTY for ; Sun, 25 Aug 2024 09:32:22 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ws7r60BwYz4F78 for ; Sun, 25 Aug 2024 09:32:21 +0000 (UTC) (envelope-from manu@bidouilliste.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1724578334; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=v77AUAK8pk4AKwF5JutNYp3u/OqE/J5tJAGJXvnrmqA=; b=fJA1Dq6sq6OBfH/z0qBf32YLwZf42DN/u2wRBZSneRoAvBmwXp5sdN553QwjWRyQLnXdRH rsv44OjjoKY4j6+zalGPZcraKjlMxPBoUFhY8yubD2bjdYM/PxVLXcAf/1erX3BH9+JFHf eZZOrjwXD+/UixW1YjDysrIWZ2QJGd4= Received: from skull.home.blih.net (lfbn-lyo-1-2174-135.w90-66.abo.wanadoo.fr [90.66.97.135]) by mx.blih.net (OpenSMTPD) with ESMTPSA id d813a2f8 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 25 Aug 2024 09:32:14 +0000 (UTC) Date: Sun, 25 Aug 2024 11:31:09 +0200 From: Emmanuel Vadot To: "Poul-Henning Kamp" Cc: Ronald Klop , Bob Bishop , "current@freebsd.org" Subject: Re: powerd forgets top CPU frequency ? Message-Id: <20240825113109.a296da0265815333540c6552@bidouilliste.com> In-Reply-To: <202408250840.47P8eJM8032225@critter.freebsd.dk> References: <202408241706.47OH6LfG023651@critter.freebsd.dk> <202408250513.47P5DDZF029200@critter.freebsd.dk> <1264471055.10452.1724573369940@localhost> <202408250829.47P8TawP031885@critter.freebsd.dk> <1273956903.13647.1724575094919@localhost> <202408250840.47P8eJM8032225@critter.freebsd.dk> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd15.0) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR] X-Rspamd-Queue-Id: 4Ws7r60BwYz4F78 On Sun, 25 Aug 2024 08:40:19 +0000 "Poul-Henning Kamp" wrote: > -------- > Ronald Klop writes: > > > This is interesting by itself. According to the sysctl the CPU only has 1 frequency to select, which is 2803, but it is running on 3103. Maybe there is some > > Yes, I've always had a bit of trouble understanding how these things fit together... > > (Also not the best laptop I've had in a number of other ways) You likely have hwpstate, so powerd will do nothing. Try changing dev.hwpstate_intel..epp value and see if you manage to do what you want, otherwise you will need to disable hwpstate (it's doable with some hints iirc) and use powerd. Cheers, > > other mechanism which influences the CPU freq on your machine. I hope somebody else can shine some light on this. > > Doesn't the output (or source) of powerd give some insight on why it makes the decisions it makes? > > Only stuff like: > > load 144%, current freq 3692 MHz ( 0), wanted freq 5606 MHz > load 127%, current freq 3692 MHz ( 0), wanted freq 5606 MHz > load 120%, current freq 3692 MHz ( 0), wanted freq 5606 MHz > load 136%, current freq 3692 MHz ( 0), wanted freq 5606 MHz > load 132%, current freq 3692 MHz ( 0), wanted freq 5606 MHz > > But it is not entirely obvious to me that powerd actually does anything... > > > -- > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 > phk@FreeBSD.ORG | TCP/IP since RFC 956 > FreeBSD committer | BSD since 4.3-tahoe > Never attribute to malice what can adequately be explained by incompetence. > -- Emmanuel Vadot