Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Jun 2009 18:29:42 +0200
From:      Gabor PALI <pgj@FreeBSD.org>
To:        soc-status@freebsd.org
Cc:        Oleksandr Tymoshenko <gonzo@FreeBSD.org>
Subject:   libstat status 1
Message-ID:  <4A2947F6.7020706@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
Hi there,

In my Summer of Code project, I am working on wrapper libraries for the
network and process functions to support monitoring and management
applications to avoid direct use of the FreeBSD kernel memory and sysctl
interface.  You can read more about the project on its wiki page [1].

I have started to read and learn the netstat(1) and libmemstat(3)
sources, discover the different techniques applied in kernel to userland
(and vice versa) interactions, get a grasp of how netstat(1) and
libmemstat(3) work in general.  It is useful to see what abstractions
and how could be created for applications working network-related
statistics (in the manner of libmemstat(3)).

I have set up a working FreeBSD instance based on the -current sources
(I use -stable for my daily work), and I will be able to run and test my
changes under a virtual machine (it is qemu at the moment).  I have also
created a bare-bone skeleton for the libnetstat library and already
imported it into Perforce [2].  I am trying to submit to Perforce
regularly and I am happy to have reviews :)

Regarding the netstat(1) and libmemstat(3) sources, I have contacted
Robert Watson to get more information about the internals.  As far as I
learned, there is no real owner for netstat(1), so understanding the
sources might require some other developers to be involved.  I started
to work with the "socket" (connection) abstraction and defined a simple
C struct for it.  At the moment, I am working with the unix domain
sockets statistics to use an interim data structure for gathering
information via libnetstat.  Hopefully this can be extended to other
type of sockets continuously.

If you are interested in this project, feel free to contact me at pgj
(at) freebsd (dot) org.

Cheers,
:g


[1] http://wiki.freebsd.org/PGJSoC2009
[2]
http://perforce.freebsd.org/changeList.cgi?CMD=changes&FSPC=//depot/projects/soc2009/pgj%5flibstat/...




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A2947F6.7020706>