[PATCH][RFC] FDI mmap optimization

Danny Kukawka danny.kukawka at web.de
Wed Dec 13 08:51:49 PST 2006


On Wednesday 13 December 2006 17:31, Sergey Lapin wrote:
> Danny Kukawka wrote:
> > Anyway, on the first lock at the patch I would say this part is not the
> > best idea:
> >  +       if((tmpdir = getenv("TMPDIR")) == NULL) {
> >  +           tmpdir = "/tmp";
> >  +       }
> >  +       cachename = g_strconcat(tmpdir, "/fdi_cache", NULL);
> >
> > IMO hal should create such a file better e.g. under /var/run/hal/ or
> > /var/tmp
>
> will configure option like --with-mmap-cache-dir to set it be appropriate?

For me this sounds okay ... IMO we should use /var/run/hal/  or /var/tmp as 
default/fallback in this case.

> I'll provide statiscics in a few minutes.


More information about the hal mailing list