Re: [PATCH] up to 50% faster sys_poll()

2001-01-06 Thread Dan Kegel
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

re: [PATCH] up to 50% faster sys_poll()

2001-01-06 Thread Dan Kegel
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

re: [PATCH] up to 50% faster sys_poll()

2001-01-06 Thread Dan Kegel
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:

Re: [PATCH] up to 50% faster sys_poll()

2001-01-06 Thread Dan Kegel
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 microseconds.

[PATCH] up to 50% faster sys_poll()

2001-01-05 Thread Manfred
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

[PATCH] up to 50% faster sys_poll()

2001-01-05 Thread Manfred
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