Increasing Linux's POSIX_THREAD_THREADS_MAX
and
Recompiling Linux Kernel

  1. Edit     /usr/include/bits/local_lim.h
    Search for and change setting for     POSIX_THREAD_THREADS_MAX
    Save and exit.

  2. Change directory to:     /usr/src/linux
        (This may be linked to, for example, /usr/src/linux-2.2.14 for RedHat 6.2.)
    Do the following:

  3. Edit     Makefile
    Search for and change the setting for EXTRAVERSION to a unique extension, such as the date or your initials. (This will distinguish the resulting boot-file name.)

  4. Build the kernel by: This may ask you a lot of questions about what modules to include in your kernel. You could customize your kernel, or sellect the current settings by just hitting return for each question.

  5. Install:

    That's it. The kernel should now be made.
    It should have been placed under /usr/src/linux/arch/i386/boot in a file called, bzImage.

  6. Move kernel to /boot directory:

  7. Update your lilo.conf file:

  8. Run lilo to reconfigure the startup file:
      lilo

Test by rebooting.

For more information, see: www.redhat.com/mirrors/LDP/HOWTO/Kernel-HOWTO-4.html.