Hello, Pe un gentoo (2.6.14-gentoo-r5) este instalat squid-ul din portage. Urmatoarele linii sunt loate dintr-un log.
--15:55:49-- http://www.kernel.org/pub/linux/kernel/v2.6/patch-2.6.15.gz => `patch-2.6.15.gz.7' Connecting to 127.0.0.1:3128... connected. Proxy request sent, awaiting response... 200 OK Length: 7,648,543 (7.3M) [application/x-gzip] 0K .......... .......... .......... .......... .......... 0% 262K 0:28 50K .......... .......... .......... .......... .......... 1% 260K 0:28 100K .......... .......... .......... .......... .......... 2% 272K 0:26 ----------------------------------- snip ------------------------------------ 1450K .......... .......... .......... .......... .......... 20% 258K 0:23 1500K .......... .......... .......... .......... .......... 20% 263K 0:22 1550K .......... .......... .......... .......... .......... 21% 240K 0:24 1600K .......... .......... .......... .......... .......... 22% 1.06M 0:05 1650K .......... .......... .......... .......... .......... 22% 9.77M 1700K .......... .......... .......... .......... .......... 23% 12.2M 1750K .......... .......... .......... .......... .......... 24% 9.77M 1800K .......... .......... .......... .......... .......... 24% 12.2M 1850K .......... .......... .......... .......... .......... 25% 9.77M ----------------------------------- snip ------------------------------------ 7400K .......... .......... .......... .......... .......... 99% 12.2M 7450K .......... ......... 100% 9.41M Este pus proxy pentru wget pe localhost. Squid-ul , dupa cum se vede, desi are obiectul in cache, mi-l da cu taraita... si dupa ce vede ca-s tigan... cedeaza.. Cel mai destept cedeaza. Problema e ca prostia mea nu-l poate convinge ca el este mai destept de la primul contact... si la fiecare obiect ii trebuie cateva secunde bune pana sa transmita cu viteza NORMALA (10MB). S-a lovit cineva de asa ceva pana acum ? Aveti idee de la ce poate fi ? squid.conf arata in felul urmator: http_port 3128 hierarchy_stoplist cgi-bin ? acl QUERY urlpath_regex cgi-bin \? no_cache deny QUERY cache_mem 400 MB maximum_object_size 16 MB maximum_object_size_in_memory 100 KB ipcache_size 10240 ipcache_low 90 ipcache_high 95 fqdncache_size 1024 cache_replacement_policy heap LFUDA memory_replacement_policy heap LRU cache_dir diskd /var/cache/squid/ 1000 16 256 Q1=64 Q2=72 emulate_httpd_log on ftp_passive on diskd_program /usr/lib/squid/diskd 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 refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern . 0 20% 4320 acl snmpcommunity snmp_community public acl all src 0.0.0.0/0.0.0.0 acl manager proto cache_object 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 Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 563 # https, snews acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 # http-mgmt acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http acl Safe_ports port 901 # SWAT acl purge method PURGE acl CONNECT method CONNECT acl localnet src 192.168.1.0/24 http_access allow localnet http_access allow manager localhost http_access deny manager http_access allow purge localhost http_access deny purge http_access deny !Safe_ports http_access deny CONNECT !SSL_ports http_access allow localhost http_access deny all http_reply_access allow all icp_access allow all httpd_accel_host virtual httpd_accel_port 80 httpd_accel_with_proxy on httpd_accel_uses_host_header on forwarded_for off snmp_port 3401 snmp_access allow snmpcommunity localhost snmp_access deny all coredump_dir /var/cache/squid pipeline_prefetch on _______________________________________________ RLUG mailing list [email protected] http://lists.lug.ro/mailman/listinfo/rlug
