Re: [RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

From: Andrew Morton
Date: Mon Feb 02 2015 - 17:35:47 EST


On Mon, 2 Feb 2015 22:18:24 +0000 Mel Gorman <mgorman@xxxxxxx> wrote:

> > Is there something
> > preventing this from being addressed within glibc?
>
> I doubt it other than I expect they'll punt it back and blame either the
> application for being stupid or the kernel for being slow.

*Is* the application being stupid? What is it actually doing?
Something like

pthread_routine()
{
p = malloc(X);
do_some(work);
free(p);
return;
}

?

If so, that doesn't seem stupid?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/