Страница 1 из 1

эффективность squid

Добавлено: 2008-06-09 1:03:50
ProFTP

Код: Выделить всё

2008/06/08 19:13:49| Waiting 30 seconds for active connections to finish                                                                    
2008/06/08 19:13:49| FD 11 Closing HTTP connection                                                                                          
2008/06/08 19:15:18| Starting Squid Cache version 2.6.STABLE18 for i386-portbld-freebsd7.0...                                               
2008/06/08 19:15:18| Process ID 990                                                                                                         
2008/06/08 19:15:18| With 9472 file descriptors available                                                                                   
2008/06/08 19:15:18| Using kqueue for the IO loop                                                                                           
2008/06/08 19:15:18| DNS Socket created at 0.0.0.0, port 61267, FD 6                                                                        
2008/06/08 19:15:18| Adding nameserver 10.8.0.1 from /etc/resolv.conf                                                                       
2008/06/08 19:15:18| Adding nameserver 10.0.0.247 from /etc/resolv.conf                                                                     
2008/06/08 19:15:18| User-Agent logging is disabled.                                                                                        
2008/06/08 19:15:18| Referer logging is disabled.                                                                                           
2008/06/08 19:15:18| Unlinkd pipe opened on FD 10                                                                                           
2008/06/08 19:15:18| Swap maxSize 51200000 KB, estimated 3938461 objects                                                                    
2008/06/08 19:15:18| Target number of buckets: 196923                                                                                       
2008/06/08 19:15:18| Using 262144 Store buckets                                                                                             
2008/06/08 19:15:18| Max Mem  size: 1048576 KB                                                                                              
2008/06/08 19:15:18| Max Swap size: 51200000 KB                                                                                             
2008/06/08 19:15:18| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec                                                        
2008/06/08 19:15:18| Store logging disabled                                                                                                 
2008/06/08 19:15:18| Rebuilding storage in /usr/local/squid/cache (DIRTY)                                                                   
2008/06/08 19:15:18| Using Least Load store dir selection                                                                                   
2008/06/08 19:15:18| Current Directory is /usr/local/squid/logs                                                                             
2008/06/08 19:15:18| Loaded Icons.                                                                                                          
2008/06/08 19:15:20| Accepting proxy HTTP connections at 0.0.0.0, port 3130, FD 11.                                                         
2008/06/08 19:15:20| Accepting ICP messages at 0.0.0.0, port 4828, FD 12.                                                                   
2008/06/08 19:15:20| WCCP Disabled.                                                                                                         
2008/06/08 19:15:20| /usr/local/squid/logs/squid.pid: (1) Operation not permitted                                                           
2008/06/08 19:15:20| WARNING: Could not write pid file                                                                                      
2008/06/08 19:15:20| Ready to serve requests.                                                                                               
2008/06/08 19:15:20| Store rebuilding is  6.6% complete                                                                                     
2008/06/08 19:15:21| Done reading /usr/local/squid/cache swaplog (62921 entries)                                                            
2008/06/08 19:15:21| Finished rebuilding storage from disk.                                                                                 
2008/06/08 19:15:21|     61983 Entries scanned                                                                                              
2008/06/08 19:15:21|         0 Invalid entries.                                                                                             
2008/06/08 19:15:21|         0 With invalid flags.                                                                                          
2008/06/08 19:15:21|     61983 Objects loaded.                                                                                              
2008/06/08 19:15:21|         0 Objects expired.                                                                                             
2008/06/08 19:15:21|       938 Objects cancelled.                                                                                           
2008/06/08 19:15:21|         0 Duplicate URLs purged.                                                                                       
2008/06/08 19:15:21|         0 Swapfile clashes avoided.                                                                                    
2008/06/08 19:15:21|   Took 3.2 seconds (19085.1 objects/sec).                                                                              
2008/06/08 19:15:21| Beginning Validation Procedure                                                                                         
2008/06/08 19:15:21|   Completed Validation Procedure                                                                                       
2008/06/08 19:15:21|   Validated 61045 Entries                                                                                              
2008/06/08 19:15:21|   store_swap_size = 1011048k                                                                                           
2008/06/08 19:15:22| storeLateRelease: released 0 objects  
Как определеить сколько процентов с экономилос, каежться совсем ничего... :twisted:

Re: эффективность squid

Добавлено: 2008-06-09 9:50:40
dikens3
По логам.

Re: эффективность squid

Добавлено: 2008-06-09 10:39:48
ProFTP
я лог файл вверху привел, как определить?

Re: эффективность squid

Добавлено: 2008-06-09 11:31:40
dikens3
ProFTP писал(а):я лог файл вверху привел, как определить?
По логам доступа к сайтам, а не запуску. По твоему логу можно узнать сколько объектов в кэше и т.п.

Re: эффективность squid

Добавлено: 2008-06-09 12:25:19
manefesto
прикрути вэб морду аля sarg,lightsquid.
Там всё расписано

Re: эффективность squid

Добавлено: 2008-06-09 21:33:26
ProFTP
какая она должна быть от конфига зависит? какая у вас?

Код: Выделить всё

http_port 313                                                                                                                             
      icp_port 4828                                                                                                                       
      cache_mem 1024 MB                                                                                                                   
        cache_swap_high 95                                                                                                                  
        cache_swap_low 90                                                                                                                   
        maximum_object_size 4096 KB                                                                                                         
        cache_dir ufs /usr/local/squid/cache 50000 64 512                                                                                   
#       cache_access_log /usr/local/squid/var/logs/access.log                                                                               
#       cache_log /usr/local/squid/var/logs/cache.log                                                                                       
#       cache_store_log /usr/local/squid/var/logs/store.log                                                                                 
        cache_store_log none                                                                                                                
        hierarchy_stoplist cgi-bin ?                                                                                                        
        acl QUERY urlpath_regex cgi-bin \?                                                                                                  
        no_cache deny QUERY                                                                                                                 
                                                                                                                                            
#acl all proxy_auth REQUIRED                                                                                                                
#http_access allow all                                                                                                                      
#http_access deny all                                                                                                                       
                                                                                                                                            
#acl INTERNAL src 1                                                                                             
#acl AUTHUSERS proxy_auth REQUIRED                                                                                                          
#http_access allow INTERNAL AUTHUSERS                                                                                                       
                                                                                                                                            
#        acl all src 0.0.0.0/0.0.0.0                                                                                                        
        acl manager proto cache_object                                                                                                      
#        acl allowed_hosts 193...                                                                                      
        acl all src 193...../255.255.255.255                                                                                           
        acl localhost src 127.0.0.1/255.255.255.255                                                                                         
        acl to_localhost dst 127.0.0.0/8                                                                                                    
acl     SSL_ports               port    443 563                                                                                             
acl     SSL_for_client_banks    port    910 8443 4500                                                                                       
        acl Safe_ports port 80          # http                                                                                              
        acl Safe_ports port 21          # ftp                                                                                               
        acl Safe_ports port 22          # ssh                                                                                               
#        acl Safe_ports port 443        # https                                                                                             
        acl Safe_ports port 5222        # https                                                                                             
        acl CONNECT method CONNECT                                                                                                          
#        http_access allow manager localhost       
#        http_access deny manager                                                                                                           
        http_access deny !Safe_ports                                                                                                        
#        http_access deny CONNECT !SSL_ports                                                                                                
#        ident_lookup on                                                                                                                    
#        acl allowed_users  root di                                                                                                         
#        http_access allow allowed_users                                                                                                    
#        http_access deny all                                                                                                               
cache_effective_user squid                                                                                                                  
cache_effective_group squid                                                                                                                 
#auth_param ntlm program /usr/local/libexec/squid/ntlm_auth /usr/local/etc/squid/squid.pass                                                 
#auth_param basic program /usr/local/libexec/squid/ntlm_auth /usr/local/etc/squid/squid.pass                                                
#auth_param basic children 5                                                                                                                
#auth_param basic realm Squid proxy-caching web server                                                                                      
#auth_param basic credentialsttl 2 hours                                                                                                    
#auth_param basic casesensitive off                                                                                                         
#ncsa_auth ntlm /usr/local/etc/squid/squid.pass                                                                                             
#####################################################################                                                                       
###acl UAIXLIST            dst "/usr/local/etc/squid/access_list/ua-ix.cfg"                                                                 
#   acl host_alfa           src 10....8 # ?????? ????                                                                                     
   acl host_luna          src 193.... # ?????? ????                                                                                   
###   http_access allow host_luna UAIXLIST                                                                                                  
###   http_access deny host_luna all                              

Re: эффективность squid

Добавлено: 2008-06-10 14:27:10
manefesto
епт...отредактируй нормально...
а то страх смотреть...