Return-Path: Delivered-To: apmail-httpd-test-dev-archive@httpd.apache.org Received: (qmail 39593 invoked by uid 500); 28 Jan 2003 19:04:55 -0000 Mailing-List: contact test-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: test-dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list test-dev@httpd.apache.org Received: (qmail 39577 invoked from network); 28 Jan 2003 19:04:55 -0000 Message-ID: <3E36D475.90503@apache.org> Date: Tue, 28 Jan 2003 14:05:25 -0500 From: Greg Ames User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830 MIME-Version: 1.0 To: test-dev@httpd.apache.org Subject: Re: gettimeofday calls References: <3E317625.1000707@wstoddard.com> <3E3199D7.5010406@apache.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Greg Ames wrote: > Bill Stoddard wrote: >> Why not use mod_file_cache? > > On my wimpy 200MHz server, the SPEC file_set contains 5760 files and > uses .8G of disk. On more modern servers, the size of the file_set goes > up in proportion to the number of conforming connections you hope to > push thru it, so figure 57,600 files and 8G of space on a 2GHz server. > 8G isn't going to fit into one process's virtual memory on a Pentium; > caching 57,600 fd's is going to be a challenge too, as I think Madhu is > finding out. One way to make this easier might be to cache as many of the smaller files in memory as will reasonably fit, then caching the file descriptors for the remaining files. If that still isn't practical, you could fagettabout caching the very biggest files since they will take a long time to serve no matter what. On the hypothetical 2GHz server, if I cached all the class0_* thru class2_* (smallest) files in memory, that would eat about .8G per process, leaving 14,400 larger class3_* files to deal with somehow. A disadvantage of caching in memory might be higher CPU usage from copying + checksumming data from user space to NIC buffers vs. using sendfile. That probably doesn't matter for really tiny files. Greg