Bug 148367 - [syscons] [patch] Add loader tunable to override SC_HISTORY_SIZE
Summary: [syscons] [patch] Add loader tunable to override SC_HISTORY_SIZE
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-04 23:30 UTC by Dmitry Pryanishnikov
Modified: 2017-12-31 22:34 UTC (History)
0 users

See Also:


Attachments
file.diff (4.06 KB, patch)
2010-07-04 23:30 UTC, Dmitry Pryanishnikov
no flags Details | Diff
syscons-history_size.patch (4.07 KB, patch)
2010-12-15 21:39 UTC, Dmitry Pryanishnikov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Pryanishnikov 2010-07-04 23:30:01 UTC
It is useful to keep SC_HISTORY_SIZE value high, however it costs kernel memory. So in order to share the same kernel between machines with big and not-so-big RAM, one should be able to tune the size of back scroll buffer. The attached patch makes it possible via the loader tunable hw.syscons.history_size. Patch works with today's RELENG_8, it also applies to HEAD (and should work there, since schistory.c is the same in HEAD and RELENG_8 except __FBSDID line).

Fix: Patch attached with submission follows:
Comment 1 Dmitry Pryanishnikov 2010-12-15 21:39:21 UTC
Hello!

   The patch has been updated for schistory.c,v 1.21.2.2 (current version in 
RELENG_8).

Sincerely, Dmitry
-- 
nic-hdl: LYNX-RIPE
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:24 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped