Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Oct 2011 21:05:51 +0300
From:      Mikolaj Golub <trociny@freebsd.org>
To:        Patrick Proniewski <patpro@patpro.net>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: measuring IO asynchronously
Message-ID:  <86ipnwg1s0.fsf@kopusha.home.net>
In-Reply-To: <4B8C8026-1E12-4C32-88E3-9B34A3E58A91@patpro.net> (Patrick Proniewski's message of "Mon, 10 Oct 2011 16:33:11 %2B0200")
References:  <20110915120007.F41FF10656E1@hub.freebsd.org> <4B8C8026-1E12-4C32-88E3-9B34A3E58A91@patpro.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mon, 10 Oct 2011 16:33:11 +0200 Patrick Proniewski wrote:

 PP> Hello,

 PP> I would like to monitor the storage on various FreeBSD servers,
 PP> especially I/O per seconds. Is there any way to gather statistics
 PP> about I/O via asynchronous request, lets say, for example, using a
 PP> munin plugin?  `iostat -w 1` and `zpool iostat tank 1` are
 PP> interesting, but not useable asynchronously.

I use for this a simple program that I wrote some time ago. It uses devstat(9)
kernel interface and outputs counters, like below

kopusha:~% devstat ada0   
ada0:
        1339552256 bytes read
        858508800 bytes written
        0 bytes freed
        26711 reads
        52207 writes
        0 frees
        32 other
        duration:
                329 15518804455250054608/2^64 sec reads
                116 18223026934881081924/2^64 sec writes
                0 0/2^64 sec frees
        296 15557434685545187896/2^64 sec busy time
        5 18134849003398009609/2^64 sec creation time
        512 block size
        tags sent:
                78950 simple
                0 ordered
                0 head of queue
        supported statistics measurements flags: 0
        device type: 32
        devstat list insert priority: 272

You can find it in ports (sysutils/devstat).

-- 
Mikolaj Golub



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86ipnwg1s0.fsf>