From owner-soc-status@FreeBSD.ORG Fri Jun 5 16:59:01 2009 Return-Path: Delivered-To: soc-status@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2AE110656DB for ; Fri, 5 Jun 2009 16:59:00 +0000 (UTC) (envelope-from pali.gabor@googlemail.com) Received: from mail-ew0-f212.google.com (mail-ew0-f212.google.com [209.85.219.212]) by mx1.freebsd.org (Postfix) with ESMTP id 58D5F8FC20 for ; Fri, 5 Jun 2009 16:59:00 +0000 (UTC) (envelope-from pali.gabor@googlemail.com) Received: by ewy8 with SMTP id 8so2214349ewy.43 for ; Fri, 05 Jun 2009 09:58:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :organization:user-agent:mime-version:to:cc:subject :x-enigmail-version:content-type:content-transfer-encoding; bh=HqGloeoWQEY6pFybcTSPhU1kz34ChfgM7oobXn2YENk=; b=Ubg2tJGovRHOxUxLK2Wc3THhUMLrq5yVWsisHqUcTqeWOho/hamP0JMTeJxOlzlK86 0IaoFewqNbU3/SO6bfOSxd7Djfn76c/bKZw0wJpH1EJmy1zfNKnPUGTDObJvGackDL+3 E21THeBREL3IJF07UbZngjFifyM5ZPanqL97U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=sender:message-id:date:from:organization:user-agent:mime-version:to :cc:subject:x-enigmail-version:content-type :content-transfer-encoding; b=Ade6ePfhw+hRpR30ksfJDwdqZt/ikDakmeYBm0d6g4M6yt9C7fqngo2bThimGsp6Z/ 9FRWQayUSE7SGUNh5CvDw51wZ61FFKTIH0UP7yAKW1EpSFQtzcAj2dDcRu81oRAdJqxp MULYCg+5BRTsgTSbwEojm7efEVdS/bdKu6JKw= Received: by 10.216.11.137 with SMTP id 9mr1281366wex.180.1244219169614; Fri, 05 Jun 2009 09:26:09 -0700 (PDT) Received: from beehive.inf.elte.hu (beehive.inf.elte.hu [157.181.166.90]) by mx.google.com with ESMTPS id u14sm508001gvf.5.2009.06.05.09.26.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 05 Jun 2009 09:26:09 -0700 (PDT) Sender: =?UTF-8?B?UMOBTEkgR8OhYm9yIErDoW5vcw==?= Message-ID: <4A2947F6.7020706@FreeBSD.org> Date: Fri, 05 Jun 2009 18:29:42 +0200 From: Gabor PALI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.19 (X11/20090128) MIME-Version: 1.0 To: soc-status@freebsd.org X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Oleksandr Tymoshenko Subject: libstat status 1 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2009 16:59:01 -0000 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/...