Manfred wrote:
> The improvement with large number of pipes probably comes from replacing
> __get_free_page() with kmalloc() - kmalloc is faster, especially on SMP.
> ...
> I expected 2 improvements:
> * poll with < 24 descriptors: around 800 cpu ticks faster, but that's
> just one or two microsec
Manfred ([EMAIL PROTECTED]) wrote:
> sys_poll spends around 1/2 of the execution time allocating / freeing a
> few bytes temporary memory.
> The attached patch tries to avoid these allocation by using the stack -
> usually only a few bytes are needed, kmalloc is used for the rest.
> The result
sys_poll spends around 1/2 of the execution time allocating / freeing a
few bytes temporary memory.
The attached patch tries to avoid these allocation by using the stack -
usually only a few bytes are needed, kmalloc is used for the rest.
The result: one poll of stdin is down from 1736 cpu ticks
3 matches
Mail list logo