[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-users:17590] number of squid children?
中野@成蹊大です。 いつもお世話になっております。
slink なホストで squid を動かしはじめました。
ii squid 2.1.2-1
動作自体は快調なのですが、子プロセスがたくさん
起動するので、ちょっと不思議に思っています。
pstree してみますと、
init-+-RunCache---squid-+-10*[dnsserver]
| |-pinger
| `-squid---16*[squid]
[以下略]
のように 16 個の children が立ち上がります。
# dnsserver の 10 個は squid.conf で指定しています。
それぞれの squid が結構なメモリを食うので、17 個
あると馬鹿にならない消費量になります。
proxy 143 0.1 15.0 10656 7156 ? S 18:16 0:05 squid -D -sNY
一方 slack 上で自分でコンパイルした squid ですと、
init-+-RunCache---squid-+-5*[dnsserver]
| `-unlinkd
[以下略]
のように、特に子プロセスは発生しません。 両者の
squid.conf の diff を取って (末尾に添付) 比べて
みたのですが、特に子プロセスの数を指定する部分は
ないようです。
slink の squid ですと、このような状況は普通なので
しょうか? お使いの方からのコメントがいただければ
幸いです。
--
中野@成蹊大
==以下 diff を取ったもの。 acl とかは取ってあります。
--- squid.conf-orig Mon Aug 30 19:01:44 1999
+++ squid.conf-slink Mon Aug 30 19:01:06 1999
@@ -412,20 +412,20 @@
# will be created under each first-level directory. The default
# is 256.
#
-cache_dir /var/spool/squid 100 16 256
+cache_dir /var/spool/squid 400 16 256
# TAG: cache_access_log
# Logs the client request activity. Contains an entry for
# every HTTP and ICP request received.
#
-cache_access_log /var/log/squid/access.log
+#cache_access_log /var/log/squid/access.log
# TAG: cache_log
# Cache logging file. This is where general information about
# your cache's behaviour goes. You can increase the amount of data
# logged to this file with the "debug_options" tag below.
#
-cache_log /var/log/squid/cache.log
+#cache_log /var/log/squid/cache.log
# TAG: cache_store_log
# Logs the activities of the storage manager. Shows which
@@ -434,7 +434,7 @@
# not really utilities to analyse this data, so you can safely
# disable it.
#
-cache_store_log /var/log/squid/store.log
+#cache_store_log /var/log/squid/store.log
# TAG: cache_swap_log
# Location for the cache "swap.log." This log file holds the
@@ -454,14 +454,14 @@
# is to use the native log format since it includes useful
# information that Squid-specific log analysers use.
#
-emulate_httpd_log on
+emulate_httpd_log off
# TAG: mime_table
# Pathname to Squid's MIME table. You shouldn't need to change
@@ -534,7 +534,7 @@
# Some ftp server also validate that the email address is valid
# (for example perl.com).
#
-ftp_user proxymaster@xxxxxxxxxxxxxxxxxxxx
+#ftp_user Squid@
# TAG: ftp_list_width
# Sets the width of ftp listings. This should be set to fit in
@@ -558,7 +558,7 @@
# strongly discouraged. If you disable dnsservers your Squid
# process will BLOCK on DNS lookups!
#
-dns_children 5
+dns_children 10
# TAG: dns_defnames on|off
# Normally the 'dnsserver' disables the RES_DEFNAMES resolver
@@ -583,14 +583,14 @@
# This isn't needed if you are using async-io since it's handled by
# a thread.
#
-#unlinkd_program /usr/local/squid/bin/unlinkd
+#unlinkd_program /usr/lib/squid/unlinkd
# TAG: pinger_program
# Specify the location of the executable for the pinger process.
# This is only useful if you configured Squid (during compliation)
# with the '--enable-icmp' option.
#
-#pinger_program /usr/local/squid/bin/pinger
+pinger_program /usr/lib/squid/pinger
# TAG: redirect_program
# Specify the location of the executable for the URL redirector.
@@ -606,7 +606,7 @@
# URLs, slowing it down. If you start too many they will use RAM
# and other system resources.
#
-redirect_children 5
+redirect_children 10
# TAG: redirect_rewrites_host_header
# By default Squid rewrites any Host: header in redirected requests.
@@ -629,7 +629,7 @@
#
# Then, set this line to something like
#
-# authenticate_program /usr/local/squid/bin/ncsa_auth /usr/local/squid/etc/passwd
+# authenticate_program /usr/bin/ncsa_auth /usr/etc/passwd
#
#authenticate_program none
@@ -1048,7 +1049,7 @@
# Email-address of local cache manager who will receive
# mail if the cache dies. The default is "webmaster."
#
-cache_mgr proxymaster@xxxxxxxxxxxxxxxxxxxx
+#cache_mgr webmaster
# TAG: cache_effective_user
# TAG: cache_effective_group
@@ -1061,8 +1062,8 @@
# current UID/GID. Note that if Squid is not started as root then
# you cannot set http_port to a value lower than 1024.
#
-cache_effective_user squid
-cache_effective_group proxy
+#cache_effective_user proxy
+#cache_effective_group proxy
# TAG: visible_hostname
# If you want to present a special hostname in error messages, etc,
@@ -1192,7 +1193,7 @@
# in the habit of using 'squid -k rotate' instead of 'kill -USR1
# <pid>'.
#
-logfile_rotate 4
+#logfile_rotate 0
# TAG: append_domain
# Appends local domain name to hostnames without any dots in
# them. append_domain must begin with a period.
@@ -1558,7 +1559,7 @@
#
# NOTE: SNMP support requires use the --enable-snmp configure
# command line option.
-#snmp_port 3401
+#snmp_port -1
# TAG: snmp_do_queueing
# If disabled, snmp packets will not be queued but delivered