Re: lug-bg: disk speed and mrtg
- Subject: Re: lug-bg: disk speed and mrtg
- From: erinin@email.domain.hidden (Hristo Erinin)
- Date: Tue, 3 Jun 2003 18:03:45 +0300
Zdraveite,
On 03 Jun 2003 11:46:19 +0300
Ivan Dimitrov <dobber_at_bastun.net> wrote:
<em class="quotelev1">> vsushtnost, mai nqma da pomogne. tazi statistika spored nabludeniqta mi
<em class="quotelev1">> prosto akomulira blks_read/write ot bootvaneto na machinata do tekushtiq
<em class="quotelev1">> moment. na men mi trqbva tekushtata skorost s koqto chete/pishe po diska
<em class="quotelev1">> za da moga da napravq mrtg stranica, inache s tezi stoinostti grafikata
<em class="quotelev1">> vinagi shte raste. xumm.. moga da probvam da izkarvam i predishnata
Naprotiv, shte pomogne. MRTG-to po default (ako ne mu se ukazhe opcia
gauge ili absolute) smiata skorostta kato razdeli razlikata mezhdu novata
i starata stoinost na vremeto mezhdu otchitane na stoinostite.
http://people.ee.ethz.ch/~oetiker/webtools/mrtg/mrtg-conf.html#Options
In the absence of 'gauge' and 'absolute' options, MRTG treats variable as a
counter and calculates the difference between the current and the previous value
and divides that by the elapsed time between the last two readings to get the
value to be plotted.
Spored vmstat(8):
All linux blocks are currently 1k, except for CD-ROM blocks which are 2k.
Taka che mozhesh da polzvash niakakyv prost script koito da ti gi dava kato
stoinosti (eventualno umnozheni po 1000), i da ostavish mrtg-to da si svyrshi
rabotata :).
<p><em class="quotelev1">> stoinost ot tekushtata i da pravq stats po ostatuka. no tova e grozno
<em class="quotelev1">> reshenie. ako ima nqkakuv nachin da izkaram direkto skorostta shte e
<em class="quotelev1">> nai-dobre. s hdparms primerno???
<em class="quotelev1">>
Ne vizhdam kak mozhesh da napravish podobno neshto s hdparms...
<p><em class="quotelev1">> On âò, 2003-06-03 at 11:00, Ivan Dimitrov wrote:
<em class="quotelev2">> > blagodarq viktore, tova shte mi pomogne.
<em class="quotelev2">> >
<em class="quotelev2">> > On ïò, 2003-05-30 at 21:24, viktor wrote:
<em class="quotelev3">> > >
<em class="quotelev3">> > > Ivan Dimitrov wrote:
<em class="quotelev4">> > > > iskam da si napravq mrtg stranichka za skorostta na transfer na
<em class="quotelev4">> > > > harddiska. problema mi e che neznam otkade da namerq informaica za
<em class="quotelev4">> > > > tekushtata mu skorost (i vsqkakva druga polezna i interesna informacia
<em class="quotelev3">> > >
<em class="quotelev3">> > > tazi informaciq ti q predostavq /proc/stat (man 5 proc), po-specialno
<em class="quotelev3">> > > reda kojto izglejda taka:
<em class="quotelev3">> > > disk_io: (3,0):(10219,7761,220044,2458,48288)
<em class="quotelev3">> > > tylkuvaneto mu spored man stranicata e:
<em class="quotelev3">> > > (major,minor):(noinfo, read_io_ops, blks_read, write_io_ops, blks_written)
<em class="quotelev3">> > > ta trqbva da si identificirash hard diskovete po major i minor number i
<em class="quotelev3">> > > posle ot vreme na vreme da gledash blks_read i blks_written.
<em class="quotelev3">> > >
<p>PS: Osven tova mozhesh da poglednesh i http://perso.wanadoo.fr/sebastien.godard/ .
Tozi francuzin razrabotva paketa sysstat v koito e vkliuchena programata iostat
http://perso.wanadoo.fr/sebastien.godard/use_iostat.html
--
Best Regards,
Hristo Erinin
Spectrum Net Jsc.
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|