[rrd-users] Showing daily average ; from midnight to midnight local time
tobi at oetiker.ch
Tue Feb 16 07:27:48 CET 2010
Today Jean-Yves Avenard wrote:
> On 16 February 2010 03:20, Tobias Oetiker <tobi at oetiker.ch> wrote:
> > delays could be caused by excessive number of fonts being available
> > on your system.
> Now I remember what else I changed last week...
> Copy all the fonts available on my mac to my linux box !!!
> I thought it was the RAM, so I bought 2 extra gigs today, but it made
> no difference , still pretty slow...
> Had to try ... You are 100% right ..
> I have removed the 259 fonts I added ; and everything is very fast again !!!
> I don't consider 259 fonts to be excessive; that's less than what a
> typical windows box ship with ; and is what the mac uses.....
> Anyhow, glad it is fixed ...
the 'problem' is pango, the component who does the font
rendering for rrdtool. as it is started it figures out which font
to pick ... this can take some time ... there are three things you
* have fewer fonts
* make sure you are running the latest pango and fontconfig
* let the same instance of rrdtool create multiple graphs since the
font selection impact is only on the first graph ...
259 fonts is not really excessive, it is just that when the whole
font searching has to be done for every graph which is the case
when you restart rrdtool every time will take it's toll.
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900
More information about the rrd-users