Re: [RFC PATCH] mm: handle simple case in free_pcppages_bulk()

From: Minchan Kim
Date: Thu Feb 10 2011 - 08:10:43 EST


Hello Namhyung,

On Thu, Feb 10, 2011 at 8:46 PM, Namhyung Kim <namhyung@xxxxxxxxx> wrote:
> Now I'm seeing that there are some cases to free all pages in a
> pcp lists. In that case, just frees all pages in the lists instead
> of being bothered with round-robin lists traversal.

I though about that but I didn't send the patch.
That's because many cases which calls free_pcppages_bulk(,
pcp->count,..) are slow path so it adds comparison overhead on fast
path while it loses the effectiveness in slow path.

--
Kind regards,
Minchan Kim
--
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/