On Tue, 31 Aug 2004, Mohsin Khan wrote:
MK> I do not think that you should rebuild your kernel. 
MK> First tweak your squid.conf and see what results you
MK> get, i will say lower down the squidGuard threads. 
MK> helperOpenServers: Starting 25 'squidGuard'
        Thanks for the response, Mohsin.
        Good suggestion, the only problem is when I lower the number of 
redirectors Squid complains about their being too few - which is why it's set at 
such a high number...
Brett
MK> --- Brett Charbeneau <brett@wrl.org> wrote:
MK> 
MK> > Greetings Fellow Squidders,
MK> > 
MK> > 	I have a Squid box running at my main library
MK> > (2.5.STABLE1) and 
MK> > I'm trying to get things tuned up on it. It's of the
MK> > RedHat flavor running 
MK> > kernel 2.4.20-30.9 with 1 GB of RAM.
MK> > 	NOW: the kernel needs to be recompiled with HIGHMEM
MK> > enabled so it can
MK> > take full advantage of the RAM (as it only addresses
MK> > 896 MB, now) and my plan is 
MK> > to do that tomorrow as well as stick an additional
MK> > 512 MB in it.
MK> > 	I've got some vmstat info below, and as you'll
MK> > notice the amount of swap
MK> > increases at the beginning of the day and tends to
MK> > hover around 102700 (yes, six
MK> > digits there) - which I understand to be a Bad
MK> > Thing.
MK> > 	Will a recompile of the kernel with HIGHMEM make a
MK> > difference here or do 
MK> > I need to start tweaking cache settings in
MK> > squid.conf? 
MK> > 	Or am I already I/O bound?
MK> > 	MANY thanks in advance for any help anyone can find
MK> > the time to offer.
MK> > 
MK> > 
MK> > 
MK> > 
MK> > [root]# vmstat 5   
MK> >    procs                      memory      swap      
MK> >    io     system      cpu
MK> >  r  b  w   swpd   free   buff  cache   si   so    bi
MK> >    bo   in    cs us sy id
MK> >  0  0  1  10380   7364  90524 289184    0    1    20
MK> >    24  145    33  1  1 98
MK> >  0  0  0  10476   7244  90484 289288    0   19     9
MK> >    78  285   114  2  4 94
MK> >  0  0  0  10476   7128  90520 289268    4    0    42
MK> >    22  530   269  5 11 83
MK> >  0  1  0  10588   7264  90620 288872    4   24    52
MK> >   121  461   221  3  8 90
MK> >  0  0  0  10620   7272  90808 288668    6    6    94
MK> >    62  341   169  3  4 92
MK> > 
MK> > 
MK> > [root]# cat /proc/meminfo
MK> >         total:    used:    free:  shared: buffers: 
MK> > cached:
MK> > Mem:  924434432 894775296 29659136        0 92082176
MK> > 331661312
MK> > Swap: 205623296 103870464 101752832
MK> > MemTotal:       902768 kB
MK> > MemFree:         28964 kB
MK> > MemShared:           0 kB
MK> > Buffers:         89924 kB
MK> > Cached:         230668 kB
MK> > SwapCached:      93220 kB
MK> > Active:         663912 kB
MK> > ActiveAnon:     460992 kB
MK> > ActiveCache:    202920 kB
MK> > Inact_dirty:     53640 kB
MK> > Inact_laundry:   98576 kB
MK> > Inact_clean:     20504 kB
MK> > Inact_target:   167324 kB
MK> > HighTotal:           0 kB
MK> > HighFree:            0 kB
MK> > LowTotal:       902768 kB
MK> > LowFree:         28964 kB
MK> > SwapTotal:      200804 kB
MK> > SwapFree:        99368 kB
MK> > 
MK> > 
MK> > From cache.log at Squid startup:
MK> > 
MK> > 2004/08/31 05:01:28| Starting Squid Cache version
MK> > 2.5.STABLE1 for 
MK> > i386-redhat-linux-gnu...
MK> > 2004/08/31 05:01:28| Process ID 1013
MK> > 2004/08/31 05:01:28| With 1024 file descriptors
MK> > available
MK> > 2004/08/31 05:01:28| DNS Socket created at 0.0.0.0,
MK> > port 32768, FD 5
MK> > 2004/08/31 05:01:28| Adding nameserver
MK> > xxx.xxx.xxx.xxx from /etc/resolv.conf
MK> > 2004/08/31 05:01:28| Adding nameserver
MK> > xxx.xxx.xxx.xxx from /etc/resolv.conf
MK> > 2004/08/31 05:01:28| Adding nameserver
MK> > xxx.xxx.xxx.xxx from /etc/resolv.conf
MK> > 2004/08/31 05:01:28| helperOpenServers: Starting 25
MK> > 'squidGuard' processes   
MK> > 2004/08/31 05:01:28| Unlinkd pipe opened on FD 35
MK> > 2004/08/31 05:01:28| Swap maxSize 61440000 KB,
MK> > estimated 4726153 objects
MK> > 2004/08/31 05:01:28| Target number of buckets:
MK> > 236307
MK> > 2004/08/31 05:01:28| Using 262144 Store buckets
MK> > 2004/08/31 05:01:28| Max Mem  size: 65536 KB
MK> > 2004/08/31 05:01:28| Max Swap size: 61440000 KB
MK> > 2004/08/31 05:01:28| Rebuilding storage in
MK> > /var/spool/squid (CLEAN)
MK> > 2004/08/31 05:01:28| Using Least Load store dir
MK> > selection
MK> > 2004/08/31 05:01:28| Set Current Directory to
MK> > /var/spool/squid
MK> > 2004/08/31 05:01:28| helperOpenServers: Starting 25
MK> > 'squidGuard' processes
MK> > 2004/08/31 05:01:28| Unlinkd pipe opened on FD 35
MK> > 2004/08/31 05:01:28| Swap maxSize 61440000 KB,
MK> > estimated 4726153 objects
MK> > 2004/08/31 05:01:28| Target number of buckets:
MK> > 236307
MK> > 2004/08/31 05:01:28| Using 262144 Store buckets
MK> > 2004/08/31 05:01:28| Max Mem  size: 65536 KB
MK> > 2004/08/31 05:01:28| Max Swap size: 61440000 KB
MK> > 2004/08/31 05:01:28| Rebuilding storage in
MK> > /var/spool/squid (CLEAN) 
MK> > 2004/08/31 05:01:28| Using Least Load store dir
MK> > selection
MK> > 2004/08/31 05:01:28| Set Current Directory to
MK> > /var/spool/squid
MK> > 2004/08/31 05:01:28| Loaded Icons.
MK> > 2004/08/31 05:01:29| Accepting HTTP connections at
MK> > 0.0.0.0, port 3128, FD 37.
MK> > 2004/08/31 05:01:29| Accepting ICP messages at
MK> > 0.0.0.0, port 3130, FD 38.
MK> > 2004/08/31 05:01:29| WCCP Disabled.
MK> > 2004/08/31 05:01:29| Ready to serve requests.
MK> > 
MK> > -- 
MK> > 
MK> > Brett Charbeneau, Network Administrator         Tel:
MK> > 757-259-7750
MK> > Williamsburg Regional Library                   FAX:
MK> > 757-259-7798
MK> > 7770 Croaker Road                              
MK> > brett _at_ wrl.org
MK> > Williamsburg, VA 23188-7064                    
MK> > http://www.wrl.org
MK> > 
MK> > 
MK> > 
MK> > 
MK> 
MK> 
MK> =====
MK> Regards, 
MK> Mohsin Khan 
MK> CCNA ( Cisco Certified Network Associate 2.0 ) 
MK> http://forum.aaghaz.net 
MK> 
MK> >>>Happy is the one who can smile<<<
MK> 
MK> 
MK> 
MK> 
MK> 
MK> 
MK> 
MK> 
MK> 		
MK> __________________________________
MK> Do you Yahoo!?
MK> Yahoo! Mail - You care about security. So do we.
MK> http://promotions.yahoo.com/new_mail
MK> 
--Received on Tue Aug 31 2004 - 14:36:56 MDT
This archive was generated by hypermail pre-2.1.9 : Wed Sep 01 2004 - 12:00:03 MDT