Re: kernel panics at google

From: James Manning (jmm@raleigh.ibm.com)
Date: Tue Jan 25 2000 - 06:51:14 EST


[ Tuesday, January 25, 2000 ] Riley Williams wrote:
> Based on what I've seen recently, what is wrong with the idea of
> having /proc files specifying a single value measured in some unit
> actually state the unit when it's read, along the lines of...
>
> Q> # cat /proc/sys/kernel/panic
> Q> 0 seconds
> Q> # echo 90 > /proc/sys/kernel/panic
> Q> # cat /proc/sys/kernel/panic
> Q> 90 seconds
> Q> #
>
> I appreciate that any programs making use of these files would need to
> be checked to see if they work with the new format, but other than
> that, are there any problems with doing this?

People start trying to do things like
        echo 1 minute > /proc/sys/kernel/panic
and expecting it to work :) After all, the whole idea of the interface
is it looks/acts like a small text file, right?

Seriously, though, if you are dealing with the files in /proc you're
typically doing so for a reason and while many/most cases have obvious
units, the ones that don't (like this) are easy enough to look up.

I'd rather see better Documentation/ entries covering the /proc entries
as they get added rather than bloat the kernel with such code.

James

-- 
Miscellaneous Engineer --- IBM Netfinity Performance Development

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jan 31 2000 - 21:00:14 EST