---------- Forwarded message ----------
From: Anand SVR <[email protected]>
Date: Mar 21, 2006 5:08 PM
Subject: Re: Accessing kernel information from a module
To: Arjan van de Ven <[email protected]>
Hi,
The code is not yet ready :) I have a basic version that gives part of
memory statistics.
Why I want to do it in kernel ? Following are the reasons.
- Not all the information is available to the user space. There may be
situations where kernel developers, carrier grade server mainatainers,
and the like might want to access some internal run-time information
for debugging, fine-tuning and so on.
- Keep it light weight, and least intrusive to the run-time behavior
of the system. No need for tcp/udp socket communication.
- There could be impending catastrophic situations where in kernel
cannot schedule user level processes, perhaps due to lack of memory or
whatever.
- Ability for the remote node to change/control certain kernel
parameters by interacting with the module. This paves way for both
diagnosing and controlling kernel.
Regards
Anand
On 3/21/06, Arjan van de Ven <[email protected]> wrote:
> On Tue, 2006-03-21 at 16:32 +0530, Anand SVR wrote:
> > Hi,
> >
> > I am in the process of writing a module that collects kernel
> > information of various kernel subsytems and pass this on to a remote
> > monitoring/management node. The information could be statistical data
> > maintained in data structures of memory, process, network and so on.
> > Or it could be any kernel variables that are of interest.
>
> you forgot to attach your source code ;)
>
> > Is there a way of accessing proc information from the module ?
>
> eh why on earth is your code in the kernel then? Shouldn't your code be
> in userspace if you want to send such information to a remote system???
>
>
>