John Weil

Quick Performance Improvment: ColdFire Linux and ucLinux (MMU-less) users take Note.

Discussion created by John Weil Employee on Aug 11, 2008
Latest reply on Oct 7, 2008 by JOHN ADAMSON
I have some interesting news.  We have found that a simple change in how to build the kernel provides a significant improvement in performance in our BSPs.  This change will be reflected in our future BSP releases, but I wanted to go ahead and get this out to the community as many of you may have seen performance problems and have asked for assistance.    This change has NOT been verified on all kernels and all BSPs, but it should be useful for evaluation and may work just fine for the majority of you.
We welcome the feedback if you do try this new option.  As many of the linux developers we have do monitor this forum, your feedback and comments will be well received.
Build Option Comments Below:

Network Performance Update for uClinux/Linux Coldfire Platforms.
During an investigation of network performance on a Coldfire
Linux platforms it was determined that a substantial increase
could be achieved by changing the kernel memory allocator.
Currently Coldfire BSPs ship with the SLAB memory allocator
configured by default.  Changing this to the SLUB memory
allocator resulted in better network performance.
Switching from the SLAB memory allocator to the SLUB allocator
is straight forward using LTIB.
* Configure LTIB:
  % ./ltib -c
* Select the option to configure the kernel:
  [*] Configure the kernel
* Exit and Save the configuration
* The kernel configuration page will be displayed.
* Configure the slab allocator:
  General setup  --->
    Choose SLAB allocator (xyz)  --->
       ( ) SLAB
       (X) SLUB (Unqueued Allocator)
* Exit and the kernel will be rebuilt using the SLUB allocator.
(Please note that an unexpected error occurred with the
 modprobe utility on the V2/V3 platforms.  This problem
 will need to be investigated.)