Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-8] src



Module Name:    src
Committed By:   martin
Date:           Tue May 14 11:33:43 UTC 2019

Modified Files:
        src/distrib/sets/lists/etc [netbsd-8]: mi
        src/etc/defaults [netbsd-8]: rc.conf
        src/etc/mtree [netbsd-8]: special
        src/etc/rc.d [netbsd-8]: Makefile
        src/share/man/man5 [netbsd-8]: rc.conf.5
        src/usr.sbin/postinstall [netbsd-8]: postinstall
Added Files:
        src/etc/rc.d [netbsd-8]: smtoff

Log Message:
Pull up following revision(s) (requested by maxv in ticket #1265):
        etc/rc.d/smtoff: revision 1.1
        etc/rc.d/smtoff: revision 1.2
        distrib/sets/lists/etc/mi: revision 1.258
        etc/rc.d/smtoff: revision 1.3
        etc/rc.d/smtoff: revision 1.4
        etc/defaults/rc.conf: revision 1.148
        etc/rc.d/Makefile: revision 1.103
        usr.sbin/postinstall/postinstall: revision 1.226
        etc/rc.d/Makefile: revision 1.104
        etc/mtree/special: revision 1.167
        share/man/man5/rc.conf.5: revision 1.180

Add smtoff, an rc.d script that disables Simultaneous Multi-Threading. It
parses the output of cpuctl, and executes "cpuctl offline" for each CPU
that has SmtID!=0.

The default is "smtoff=NO", which means that SMT remains enabled.
Restructure code a little.

Use quoting everywhere possibly useful (always the right way, except
in the few cases where it is wrong...)

Avoid using cut & grep (from /usr/bin) so script could run before /usr
is mounted (pity cpuctl is in /usr/sbin ...).

Use sysctl -n rather than attempting to parse its output.
install rc.d

No change...   Previous log message should have said:
  Install rc.d/smtoff

I should know better!   Don't rely upon the way the shell implements
pipes.   Skip the "error" printf from GetSmtId() as there is no easy
portable way to avoid it occurring (there are complicated ways) - but
we don't need it, there is no logical difference between "error" and ""
so just use the latter (if we get an ID, good, if there is nothing, then
there is none - saying 'error' does not mean anything.)

Remove comment, since there is no parsing anymore.


To generate a diff of this commit:
cvs rdiff -u -r1.247 -r1.247.2.1 src/distrib/sets/lists/etc/mi
cvs rdiff -u -r1.139 -r1.139.6.1 src/etc/defaults/rc.conf
cvs rdiff -u -r1.160 -r1.160.4.1 src/etc/mtree/special
cvs rdiff -u -r1.95 -r1.95.6.1 src/etc/rc.d/Makefile
cvs rdiff -u -r0 -r1.4.2.2 src/etc/rc.d/smtoff
cvs rdiff -u -r1.166 -r1.166.6.1 src/share/man/man5/rc.conf.5
cvs rdiff -u -r1.214.4.1 -r1.214.4.2 src/usr.sbin/postinstall/postinstall

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index