proxy代理   soft软件   IT 业界特快   norton 诺顿病毒库   代理列表   search FTP搜索   whois IP地理位置   blog 追求完美  
money理财   life生活   RSS聚合门户   firefox WEB浏览器   免费域名   typeset 假古文   AntiVirus 反病毒   ipcn 站点导航  

« FreeBSD 的包管理之package pkg_* | Main | epoll poll select - squid compile options »

August 1, 2005

Squid version 2.4 与 2.4 2.5 在FreeBSD上的表现

版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。
https://windtear.net/archives/2005/08/01/000732.html http://windtear.net/archives/2005/08/01/000732.html

研究 squid 2.5 在 FreeBSD 上的表现
于是就看了 Squid version 2.4

http://www.squid-cache.org/Versions/v2/2.4/

2.4 Stable6 也算是用了好久好久了
那是属于校园的时代 那是squid的时代

关于2.4 2.5在FreeBSD上的表现 下次再写吧
参数调整 性能优化都不是一分钟的事

Squid version 2.4

Squid-2.4 Releases

Release Date diff
2.4.STABLE1 Tue Mar 20 21:24:47 GMT 2001 from 2.4.PRE-STABLE2
2.4.STABLE2 Mon Aug 27 00:55:41 GMT 2001 from 2.4.STABLE1
2.4.STABLE3 Thu Nov 29 00:33:30 GMT 2001 from 2.4.STABLE2
2.4.STABLE4 Tue Feb 19 01:09:30 GMT 2002 from 2.4.STABLE3
2.4.STABLE5 is a buggy release -- Do not use it
2.4.STABLE6 Wed Mar 20 00:18:17 GMT 2002 from 2.4.STABLE4
from 2.4.STABLE5
2.4.STABLE7 Tue Jul 2 16:05:58 GMT 2002 from 2.4.STABLE6
Daily auto-generated tarball.
This is the most recent code committed to the SQUID_2_4 branch.
squid-2.4-200305122300 Mon May 12 23:00:46 UTC 2003 N/A

Bugzilla Database Entries for version 2.4.

Avaliable patches for version 2.4.

If you've found a new bug, or wish to comment on one of the already-reported bugs, please visit our Bugzilla database.


Version 2.4 Release Notes
Changes to squid.conf
maximum_object_size_in_memory

This is a new option to replace a formerly hard-coded value. It specifies the size limit for objects kept in memory. Objects larger than this can not be kept in memory.

cache_replacement_policy

This is similar to the old replacement_policy. It specifies the cache replacement algorithm to be used for the disk cache.

memory_replacement_policy

This option specifies the replacement algorithm for the memory cache.

log_ip_on_direct

This new option, which defaults on ON, makes Squid log the origin server's IP address in the 9th field of the access.log file for DIRECT requests. If you turn this option OFF, Squid reverts to the former behavior and logs the hostname or whatever was given in the URL.

referer_log

With this option you can create a logfile that contains HTTP referer headers.

dns_retransmit_interval

This option makes a formerly hard-coded value configurable. It specifies the initial retransmit interval for internal DNS queries.

dns_timeout

This option makes a formerly hard-coded value configurable. It specifies the amount of time to wait for an answer from an internal DNS query. After this amount of time Squid gives up and returns an error.

authenticate_ip_ttl_is_strict

With this enabled Squid denies requests if a user appears to change IP addresses within the authenticate_ip_ttl time.

req_mime_type ACL

This new access control element type allows you to use the request content-type in access controls.

httpd_accel_single_host

When this option is enabled, Squid forwards all httpd_accel requests to the httpd_accel_host, regardless of Host headers and redirector changes.

minimum_direct_rtt

This option requires the --enable-icmp configure option. If the ICMP database reports that the round-trip time to the origin server is less than this limit, then the request is sent directly to the origin server, rather than a neighbor cache.

nonhierarchical_direct

By default, Squid sends any non-hierarchical requests (matching hierarchy_stoplist or not cachable request type) directly to origin servers. If you turn nonhierarchical_direct off, Squid will prefer to send these requests to neighbors.

extension_methods

Squid only knows about standard HTTP request methods. Unknown methods are denied, unless you add them to this list.

high_response_time_warning

If you set this option, Squid will print a warning to cache.log and syslog if the median response time goes above this limit.

high_page_fault_warning

If you set this option, Squid will print a warning to cache.log and syslog if the page fault rate goes above this limit.

high_memory_warning

If you set this option, Squid will print a warning to cache.log and syslog if the memory usage goes above this limit.

store_dir_select_algorithm

Squid currently supports two algorithms for selecting cache directories for new objects: least-load and round-robin. The default is least-load.

ie_refresh

Enables a hack for Microsoft Internet Explorer versions that don't send 'no-cache' request headers when the user presses the reload button.

diskd storage type

A new cache_dir storage type, called diskd has been added. Diskd uses external (child) processes to perform all cache disk I/O operations (open, close, read, write, unlink). I/O requests are sent to diskd processes over message queues. Shared memory is used for reading and writing data buffers. For more information, please see the Diskd FAQ section.

null storage type

If you want to run Squid as a proxy, without caching anything, then the null storage type may be useful. Although it won't use any disk space, it still keeps some statistics that you might like to have.

Changes to configure
--enable-storeio

Use this option to specify which storage modules to build. Possible values are: aufs, coss, diskd, null, ufs. The default is ufs, which is highly recommend for new users. The other modules may not work for all users.

--enable-removal-policies

Use this option if you want more removal policy choices than basic LRU.

--with-coss-membuf-size

Use this option to specify the COSS storage system buffer size.

--enable-linux-netfilter

Use this option if you're using transparent caching on a Linux 2.4.0 or higher kernel.

--enable-auth-modules

Use this option to select which proxy authentication backend modules to use. Possible choices are: LDAP, MSNT, NCSA, PAM, SMB, YP, getpwnam, multi-domain-NTLM.

--disable-unlinkd

Use this option to disable the external file deletion daemon process.

--enable-stacktraces

Your operating system may have support for automatically generating stack traces. Use this option to enable that feature, but don't expect it to work on your particular operating system.

Other Changes
libexec

To avoid naming collisions with other programs, Squid now puts certain ``helper'' programs into $prefix/squid/libexec. The unlinkd, pinger, and diskd programs will all go into this directory by default. If your squid.conf has pathnames for some of these programs, you will need to change it. Also don't forget to run make install-pinger as root to install it in the new location.

Mirrors | ChangeLog | FAQ | Copyright | Contributors | Credits
 
本blog WWW

Posted by windtear at August 1, 2005 11:54 PM

本站使用中的任何问题,请与 windtear @ windtear.net 联系
Copyright© 1999-2024 Windtear. All rights reserved.