Date: Wed, 12 Oct 2011 21:06:32 +0200 From: Wiktor Niesiobedzki <bsd@vink.pl> To: Patrick Proniewski <patpro@patpro.net> Cc: Mikolaj Golub <trociny@freebsd.org>, freebsd-fs@freebsd.org Subject: Re: measuring IO asynchronously Message-ID: <CAH17caUYJ4hj_bPqOcNg33OhytdzELjiHOs4CjV%2B75-5fcQO8w@mail.gmail.com> In-Reply-To: <94455706-B90D-4DBD-A7DE-E9A38F118D35@patpro.net> References: <20110915120007.F41FF10656E1@hub.freebsd.org> <4B8C8026-1E12-4C32-88E3-9B34A3E58A91@patpro.net> <86ipnwg1s0.fsf@kopusha.home.net> <94455706-B90D-4DBD-A7DE-E9A38F118D35@patpro.net>
next in thread | previous in thread | raw e-mail | index | archive | help
2011/10/12 Patrick Proniewski <patpro@patpro.net> > > On 10 oct. 2011, at 20:05, Mikolaj Golub wrote: > > > On Mon, 10 Oct 2011 16:33:11 +0200 Patrick Proniewski wrote: > > 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? =C2=A0`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 dev= stat(9) > > kernel interface and outputs counters, like below > > > > kopusha:~% devstat ada0 > > ada0: > > =C2=A0 =C2=A0 =C2=A0 =C2=A01339552256 bytes read > > ../.. > > You can find it in ports (sysutils/devstat). > > Thank you Mikolaj, I'm going to give it a try! > What's wrong about iostat? (and how it is used by munin plugin) %iostat -I -x extended device statistics device r/i w/i kr/i kw/i wait svc_t %b ada0 26756321.0 77603114.0 411881657.5 1192108987.0 0 3.2 1 ada1 13483063.0 1131450.0 943635180.5 43584216.0 0 5.7 0 ada2 13831313.0 1131763.0 943961104.5 43587768.0 0 5.5 0 Cheers, Wiktor Niesiobedzki
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAH17caUYJ4hj_bPqOcNg33OhytdzELjiHOs4CjV%2B75-5fcQO8w>