Re: Squid Upgrade

From: Oskar Pearson <[email protected]>
Date: Wed, 15 Apr 1998 02:48:35 +0200

Hi

> > This is good. If correct I have nothing to worry about. The absolute
> > maximum number of users we have at once is 60. We should be fine. The
> > odds of every single user accessing squid at once are 1 in a million -
> > right ;-)

> You can reasonably expect each user to use an average of 4 connections
> simultaneously, when they're fetching documents with inline images. What
> does that do for your math?

Yep - million to one odds happen every day... :)

> We used to hit the 256 file-descriptor wall with 40 users. Frequently.

Ok guys - here is how to patch it:

Download the patch from ftp.is.co.za/linux/local/kernel/filehandle.patch.linux
(via FTP/wget - don't just cut-and-paste it since it messes up the format in
netscape). Save it as 'filehandle.patch.linux' in your home directory.

get the latest 2.0.* kernel source... extract it in /usr/src/ (after moving
        your old /usr/src/linux/ directory to a different name... otherwise
        things get mixed up.)

cd to /usr/src
run:
patch < ~/filehandle.patch.linux

When it asks for a filename (just after it mentions types.h) you
just type /usr/include/gnu/types.h and the patch should succeed.

Only one of the files that needs to be patched isn't in /usr/src/ - it's
called /usr/include/gnu/types.h. This file is normally backed up when you patch
to /usr/include/gnu/types.h.orig. When you install a new kernel this file
doesn't get 'downgraded' and it means that the patch fails on this file..
don't worry.

This should update the needed kernel files to handle 3000 FD's per
process. You will need to recompile the kernel to suit your system (see
the 'kernel' FAQ on sunsite.unc.edu or one of it's mirrors for that)

Hope this helps a little.

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 Twice
Received on Tue Apr 14 1998 - 17:52:58 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:39:41 MST