<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Israel Garcia napsal(a):
<blockquote
 cite="mid:194a2c240911150917n61fccbd4i9e614a93217c25c9@mail.gmail.com"
 type="cite">
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">Can you help me?


      </pre>
    </blockquote>
    <pre wrap="">Hi,
    </pre>
  </blockquote>
  <pre wrap=""><!---->Hi Josef, thanks for your answer. :-)

  </pre>
  <blockquote type="cite">
    <pre wrap="">1) try adjusting cache parameters:

&lt;Plugin rrdtool&gt;
        DataDir "/var/lib/collectd/rrd"
        CacheTimeout 485
        CacheFlush 1800
&lt;/Plugin&gt;
    </pre>
  </blockquote>
  <pre wrap=""><!---->OK, I'll try with this config

  </pre>
  <blockquote type="cite">
    <pre wrap="">The more sec you keep cache, the less io collectd generates. Tradeof is
in "lag" of graphs behind current time.

2) try adjusting filesystem params, if you are using ext3, try mount
options noatime,commit=600
    </pre>
  </blockquote>
  <pre wrap=""><!---->Now, "/var/lib/collectd/rrd" is in the same OS filesystem, I'll add a
second hdd to my VM and put rrd files in this partition and set all
this parameters in fstab.

  </pre>
  <blockquote type="cite">
    <pre wrap="">3) change your raid configuration to raid0 or 10
    </pre>
  </blockquote>
  <pre wrap=""><!---->I can'nt this server only support raid 1 and 5. :-(

  </pre>
  <blockquote type="cite">
    <pre wrap="">4) add more ram if your system is swaping
    </pre>
  </blockquote>
  <pre wrap=""><!---->The server is not using any swap.

  </pre>
  <blockquote type="cite">
    <pre wrap="">5) adjust rrd files "time precision" if you do not need acuracy to
seconds, this will keep whole dataset smaller.
    </pre>
  </blockquote>
  <pre wrap=""><!---->Can you explain me this a little&gt;?

Thanks again Josef
regards
Israel.
  </pre>
</blockquote>
<br>
According to collectd man page, rrd files are usually created with step
size set to interval. <br>
If you change interval eg. to 30sec from 5sec, your rrd files are still
with stepsize 5s,<br>
since they were created with previously used config file.<br>
<br>
Bigger interval means smaller rrd files, which could hopefully fit into
filesystem caches.<br>
<br>
If you want to try impact of changing this, you can easily move wholo
your rrd collection to backup location, retart collectd and let it
recreate rrd files with new interval.<br>
        rrdtool dump filename.rrd &gt;filename.xml<br>
        edit filename.xml<br>
        rrdtool restore --force-overwrite filename.xml filename.rrd<br>
<br>
<br>
If you want to keep old data and change rrd files step size, it is a
bit more difficult, AFAIK.<br>
You have to dump rrd files using rrdtool dump to xml, then edit xml
(with some script) and load edited xml back to rrd file using rrdtool
restore<br>
<br>
<blockquote type="cite">StepSize Seconds<br>
  <br>
    Force the stepsize of newly created RRD-files. Ideally (and per
default) this setting is unset and the stepsize is set to the interval
in which the data is collected. Do not use this option unless you
absolutely have to for some reason. Setting this option may cause
problems with the snmp plugin, the exec plugin or when the daemon is
set up to receive data from other hosts.<br>
</blockquote>
<br>
<strong><br>
</strong><br>
<blockquote
 cite="mid:194a2c240911150917n61fccbd4i9e614a93217c25c9@mail.gmail.com"
 type="cite">
  <blockquote type="cite">
    <pre wrap="">--

S pozdravem
Josef Liška

CHL | system care

Telefon: +420.272048055
Fax: +420.272048064
Mobil: +420.776026526 denně 9:00 - 17:30
Jabber: <a class="moz-txt-link-abbreviated" href="mailto:jl@chl.cz">jl@chl.cz</a>
<a class="moz-txt-link-freetext" href="https://www.chl.cz/">https://www.chl.cz/</a>


    </pre>
  </blockquote>
  <pre wrap=""><!---->

  </pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<p>S pozdravem<br>
<span style="margin-left: 3em; font-style: italic;">Josef Liška</span></p>
<p style="font-size: 8pt;">CHL | system care<br>
<br>
Telefon: +420.272048055<br>
Fax: +420.272048064<br>
Mobil: +420.776026526 denně 9:00 - 17:30<br>
Jabber: <a class="moz-txt-link-abbreviated" href="mailto:jl@chl.cz">jl@chl.cz</a><br>
<a href="https://www.chl.cz/">https://www.chl.cz/</a>
</p>
</div>
</body>
</html>