If you're suffering from memory limitations on your system, the cache performance of Squid will be affected. To reduce this problem, you can link Squid with an external malloc library such as GNU malloc. To make Squid use GNU malloc as an external library, follows these simple steps:
These are the Package(s) required:
| GNU malloc Homepage: http://www.gnu.org/order/ftp.html |
| You must be sure to download: malloc.tar.gz |
[root@deep] /# cp malloc.tar.gz /var/tmp
[root@deep] /# cd /var/tmp
[root@deep ]/tmp# tar xzpf malloc.tar.gz
Compile and install GNU malloc on your system by executing the following commands:
[root@deep ]/tmp# cd malloc [root@deep ]/malloc# export CC=egcs [root@deep ]/malloc# makeCopy the
libmalloc.afile to your system library directory and be sure to name itlibgnumalloc.a[root@deep ]/malloc# cp libmalloc.a /usr/lib/libgnumalloc.aCopy the
malloc.hfile to your system's include directory and be sure to name itgnumalloc.h[root@deep ]/malloc# cp malloc.h /usr/include/gnumalloc.hWith the files
libgnumalloc.aandgnumalloc.hinstalled on your system, Squid will detect them automatically during its compile time, and will use them to improve its cache performance.