Hi
> I then tried to configure squid to use this new 3000 filedescriptors limit.
> But configure told me that the limit on my system was 256 and not 3000!
> #define OPEN_MAX 256
> into
> #define OPEN_MAX 3000
>
> in /usr/include/linux/limits.h
Ok - what I think is happening is that your '/usr/include/linux' is a
directory - not a symlink to the usr/src directory... look at this:
[oskar@cache1 oskar]$ ls -l /usr/include/asm
lrwxrwxrwx 1 root root 24 Oct 22 1996 /usr/include/asm -> ../src/linux/include/asm
[oskar@cache1 oskar]$ ls -l /usr/include/linux
lrwxrwxrwx 1 root root 26 Oct 22 1996 /usr/include/linux -> ../src/linux/include/linux
[oskar@cache1 oskar]$ ls -l /usr/src/linux
lrwxrwxrwx 1 root root 12 Nov 2 12:03 /usr/src/linux -> linux-2.0.31
As far as I know that's the correct way to do things.. some distributions
install two copies of each header, so that you can save disk space by not
installing the kernel source... so it patched linux, but it didn't patch the
normal header files that gcc uses to compile squid.
> Better than 256 but I don't understand why squid is limiting itself to 1024.
You need to add the things to rc.local (echo 8192 > /proc/whatever)...
otherwise your overall system-wide limit and the per-process limit
conflict...
Oskar
--- "Haven't slept at all. I don't see why people insist on sleeping. You feel so much better if you don't. And how can anyone want to lose a minute - a single minute of being alive?" -- Think TwiceReceived on Wed Apr 15 1998 - 06:19:49 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:39:42 MST