Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 14796 invoked by uid 6000); 30 Jul 1998 20:07:21 -0000 Received: (qmail 14753 invoked from network); 30 Jul 1998 20:07:12 -0000 Received: from alfred.ccs.carleton.ca (root@134.117.1.1) by taz.hyperreal.org with SMTP; 30 Jul 1998 20:07:12 -0000 Received: from rideau (dmo@rideau [134.117.1.17]) by alfred.ccs.carleton.ca (8.8.7/8.8.7) with SMTP id QAA22232 for ; Thu, 30 Jul 1998 16:06:55 -0400 (EDT) Received: from localhost by rideau (SMI-8.6/Sun-Client) id QAA09787; Thu, 30 Jul 1998 16:06:54 -0400 Date: Thu, 30 Jul 1998 16:06:54 -0400 (EDT) From: "Dave O'Neill" X-Sender: dmo@rideau To: new-httpd@apache.org Subject: Re: Patch/kludge to mod_userdir In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org On Wed, 29 Jul 1998, Dean Gaudet wrote: > Don't you see a large blowup in RAM usage under heavy load? each child > has to cache the names individually... Not really... the cache is a linked list, with each node containing a 9 character string (the username), pointers to previous and next nodes, and a pointer to a passwd struct... it adds up to about 61 bytes per node. Even with 200 children running, and a 50-node cache for each, it's only ~600K of total cache. Like I said before, though, there may be better ways to do it. > Under high loads I'd think something like "UserDir /home/*/public_html" > would be far more effective. Then the cache is in the filesystem and > shared between all processes. It would, if we could do that... on one of our main servers (15000 student accounts), the home directories are located in a rather bizzare directory structure (/filesXX//YY/, where XX and YY are two different numbers) that's completely unfindable without a getpwent(). Dave -- Dave O'Neill dmo@ccs.carleton.ca Computing and Communications Services, Carleton University "You, I'm sorry to say, are in need of a geek." - Rob Russell