Increasing Linux's POSIX_THREAD_THREADS_MAX
and
Recompiling Linux Kernel
- Edit /usr/include/bits/local_lim.h
Search for and change setting for POSIX_THREAD_THREADS_MAX
Save and exit.
- 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:
- 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.)
- 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.
- 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.
- Move kernel to /boot directory:
- mv /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-yourname
- Update your lilo.conf file:
Edit /etc/lilo.conf to include your new kernel.
- Run lilo to reconfigure the startup file:
Test by rebooting.
For more information, see:
www.redhat.com/mirrors/LDP/HOWTO/Kernel-HOWTO-4.html.