From: steven j. <py...@li...> - 2002-10-08 11:25:23
|
Greetings, There are a good many sensors out there. I focus on the ones used in motherboards I deal with (thus, the three that I have). There is a natural performance advantage to reading one file over several for sensor data. It might be best to use the scan option as a compatability mode where a specialized driver is not available. The Tyan does take a while. That's a function of the way the chip itself samples data. I avoid the hit by having the driver understand that the granularity of sensor data is 5 seconds (actually it's more like 1, but 5 is 'good enough' and improves performance). I place that in the driver since it's specific to the chip. The SiS950 for example takes negligable time to read. In cases where the sensors are available on the LPC as well as i2c, I prefer a standalone driver so that it won't need to track lm_sensors at all. Since sensor information is fairly simple, a standalone driver matures quickly and need not be touched again until the next kernel branch comes out. G'day, sjames On Mon, 7 Oct 2002, Wilton Wong wrote: > It seems like alot of source to maintain especially since new chips come out > everyday and lm_sensors is always under active development.. wouldn't it be > better to have "mon" scan the /proc/sys/dev/sensors/chips file and readout the > information in each chip ? or have a seperate daemon do this and plug the info > into "mon" using monhole ? > > Also on the Tyan-2466 boards it takes a LONG time to read the sensor data (up > to a second, maybe even 2 to read all of the sensors) I think that period will > really adversly affect supermon performance, would "mon" block while sampling the > temperature data ? > > - Wilton > > On Mon, 07 Oct 2002, steven james wrote: > > > I have drivers for sis950, Winbond w83781d, and adm1021 if they would > > help. > > ----[ Wilton William Wong ]--------------------------------------------- > 11060-166 Avenue Ph : 01-780-456-9771 High Performance UNIX > Edmonton, Alberta FAX: 01-780-456-9772 and Linux Solutions > T5X 1Y3, Canada URL: http://www.harddata.com > -------------------------------------------------------[ Hard Data Ltd. ]---- > -- -------------------------steven james, director of research, linux labs ... ........ ..... .... 230 peachtree st nw ste 701 the original linux labs atlanta.ga.us 30303 -since 1995 http://www.linuxlabs.com office 404.577.7747 fax 404.577.7743 ----------------------------------------------------------------------- |