[rrd-users] rrdtool 1.3.0 - memory eaten away by mmap.

Tobias Oetiker tobi at oetiker.ch
Wed Jun 18 16:50:30 CEST 2008


Hi Sebastian,

the drawing code in rrdtool draws each graph LINE,AREA as a single
large shape. So depending on the size of the image this could
potentially have a lot of points ... not 10k but still more than
just a few.

@Raimund: Can you try what happens when you change the size of the
graph without changeing the contents ?



cheers
tobi

Today Sebastian Harl wrote:

> Hi,
>
> On Wed, Jun 18, 2008 at 03:13:59PM +0200, Tobias Oetiker wrote:
> > Yesterday Raimund Berger wrote:
> > > So I sent the rrdtool process SIGABRT and dumped core when those
> > > mmap's happen. Apparently, it turns out to be some issue with
> > > libcairo. Even if it's input is faulty, it sure shouldn't behave like
> > > that.
> > >
> > > Anyway, back trace attached.
> >
> > glad to hear it is cairo, so that question is what makes it go belly
> > up ... maybe we can alter rrdtool NOT to stroke it in that
> > particular way (and I thought by moving away from libart I got rid
> > of these problems ... )
>
> I've once had a problem with libcairo (from Debian Etch iirc) that would
> segfault if I did too much drawing (some tens of thousands of updates
> iirc) without calling cr_stroke() in between. I cannot image that
> rrdtool would draw that much but I thought I'd mention it anyway ;-)
>
> HTH,
> Sebastian
>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
http://it.oetiker.ch tobi at oetiker.ch ++41 62 213 9902



More information about the rrd-users mailing list