Factoring out standard system information

Ryan p0z3r at earthlink.net
Fri Dec 30 19:42:27 GMT 2005


On Friday 30 December 2005 11:08, Scott Wheeler wrote:
> On Dec 29, 2005, at 8:00 PM, Adriaan de Groot wrote:
...
> >
> > So would it make sense to factor this stuff out and stick it in
> > kdelibs
> > somewhere? ksysinfo or some such -- one central place to query system
> > resource usage, so there's only one place reading /proc/icky/
> > memusage or
> > calling sysctlbyname("hw.memusage") or calling table() or using kvm
> > (4).
>
> I'd say that this is one of those things that could probably fairly
> easily go the FD.o route.  This is a problem that a lot of software
> has to deal with (I maintain something similar at the office) and is
> generally a pain to keep up to date, so the less versions of such
> that we have in the OSS world, the better.

Is it even possible to move this to a fd.o standard as this is OS specific 
information?

>
> One thing to keep in mind for such a piece of software is how you'll
> go about shipping updates -- at least on Linux it's unfortunately not
> uncommon for minor changes in the proc file system (which often
> happens in a kernel upgrade)  to break things that parse them.

Agreed, one place to update is much easier to maintain.

>
> -Scott





More information about the kde-core-devel mailing list