Re: Request Rates

From: Goran Oberg <>
Date: Thu, 12 Jun 1997 11:44:42 +0200

> Hi,
> I am interested to know the following:
> How many requests per second are people getting?? I am mainly
> interested in the max number of requests served and the average number of
> requests served.
> Also, not so long ago, people were posting messages about running
> tcpbanger?? I think that's what it was called. People were posting their
> results, could a few of these people please send me the results again.

This is not at all solid statistics but I ran a test where I filtered out
already processed requests that were likely to be still cached (no '?' or
'cgi-bin' and only 'GET's) and ran these through modified tcp-bangers on three
separate workstations. I ran about 10 bangers on each machine for a total of
about 30 busy (stripped down) bangers. I did not discriminate between large or
small objects, image or text.

For approx 2 hours my squid (on a Sun Ultra 140, 192 MB, 63 MB cache, 2*4GB
cache_swap) delivered at an average rate of ~60Hz with a CPU-usage average of
30%. I also looked at peak minute averages and the highest sustained rate for a
minute was ~230Hz. It often peaked above 200Hz. The server and the three
workstations were connected with 100Mbps through a fast switch.

As these bangers were requesting objects that almost always were already in the
cache and with the same sequence the vast majority of the requests were served
directly from in-memory cache.

So this test only gives a hint about how efficient squid is when faced with
the best case scenario. I suspect that If I could make the load more evenspread
and even heavier, squid would follow even above an 60Hz average.

This was just a test to see what happened but any comments or suggestions is



Cache Information from cachemgr.cgi (present, not from the mentioned test):

dated Thu Jun 12 11:31:33 1997

Squid Object Cache: Version 1.1.10
Start Time: Thu, 05 Jun 1997 13:39:54 GMT
Current Time: Thu, 12 Jun 1997 09:31:33 GMT
Connection information for squid:
        Number of TCP connections: 1437995
        Number of UDP connections: 0
        Connections per hour: 8775.7
        Select loop called: 10689183 times, 55.187 ms avg
Cache information for squid:
        Storage Swap size: 3512 MB
        Storage Mem size: 29657 KB
        Storage LRU Expiration Age: 0.00 days
        Requests given to unlinkd: 0
        Unused fileno stack count: 0
Resource usage for squid:
        CPU Time: 15480 seconds (7364 user 8116 sys)
        CPU Usage: 3%
        Maximum Resident Size: 0 KB
        Page faults with physical i/o: 572495
File descriptor usage for squid:
        Max number of file desc available: 1024
        Largest file desc currently in use: 226
        Available number of file descriptors: 991
        Reserved number of file descriptors: 100
Internal Data Structures:
        240842 StoreEntries
          4000 StoreEntries with MemObjects
          4000 StoreEntries with MemObject Data
          3991 Hot Object Cache Items
Accounted Memory Usage:
        StoreEntry 240842 x 52 bytes = 12230 KB
        URL strings = 12837 KB
        IPCacheEntry 346 x 36 bytes = 12 KB
        FQDNCacheEntry 0 x 56 bytes = 0 KB
        Hash link 3991 x 12 bytes = 46 KB
        Pool MemObject structures 4000 x 96 bytes = 375 KB ( 0 free)
        Pool for Request structur 128 x 4536 bytes = 567 KB ( 407 free)
        Pool for in-memory object 21504 x 4096 bytes = 86016 KB ( 46788 free)
        Pool for disk I/O 48 x 8192 bytes = 384 KB ( 352 free)
        NetDB Address Entries 0 x 80 bytes = 0 KB
        NetDB Host Entries 0 x 8 bytes = 0 KB
        NetDB Peer Entries 0 x 32 bytes = 0 KB
        ClientDB Entries 579 x 292 bytes = 165 KB
        Miscellaneous = 3456 KB
        Total Accounted = 116090 KB

 Göran Öberg <>        <URL:>
 Computer Support Center                       Adm./CoAdm. of
 Luleĺ University, SWEDEN         {www,proxy,{www,apache}.dc,ftp}
Received on Thu Jun 12 1997 - 02:47:06 MDT

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