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 (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2010-07-04 23:30 UTC by Dmitry Pryanishnikov
Modified: 2022-10-17 12:39 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
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:39:22 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>