Re: [PATCH v2] tcp: splice as many packets as possible at once

From: Evgeniy Polyakov
Date: Tue Feb 03 2009 - 09:21:19 EST


On Tue, Feb 03, 2009 at 01:25:37PM +0000, Jarek Poplawski (jarkao2@xxxxxxxxx) wrote:
> Now it's clear. So this looks like one of the options considered by
> David. Then I wonder about details... It seems some kind of scheduled
> browsing for refcounts is needed or is there something better?

It depends on the implementation, for example each kfree() may check the
reference counter and return page to the allocator when it is really
free. Since page may contiain multiple objects its reference counter may
hit zero someday in the future, or never reach it if data was not freed.

--
Evgeniy Polyakov
--
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/