Page MenuHomeFreeBSD

Add sections to the handbook on cpu frequency control
ClosedPublic

Authored by allanjude on Apr 27 2021, 2:25 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 10, 11:10 PM
Unknown Object (File)
Feb 11 2024, 3:40 PM
Unknown Object (File)
Jan 2 2024, 8:25 PM
Unknown Object (File)
Dec 20 2023, 12:49 AM
Unknown Object (File)
Dec 13 2023, 8:15 AM
Unknown Object (File)
Nov 22 2023, 10:33 AM
Unknown Object (File)
Nov 21 2023, 12:04 PM
Unknown Object (File)
Nov 11 2023, 3:57 PM

Details

Summary

covers cpufreq(4), est(4), and hwpstate_intel(4).

Add a link to hwpstate_intel(4) to the relnotes, as with the change, powerd(8) no longer functions on newer CPUs.

PR: 255324
Submitted By: Kyle Kneisl <kyle@kneisl.org>

Diff Detail

Repository
R9 FreeBSD doc repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 38882
Build 35771: arc lint + arc unit

Event Timeline

allanjude created this revision.

The text looks good to me as a first version. I think the change to the relnotes is unrelated?

website/content/en/releases/13.0R/relnotes.adoc
33

This change seems to be unrelated to the CPU freq change above.

website/content/en/releases/13.0R/relnotes.adoc
33

yeah, fixing an excess /, I'll pull this out of this change

allanjude edited the summary of this revision. (Show Details)

Remove extraneous change

Ed reports that hwpstate might not work on many Lenovo laptops, so we might need to add more detail and prominence to how to disable hwpstate and fall back to est(4)

I'm not completely familiar with the issue, but PR253288 has details
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253288

[source,shell] would indicate that a particular section using monospaced blocked text is a shell script.

I would also advise against including user@host and path et cetera, as the % prompt is used to indicate unprivileged commands and the # prompt to indicate privileged commands.

The rest of the documentation also follows this style.

Other than that, I have no issues with this, and am happy to see it. :)

Can we get this committed? Seems mostly complete to me.

This revision is now accepted and ready to land.Oct 1 2022, 3:07 PM

How much of this is applicable to (or has an equivalent for) AMD CPUs? If applicable to both amd64 branches, I'd mention it here and now. If there's separate support for a similar AMD-only feature, other review for documenting that?

(I know this request for changes is very late, but I'm only seeing this now.)

documentation/content/en/books/handbook/config/_index.adoc
1343

Here, I'd mention when to use EST and when to use Speed Shift. Something like: "For 12.x, always use EST. For 13.x, do what sysctl dev.cpufreq.(whatever).freq_driver tells you." Or however the decision tree runs.

1348

Trademarks on first use only. (Unless Intel wants them everywhere.)

1367

Clarify: what are SKUs?

1368

Or 13.x.

1369

What is %d here? Can some but not all CPUs in a computer support Speed Shift? (This sentence and the next one probably belong above in the "which to use" intro paragraph, not here.)

1381
1389
This revision now requires changes to proceed.Oct 6 2022, 6:21 AM

@allanjude I'm gonna take this review and add it to the new config chapter.
@fernape was this precisely what you wanted to add, right?

@allanjude I'm gonna take this review and add it to the new config chapter.
@fernape was this precisely what you wanted to add, right?

Yes, this is the information I was missing from the rework. This review is good, just needs a bit of tweaking.

This revision was not accepted when it landed; it landed in state Needs Revision.Aug 12 2023, 7:54 AM
This revision was automatically updated to reflect the committed changes.