Re: Porting OpenBSD's sysctl hw.sensors framework to FreeBSD



On Wednesday 11 July 2007 07:49:59 am Alexander Leidinger wrote:
Quoting Robert Watson <rwatson@xxxxxxxxxxx> (from Wed, 11 Jul 2007
11:12:24 +0100 (BST)):

On Wed, 11 Jul 2007, Poul-Henning Kamp wrote:

In message <469420B9.20401@xxxxxxxxxxx>, "Constantine A. Murenin" writes:

If you want to have no such framework that could potentially
diagnose or predict system failure, it's your choice, [...]

I would love to have that, but the OpenBSD code isn't that.

In the general spirit of SoC, I would suggest that a more constructive
line of commenting might come with suggestions, not just rejections
:-). Are you arguing that the current proposed framework offers little
incremental benefit over simply having the sysctl framework in the
first place and having each source of information (i.e., device driver)
just export it directly?

It seems clear that people would like all these measurements to be
available, even if not by the precise mechanism proposed. So far the
specific technical criticals have been:

- There's such a diversity of motherboard devices and probe mechanisms
that
any kernel driver would become rapidly over-burdened and needlessly
complicated.

This doesn't argue for doing nothing, just that perhaps a kernel device
driver is the wrong place.

On the other hand you don't want to allow an userland tool to directly
mess around with the registers on your RAID or NIC to get some status...

Err, that's how all the RAID utilities I've used work. They send firmware
commands from userland and parse the replies in userland. One exception I've
seen so far is that for software RAID the firmware you are talking to is the
driver, not firmware on the card, so you use ioctls directly rather than an
ioctl that sends a command to the firmware on the card.

--
John Baldwin
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"



Relevant Pages