Page MenuHomeFreeBSD

kern.vt.slow_down tunable to make laptop debugging possible
ClosedPublic

Authored by phk on Nov 23 2024, 1:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jan 27, 9:24 AM
Unknown Object (File)
Mon, Jan 13, 12:47 PM
Unknown Object (File)
Dec 27 2024, 9:42 AM
Unknown Object (File)
Dec 27 2024, 8:14 AM
Unknown Object (File)
Dec 27 2024, 6:23 AM
Unknown Object (File)
Dec 26 2024, 12:04 PM
Unknown Object (File)
Dec 25 2024, 4:07 PM
Unknown Object (File)
Dec 7 2024, 9:01 AM
Subscribers
None

Details

Summary

On a laptop with no other console devices than the screen, things scroll of the screen faster than eye or camera can capture it.

The new kern.vt.slow_down tunable slows the console down and makes it update synchronously, so console output continues when timers or interrupts do not.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

phk requested review of this revision.Nov 23 2024, 1:09 PM
phk created this revision.
This revision is now accepted and ready to land.Nov 23 2024, 2:46 PM

Though why 1000? Might be good to document in the commit message. Ad hoc value that works? Or derived from something else?

The loop needs about 1000 iterations before the screen is obviously slower.

I decided to prescale the value by thousand, so that kern.vt.slow_down=1 would do something.

This revision was automatically updated to reflect the committed changes.