On Thu, Jul 29, 2010 at 10:57 AM, Jens Axboe <jaxboe@xxxxxxxxxxxx> wrote: > > On 07/26/2010 04:17 PM, Bart Van Assche wrote: > > Hello, > > > > When I run the fio command below, fio triggers a segmentation fault > > after about half an hour. Is this a known issue ? > > [snip] > > OK, took a quick look. It's an artifact of using norandommap with a > short job like yours, when it finds an alias in the rbtree it only > removes it. So it sticks around in memory and will never get cleaned. > So 10 loops would get you 600k of lost memory, 1000000 would bump you > way into the OOM territory. > > The below should fix it, I have committed that fix. > > diff --git a/log.c b/log.c > index 5fc8f64..80d3742 100644 > --- a/log.c > +++ b/log.c > @@ -231,6 +231,7 @@ restart: > assert(ipo->len == __ipo->len); > td->io_hist_len--; > rb_erase(parent, &td->io_hist_tree); > + free(__ipo); > goto restart; > } > } The latest git version works fine now. Thanks ! Bart. -- To unsubscribe from this list: send the line "unsubscribe fio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html