The NetBSD Project

CVS log for src/etc/rc.d/smtoff

[BACK] Up to [cvs.NetBSD.org] / src / etc / rc.d

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Sep 8 12:52:18 2020 UTC (4 years, 7 months ago) by martin
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, HEAD
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2 lines
Rename MOUNTCRITLOCAL to CRITLOCALMOUNTED to avoid a name collision
on case insensitive file systems

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Jul 22 16:50:41 2020 UTC (4 years, 9 months ago) by martin
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2 lines
Split the local disk availability step into two phases to allow scripts
that pre-populate parts of the system (e.g. a tmpfs based /var) an
easy place to plug in like:

# REQUIRE: mountcritlocal
# BEFORE: MOUNTCRITLOCAL

This also cleans up the existing special handling a bit by separating it
into new scripts. All later scripts now depend on MOUNTCRITLOCAL.
Discussed on tech-userlevel some time ago.

Revision 1.4.4.2: download - view: text, markup, annotated - select for diffs
Mon Jun 10 21:42:45 2019 UTC (5 years, 10 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.4.4.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.4.1: +99 -0 lines
Sync with HEAD

Revision 1.4.2.2: download - view: text, markup, annotated - select for diffs
Tue May 14 11:33:42 2019 UTC (5 years, 11 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Diff to: previous 1.4.2.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.1: +99 -0 lines
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.

Revision 1.4.4.1
Mon May 13 18:53:10 2019 UTC (5 years, 11 months ago) by christos
Branches: phil-wifi
FILE REMOVED
Changes since revision 1.4: +0 -99 lines
file smtoff was added on branch phil-wifi on 2019-06-10 21:42:45 +0000

Revision 1.4.2.1
Mon May 13 18:53:10 2019 UTC (5 years, 11 months ago) by martin
Branches: netbsd-8
FILE REMOVED
Changes since revision 1.4: +0 -99 lines
file smtoff was added on branch netbsd-8 on 2019-05-14 11:33:42 +0000

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon May 13 18:53:10 2019 UTC (5 years, 11 months ago) by maxv
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp
Branch point for: phil-wifi, netbsd-8
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +1 -10 lines
Remove comment, since there is no parsing anymore.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun May 12 11:55:47 2019 UTC (5 years, 11 months ago) by kre
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -3 lines

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.)

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun May 12 00:24:03 2019 UTC (5 years, 11 months ago) by kre
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +37 -29 lines

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.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat May 11 19:31:03 2019 UTC (5 years, 11 months ago) by maxv
Branches: MAIN
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.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>