★ wanayoo — archive 1999 http://www.kernelnotes.org/patch/21-p0379.htmlNouvelle recherche | Portail wanayoo

Performance / Memory Usage Patch

Mark Hemment (markhe@nextd.demon.co.uk)
Wed Apr 9 17:42:00 1997

[Home] [Linux 2.0] [Linux 2.1] [Information] [Software] [Distributions] [Links]


It gives (hopefully) linux-2.1.32 a _small_ performance boost, and a reduction in memory usage. It is not rocket-science.

The patch contains;

I'd appreciate anyone giving this patch a trying, but a few points to note:

The figures under "lmbench" show limited/no improvement, but running other tests (such as a large number of kernel compiles) do show a performance increase (particularly on a 486 box).

I believe networking throughput/latencies take a small performance hit. This is probably due to different byte alignments of dynamically allocated memory. I do not understand the networking code - perhaps somebody could try SLABising it (making sure common accessed members are on the same h/w cache line, and using kmem_find_general_cachep()).

The second argument to kfree_s() is now honoured rather than being thrown away by the pre-processor. This did cause compile problems for ipv4 (fixes in the patch).

Download




[Home] [Up] [Search] [FeedBack]

Copyleft © The LinuxHQ Project. Licensed under the GNU Public License.