Security Consulting
  Fun     PGP     HOAX     Java     SPAM     Books     Linux     Windows     Privacy     Switches     Back    

Performance

HDPARM

To speed up a IDE harddisk, you can try the following:
    /sbin/hdparm -c1 -d1 -u1 -m16 /dev/hda
    /sbin/hdparm -c1 -d1 -u1 /dev/hdc
  • c1 is setting 32-bit I/O support flag to 1
  • m16 setting multcount to 16
  • u1 is setting unmaskirq to on
  • d1 is setting using_dma to on

    A good article about hdparam is also at Oreilly

    Patching GLIBC

    Need some real power on a Linux box with high load?
  • Download glibc.
  • change sysdeps/unix/sysv/linux/bits/local_lim.h and set PTHREAD_THREADS_MAX to 4096.
  • change linuxthreads/internals.h set STACK_SIZE to 256kB
  • install glibc (Beware! installing the running glibc might screw your system)!
    Change your linux-kernel:
  • include/linux/limits.h set NR_OPEN to 4096
  • include/linux/fs.h set INR_OPEN to 4096 Recompile some apps to use the new glibc (if you did not overwrite your default one) with:
    ./configure --use-other-glibc=/usr/local/glibc-2.2.5
    Change some other parameters on your system:
  • echo 65535 < /proc/sys/fs/file-max


    CopyLeft (l) 2003 by Raffael Marty