squid と windows update
squid で proxyサーバーを立ててあり wpad で自動設定を配布しているのだが、windows update を実行していて気が付いた.500kBとか1MBとかくらいのサイズのファイルのダウンロードはキャッシュが効いているようだが10MBとかの大きなサイズのダウンロードはキャッシュが効いていないように見える.ということはキャッシュのサイズについての設定が有るのだと思い確認.
/usr/local/etc/squid/squid.conf.default
# TAG: maximum_object_size (bytes) # Objects larger than this size will NOT be saved on disk. The # value is specified in kilobytes, and the default is 4MB. If # you wish to get a high BYTES hit ratio, you should probably # increase this (one 32 MB object hit counts for 3200 10KB # hits). If you wish to increase speed more than your want to # save bandwidth you should leave this low. # # NOTE: if using the LFUDA replacement policy you should increase # this value to maximize the byte hit rate improvement of LFUDA! # See replacement_policy below for a discussion of this policy. # #Default: # maximum_object_size 4096 KB
デフォルトは4MBでした.「この値をおおきくするとバイトヒットレートはあがるけどもスピードと帯域幅を稼ぎたいなら小さい値にしておけ」とのことなのだが.どういう意味だろう?