Re: [squid-users] aufs and increasing threads

From: Marc Elsen <marc.elsen@dont-contact.us>
Date: Thu, 01 May 2003 21:09:12 +0200

Pat Lendon wrote:
>
> Hi All,
>
> This morning proxy was upgraded to Squid-2.5.STABLE2 and compiled with
> aufs. System OS is RedHat.
> System has 1gig memory, uses megaraid, and cache is set for 5gig.
>
> Cache log has:
>
> 2003/05/01 07:57:41| squidaio_queue_request: WARNING - Queue congestion
> 2003/05/01 08:53:20| squidaio_queue_request: WARNING - Queue congestion
> 2003/05/01 09:42:57| squidaio_queue_request: WARNING - Queue congestion
> 2003/05/01 10:22:08| squidaio_queue_request: WARNING - Queue congestion
> 2003/05/01 11:23:26| squidaio_queue_request: WARNING - Queue congestion
> 2003/05/01 13:38:19| squidaio_queue_request: WARNING - Queue congestion
>
> Specifically, how do I increase threads to stop above messages?
> Do I need to change: cache_dir aufs /d1/squid_cache 5120 16 256

  The configure option :

      --with-aufs-threads=N_THREADS

  will increase, the number of async i/o threads available.

  The general feeling is that the default should be enough.

  How many http reqs/sec. is your squid handling ?

  M.

>
> Storedir and Info stats are listed and thank you!
>
> Store Directory Statistics:
> Store Entries : 236614
> Maximum Swap Size : 5242880 KB
> Current Store Swap Size: 2429532 KB
> Current Capacity : 46% used, 54% free
>
> Store Directory #0 (aufs): /d1/squid_cache
> FS Block Size 4096 Bytes
> First level subdirectories: 16
> Second level subdirectories: 256
> Maximum Size: 5242880 KB
> Current Size: 2429532 KB
> Percent Used: 46.34%
> Filemap bits in use: 236515 of 262144 (90%)
> Filesystem Space in use: 10432528/17488652 KB (60%)
> Filesystem Inodes in use: 277360/2223872 (12%)
> Flags: SELECTED
> Removal policy: lru
> LRU reference age: 1.93 days
>
> Squid Object Cache: Version 2.5.STABLE2-20030402
> Start Time: Thu, 01 May 2003 05:21:32 GMT
> Current Time: Thu, 01 May 2003 18:27:48 GMT
> Connection information for squid:
> Number of clients accessing cache: 170
> Number of HTTP requests received: 248979
> Number of ICP messages received: 0
> Number of ICP messages sent: 0
> Number of queued ICP replies: 0
> Request failure ratio: 0.00
> Average HTTP requests per minute since start: 316.7
> Average ICP messages per minute since start: 0.0
> Select loop called: 3000232 times, 15.724 ms avg
> Cache information for squid:
> Request Hit Ratios: 5min: 34.0%, 60min: 28.8%
> Byte Hit Ratios: 5min: 7.2%, 60min: 5.6%
> Request Memory Hit Ratios: 5min: 0.4%, 60min: 1.0%
> Request Disk Hit Ratios: 5min: 28.0%, 60min: 35.2%
> Storage Swap size: 2430716 KB
> Storage Mem size: 8140 KB
> Mean Object Size: 10.27 KB
> Requests given to unlinkd: 0
> Median Service Times (seconds) 5 min 60 min:
> HTTP Requests (All): 0.13498 0.13498
> Cache Misses: 0.23230 0.19742
> Cache Hits: 0.01469 0.01469
> Near Hits: 0.13498 0.15048
> Not-Modified Replies: 0.00767 0.00767
> DNS Lookups: 0.01331 0.00949
> ICP Queries: 0.00000 0.00000
> Resource usage for squid:
> UP Time: 47175.949 seconds
> CPU Time: 1313.280 seconds
> CPU Usage: 2.78%
> CPU Usage, 5 minute avg: 6.59%
> CPU Usage, 60 minute avg: 9.99%
> Process Data Segment Size via sbrk(): 45627 KB
> Maximum Resident Size: 0 KB
> Page faults with physical i/o: 413
> Memory usage for squid via mallinfo():
> Total space in arena: 45627 KB
> Ordinary blocks: 39054 KB 10858 blks
> Small blocks: 0 KB 0 blks
> Holding blocks: 324 KB 2 blks
> Free Small blocks: 0 KB
> Free Ordinary blocks: 6573 KB
> Total in use: 39378 KB 86%
> Total free: 6573 KB 14%
> Total size: 45951 KB
> Memory accounted for:
> Total accounted: 29704 KB
> memPoolAlloc calls: 37668827
> memPoolFree calls: 36914240
> File descriptor usage for squid:
> Maximum number of file descriptors: 1024
> Largest file desc currently in use: 270
> Number of file desc currently in use: 234
> Files queued for open: 0
> Available number of file descriptors: 790
> Reserved number of file descriptors: 100
> Store Disk files open: 7
> Internal Data Structures:
> 236761 StoreEntries
> 1839 StoreEntries with MemObjects
> 1817 Hot Object Cache Items
> 236667 on-disk objects

-- 
 'Love is truth without any future.
 (M.E. 1997)
Received on Thu May 01 2003 - 13:09:55 MDT

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