请输入您要查询的百科知识:

 

词条 Envsys
释义

  1. Features

  2. History

  3. See also

  4. References

  5. External links

{{lowercase}}{{Use mdy dates|date=March 2019}}{{Infobox software
| name = Environmental Systems framework (version 2)
| author = Juan Romero Pardines (2007)
| developer = The NetBSD Foundation, Inc.
| released = {{Start date and age|2007|07|01|df=yes}}
| discontinued = no
| repo = {{URL|http://bxr.su/n/sys/sys/envsys.h|/sys/sys/envsys.h}}
| programming language = C
| operating system = NetBSD since 5.0
| genre = system monitoring
| licence = BSD licence#4-clause
| website = {{URL|http://mdoc.su/n/envsys.4|envsys(4)}}
}}{{Infobox software
| name = Environmental Systems API
| author = Tim Rightnour and Bill Squier (2000)
| developer = The NetBSD Foundation, Inc.
| released = {{Start date and age|1999|12|15|df=yes}}
| discontinued = yes
| latest release version = NetBSD 4.0.1
| latest release date = {{Start date and age|2008|10|14|df=yes}}
| repo = {{URL|http://bxr.su/n/sys/sys/envsys.h|/sys/sys/envsys.h}}
| programming language = C
| operating system = NetBSD 1.5 to 4.0.1
| genre = system monitoring
| licence = BSD licence#4-clause
| website = {{URL|http://mdoc.su/n40/envsys.4|envsys(4) in NetBSD 4.0}}
}}

The envsys framework is a kernel-level hardware monitoring sensors framework in NetBSD. {{As of|2019|03|04}}, the framework is used by close to 85 device drivers to export various environmental monitoring sensors, as evidenced by references of the sysmon_envsys_register[1] symbol within the sys path of NetBSD; with temperature sensors, ENVSYS_STEMP[2], being the most likely type to be exported by any given driver.{{r|sensors-mmath|p=32|q=Chart VIII. Sensor unit popularity in NetBSD 5.0.1 based on the number of drivers using each envsys unit.}} Sensors are registered with the kernel through sysmon_envsys(9) API.{{r|sysmon_envsys.9}} Consumption and monitoring of sensors from the userland is performed with the help of envstat utility through proplib(3) through ioctl(2) against the /dev/sysmon pseudo-device file,{{r|/dev/sysmon}} the powerd power management daemon that responds to kernel events by running scripts from /etc/powerd/scripts/,{{r|powerd|powerd/scripts}} as well as third-party tools like symon and GKrellM from pkgsrc.

Features

The framework allows the user to amend the monitoring limits specified by the driver, and for the driver to perform monitoring of the sensors in kernel space, or even to programme a hardware chip to do the monitoring for the system automatically.{{r|sensors-mmath|p=§7.1}} Two levels of limits are defined: critical and warning, both of which additionally extend to an over and an under categorisation.{{r|sensors-mmath|p=§7.1}} If limit thresholds are crossed, a kernel event may be generated, which can be caught in the userland by powerd to execute a pre-defined user script.{{r|powerd|powerd/scripts}} By comparison, in OpenBSD's hw.sensors, the monitoring of user-defined values is performed in userspace by sensorsd.

{{As of|2019}}, the framework itself does not facilitate computer fan control, although the drivers could still implement interfacing with the fan-controlling capabilities of their chips through other means, for example, through a driver-specific sysctl interface, which is the approach taken by the dbcool(4) driver.{{r|dbcool}} However, the drivers for the most popular Super I/O chips like lm(4) and itesio(4) do not implement any fan control at all (in fact, historically, in all of OpenBSD, NetBSD and DragonFly, these drivers don't even report the duty cycle of the fans — only the actual RPM values are reported).{{r|lm|it}}

History

The framework undergone two major revisions: the first version of envsys.h was committed on {{Start date and age|1999|12|15|df=yes}}; with envsys.4 man page following on {{Start date and age|2000|02|27|df=yes}}. Between 2000 and 2007, the manual page for envsys(4) in NetBSD stated that the "API is experimental", and that the "entire API should be replaced by a sysctl(8)", "should one be developed";[3][4] it can be noted that in 2003 this was the exact approach taken by OpenBSD with sysctl hw.sensors when some of the envsys(4) drivers were ported to OpenBSD.{{r|sensors-mmath|p=§6.1|q=6.1. Framework timeline}}

The second revision came about on {{Start date and age|2007|07|01|df=yes}}. The serialisation with userland was reimplemented using property lists with the help of NetBSD's new proplib(3) library (the underlying transport layer between the kernel and userland still being done through ioctl).{{r|feyrer|sensors-mmath}}

The envsys framework was the precursor to OpenBSD's sysctl hw.sensors framework in 2003, and many drivers, as well as some sensor types, have been ported back and forth between NetBSD and OpenBSD. Support for sensors of drive type has been added to NetBSD on {{dts|2007|05|01|format=dmy}}, similar to drive type in OpenBSD, which was at the same time when bio(4) and bioctl were ported from OpenBSD to NetBSD.{{r|sensors-mmath|p=§7.1|q=7.1. NetBSD envsys / sysmon}}

See also

{{Portal|Free and open-source software}}
  • bioctl
  • hw.sensors
  • lm_sensors
  • SpeedFan

References

1. ^{{cite web|url=http://bxr.su/n/sys/dev/sysmon/sysmon_envsys.c#sysmon_envsys_register|title=sysmon_envsys_register()|website=BSD Cross Reference|publisher=NetBSD}}
2. ^{{cite web|author2= The NetBSD Foundation, Inc.|author2-link= NetBSD|author1= Juan Romero Pardines|date= 2007-2008|url=http://bxr.su/n/share/man/man9/sysmon_envsys.9|title=sysmon_envsys(9) — kernel part of the envsys 2 framework|website=BSD Cross Reference|publisher=NetBSD|lay-url= http://mdoc.su/n/sysmon_envsys.9}}
3. ^{{cite web|author= Wasabi Systems, Inc. |date= 2003|url=http://bxr.su/n/usr.sbin/powerd/|title=powerd(8) — power management daemon for sysmon|website=BSD Cross Reference|publisher=NetBSD|lay-url= http://mdoc.su/n/powerd.8}}
4. ^{{cite web|url=http://bxr.su/n/etc/powerd/scripts/|title=/etc/powerd/scripts/|website=BSD Cross Reference|publisher=NetBSD}}
5. ^{{cite web|url=http://bxr.su/n/sys/sys/envsys.h#ENVSYS_STEMP|title=ENVSYS_STEMP|website=BSD Cross Reference|publisher=NetBSD}}
6. ^{{cite web|url=http://mdoc.su/n40/envsys.4|author1=Tim Rightnour|author2=Bill Squier|version = NetBSD 4.0|date = 2007-12-19|title= envsys -- Environmental Systems API|quote= This API is experimental and may be deprecated at any time … This entire API should be replaced by a sysctl(8) interface or a kernel events mechanism, should one be developed.}}
7. ^{{cite web|author2= The NetBSD Foundation, Inc.|author1= Paul Goyette |date= 2008|url= http://bxr.su/n/sys/dev/i2c/dbcool.c|title= dbcool(4): dev/i2c/dbcool.c|website= BSD Cross Reference|publisher= NetBSD|lay-url= http://mdoc.su/n/dbcool.4|access-date= 2019-03-25}}
8. ^{{cite web|url= http://bxr.su/n/sys/dev/ic/nslm7x.c|title= lm(4): dev/ic/nslm7x.c|website= BSD Cross Reference|publisher= NetBSD|lay-url= http://mdoc.su/n,o,d/lm.4|access-date= 2019-03-25}}
9. ^{{cite web|url= http://bxr.su/n/sys/dev/isa/itesio_isa.c|title= itesio(4): dev/isa/itesio_isa.c|website= BSD Cross Reference|publisher= NetBSD|lay-url= http://mdoc.su/n/itesio.4|access-date= 2019-03-25}}
10. ^{{Cite conference|author= Constantine A. Murenin |date= 2007-04-17|section = 3.5. NetBSD’s sysmon(4) |url = http://sensors.cnst.su/IEEE_ICNSC_2007|title= Generalised Interfacing with Microprocessor System Hardware Monitors|conference= Proceedings of 2007 IEEE International Conference on Networking, Sensing and Control, 15–17 April 2007.|location= London, United Kingdom|publisher=IEEE|pages = 901-906 |doi = 10.1109/ICNSC.2007.372901 |isbn = 1-4244-1076-2|id = IEEE ICNSC 2007, pp. 901—906.}}
11. ^{{cite web|url = http://www.feyrer.de/NetBSD/bx/blosxom.cgi/nb_20070621_1638.html|title = envsys2 |author = Hubert Feyrer|date = 2007-06-21 |access-date = 2019-03-04}}
12. ^{{cite thesis|degree= MMath|author= Constantine A. Murenin |date= 2010-05-21|section = 7.1. NetBSD envsys / sysmon|title= OpenBSD Hardware Sensors — Environmental Monitoring and Fan Control.|location= University of Waterloo |publisher= UWSpace|url = http://cnst.su/MMathCS |hdl = 10012/5234|id = Document ID: ab71498b6b1a60ff817b29d56997a418.}}
[1][2][3][4][5][6][7][8][9][10][11][12]
}}

External links

{{div col |colwidth=12em |style=column-count: 2;}}
  • {{URL|http://bxr.su/n/sys/sys/envsys.h|/sys/sys/envsys.h}}
  • {{URL|http://bxr.su/n/sys/sys/power.h|/sys/sys/power.h}}
  • {{URL|http://bxr.su/n/sys/dev/sysmon/|/sys/dev/sysmon/}}
  • {{URL|http://bxr.su/n/usr.sbin/envstat/|usr.sbin/envstat/}}
  • {{URL|http://bxr.su/n/usr.sbin/powerd/|usr.sbin/powerd/}}
  • {{URL|http://bxr.su/n/etc/powerd/scripts/|/etc/powerd/scripts/}}
  • {{URL|http://mdoc.su/n/envsys.4|envsys(4)}}
  • {{URL|http://mdoc.su/n/envsys.conf.5|envsys.conf(5)}}
  • {{URL|http://mdoc.su/n/envstat.8|envstat(8)}}
  • {{URL|http://mdoc.su/n/powerd.8|powerd(8)}}
  • {{URL|http://mdoc.su/n/sysmon_envsys.9|sysmon_envsys(9)}}
{{div col end}}{{NetBSD}}

13 : 1999 software|2007 software|BSD software|Computer hardware tuning|Computer performance|Environmental data|Environmental monitoring|Free software programmed in C|Free system software|Motherboard|NetBSD|System administration|System monitors

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/22 19:24:00