lkml.org 
[lkml]   [2005]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linux 2.6.15-rc5: off-line for a week
On Sun, Dec 04, 2005 at 07:35:40PM +0100, Jesper Juhl wrote:
> But, forcing users to install python, twistd, zope interface etc is
> not exactely making it simple for people to run (and they have to know
> about it first as well).
> If this was instead implemented in C and distributed with the kernel

Thanks to Christian Aichinger's contribution there's now a python
standalone version that can be invoked by cron every few minutes (
http://klive.cpushare.com/klive.py ), it only requires python and no
other lib, it sends the packet with exponential backoff too by keeping
track of the last packet delivery.

This only works correctly if /proc/uptime doesn't overflow (so 2.6
should be ok, 2.4 sure not).

Also note, zope isn't really required, it's just that twisted shares a
library inside zope called zopeinterfaces, you can install that single
lib and not the whole zope. In any recent distro, you've only to select
the twisted-python package, it'll pick up all other (tiny) dependencies
automatically.

The autoinstaller ( http://klive.cpushare.com/klive.sh
--install|--uninstall ) is available only for the twisted version, I
believe that's simpler to setup and handle than the cron driven one even
if it requires twisted (and in turn zopeinterfaces ;)

Everything is GPL including the server code and the network protocol, so
feel free to write a C client, but frankly I think the python standalone
one is more than enough if you don't want a daemon in the background,
writing a C version would be a worthless complication, but still I'm not
against it, if you write it I'll audit and merge it too.

Note, that with the new protocol activated recently I already collected
quite some more info (all can be deactived by editing the script or by
setting the environment variables, there's a wiki where to document all
the stuff too: http://klive.cpushare.com:8819/ ). What you see on the
homepage is what was being logged with the old protocol.

So soon we'll be able to see the pci-ids with the highest/avg/min
uptime, the filesystems mounted and the kernel modules. Furthermore you
will be able to track your own uptime (for your all computers combined
or each one separately) by setting an environment variable. I didn't
start using the new information that gets logged yet, because I'm trying
to start transactions on CPUShare first (my spare time is quite
limited), but it shouldn't take too long before I startup CPUShare and
the KLive new features becomes available too. Incoming patches will
preempt my CPUShare work of course, so feel free to send patches already
if you write them ;).

The next step after the new pciid/fs/module info becomes browsable is to
write a netconsole oops dumper that pushes the oops to the network using
symmetric encryption (the password has to be set with an environment
variable or something like that, that the klive client will pass to
the kernel along with the routing and ip information) that only the
computer owner can decrypt. Then depending on the oops he can decide to
open it up (or he can just leave it always open without password if he
knows there's no sensitive info in the computer). This will also avoid
people to setup netconsole servers, the cpushare server will log all
oopses securely and with full privacy (and with klive I can still track
how many oopses each kernel is generating even when they're encrypted).

You're welcome to followup discussions on the klive@cpushare.com mailing
list too.

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

\
 
 \ /
  Last update: 2005-12-04 23:28    [W:0.093 / U:1.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site