CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Linux/Unix社区 >  系统维护与使用区

The Squid Accelerator Mode had trouble me very much !

楼主pwtitle(doodoo)2005-06-02 13:30:02 在 Linux/Unix社区 / 系统维护与使用区 提问

 
  There   has   something   about   Squid   trouble   me   some   days,   i   couldn't   resolve   it,   so   i   write   to   you   ,could   you   help   me   ?   or   someone   else.  
  that   is,  
      I   want   to   configure   Squid   (squid-2.5.STABLE10)   as   "Accelerator   Mode",then   do   like   these:  
      In   my   local   redhat   server,   (IP:192.168.1.248),  
      1、download   squid-2.5.STABLE10   then   unzip   and   confiure   it   like   :  
  -bash-2.05b#   ./configure   --enable-useragent-log   --enable-referer-log   --enable-poll   --disable-internal-dns   --enable-truncate   --prefix=/usr/local/squid/  
      2、configure   squid.conf:  
  http_port   8888  
  icp_port   0  
  hierarchy_stoplist   cgi-bin   ?  
  acl   QUERY   urlpath_regex   cgi-bin   \?  
  no_cache   deny   QUERY  
  cache_mem   128   MB  
  cache_dir   ufs   /usr/local/squid/var/cache   256   16   256  
  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  
  emulate_httpd_log   on  
  log_ip_on_direct   on  
  mime_table   /usr/local/squid/etc/mime.conf  
  pid_filename   /usr/local/squid/var/logs/squid.pid  
  dns_children   10  
  hosts_file   /etc/hosts  
  redirect_rewrites_host_header   off  
  refresh_pattern   ^ftp:                       1440         20%           10080  
  refresh_pattern   ^gopher:                 1440         0%             1440  
  refresh_pattern   .                               0               20%           4320  
  acl   accPort           port   80  
  acl   accProto         proto   HTTP  
  acl   accHost         dstdomain   .pchome.net  
  http_access   allow   accProto   accPort   accHost  
  http_access   allow   all  
  http_reply_access   allow   all  
  icp_access   allow   all  
  cache_mgr   pwTitle@staff.pchome.net  
  cache_effective_user   nobody  
  cache_effective_group   nobody  
  httpd_accel_host   article.pchome.net  
  httpd_accel_port   80  
  httpd_accel_single_host   on  
  httpd_accel_with_proxy   on  
  httpd_accel_uses_host_header   on  
  error_directory   /usr/local/squid/share/errors/Simplify_Chinese  
  coredump_dir   /usr/local/squid/var/cache  
         
        other   config   paragraphs   was   the   default   of   sqquid.conf   ,   then   I   run   squid   ,   yes,   then   i   can   find   squid  
  root             2613           1     0   12:06   ?                 00:00:00   ./squid  
  nobody         2615     2613     0   12:06   ?                 00:00:00   (squid)  
  nobody         2616     2615     0   12:06   ?                 00:00:00   (dnsserver)  
  nobody         2617     2615     0   12:06   ?                 00:00:00   (dnsserver)  
  nobody         2618     2615     0   12:06   ?                 00:00:00   (dnsserver)  
  nobody         2619     2615     0   12:06   ?                 00:00:00   (dnsserver)  
  nobody         2620     2615     0   12:06   ?                 00:00:00   (dnsserver)  
  nobody         2621     2615     0   12:06   ?                 00:00:00   (dnsserver)  
  nobody         2622     2615     0   12:06   ?                 00:00:00   (dnsserver)  
  nobody         2623     2615     0   12:06   ?                 00:00:00   (dnsserver)  
  nobody         2624     2615     0   12:06   ?                 00:00:00   (dnsserver)  
  nobody         2625     2615     0   12:06   ?                 00:00:00   (dnsserver)  
  nobody         2626     2615     0   12:06   ?                 00:00:00   (unlinkd)  
   
  well,   then   i   put   a   static   HTML   file   named   test.html   in   http://article.pchome.net/test.html   ,then   i   visit   from   the   local   server   url   with   http://192.168.1.248:8888/test.html  
  Then   i   run   ab   (Apache   HTTP   server   benchmarking   tool)   like   this:  
  -bash-2.05b#   ab   -n   50   -c   50   http://192.168.1.248:8888/test.html  
  This   is   ApacheBench,   Version   2.0.40-dev   <$Revision:   1.121.2.1   $>   apache-2.0  
  Copyright   (c)   1996   Adam   Twiss,   Zeus   Technology   Ltd,   http://www.zeustech.net/  
  Copyright   (c)   1998-2002   The   Apache   Software   Foundation,   http://www.apache.org/  
   
  Benchmarking   192.168.1.248   (be   patient).....done  
   
   
  Server   Software:                 Apache  
  Server   Hostname:                 192.168.1.248  
  Server   Port:                         8888  
   
  Document   Path:                     /test.html  
  Document   Length:                 609   bytes  
   
  Concurrency   Level:             50  
  Time   taken   for   tests:       5.106607   seconds  
  Complete   requests:             50  
  Failed   requests:                 0  
  Write   errors:                       0  
  Total   transferred:             45500   bytes  
  HTML   transferred:               30450   bytes  
  Requests   per   second:         9.79   [#/sec]   (mean)  
  Time   per   request:               5106.607   [ms]   (mean)  
  Time   per   request:               102.132   [ms]   (mean,   across   all   concurrent   requests)  
  Transfer   rate:                     8.62   [Kbytes/sec]   received  
   
  Connection   Times   (ms)  
              min     mean[+/-sd]   median       max  
  Connect:                 0         0       0.1             0               1  
  Processing:           7     163   720.1           11         5106  
  Waiting:                 6     163   720.0           10         5105  
  Total:                     7     163   720.1           11         5106  
   
  Percentage   of   the   requests   served   within   a   certain   time   (ms)  
      50%           11  
      66%           12  
      75%           78  
      80%         152  
      90%         280  
      95%         346  
      98%       5106  
      99%       5106  
    100%       5106   (longest   request)  
   
   
  then   ran   the   command   again:  
   
  -bash-2.05b#   ab   -n   50   -c   50   http://192.168.1.248:8888/test.html  
  This   is   ApacheBench,   Version   2.0.40-dev   <$Revision:   1.121.2.1   $>   apache-2.0  
  Copyright   (c)   1996   Adam   Twiss,   Zeus   Technology   Ltd,   http://www.zeustech.net/  
  Copyright   (c)   1998-2002   The   Apache   Software   Foundation,   http://www.apache.org/  
   
  Benchmarking   192.168.1.248   (be   patient).....done  
   
   
  Server   Software:                 Apache  
  Server   Hostname:                 192.168.1.248  
  Server   Port:                         8888  
   
  Document   Path:                     /test.html  
  Document   Length:                 609   bytes  
   
  Concurrency   Level:             50  
  Time   taken   for   tests:       0.29978   seconds  
  Complete   requests:             50  
  Failed   requests:                 0  
  Write   errors:                       0  
  Total   transferred:             45500   bytes  
  HTML   transferred:               30450   bytes  
  Requests   per   second:         1667.89   [#/sec]   (mean)  
  Time   per   request:               29.978   [ms]   (mean)  
  Time   per   request:               0.600   [ms]   (mean,   across   all   concurrent   requests)  
  Transfer   rate:                     1467.74   [Kbytes/sec]   received  
   
  Connection   Times   (ms)  
                              min     mean[+/-sd]   median       max  
  Connect:                 0         0       0.0             0               0  
  Processing:         10       14       3.7           13             19  
  Waiting:                 9       14       3.5           13             18  
  Total:                   10       14       3.7           13             19  
   
  Percentage   of   the   requests   served   within   a   certain   time   (ms)  
      50%           13  
      66%           19  
      75%           19  
      80%           19  
      90%           19  
      95%           19  
      98%           19  
      99%           19  
    100%           19   (longest   request)  
   
   
   
  Oh,look   well,with   this   ,   can   i   give   a   conclusion   then   the   Squid   Accelerator   Mode   had   sucessed   ?? 问题点数:0、回复次数:1Top

1 楼pwtitle(doodoo)回复于 2005-06-02 13:30:25 得分 0

Ok,let's   continue.  
  Then   I   rewrite   my   PHP   scripts   file   and   send   the   http   header   infomations   at   the   file   top   ,   like   this,  
   
  <?php  
  header("Last-Modified:   "   .   gmdate("D,   d   M   Y   H:i:s")   .   "   GMT");  
  header("Expires:   "   .gmdate   ("D,   d   M   Y   H:i:s",   time()   +   60   *   10).   "   GMT");  
  ?>  
  <!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.0   Transitional//EN">  
  <html>  
  <head>  
  <title>   数码相机介绍(十一)   -   PChome.net   </title>  
  <meta   NAME="Author"   CONTENT="">  
  <meta   NAME="Editor"   CONTENT="春卷">  
  <meta   name="description"   content="">  
  <meta   name="keywords"   content="canon   pro70">  
  <meta   http-equiv="Content-Type"   content="text/html;   charset=gb2312">  
  ..................  
   
   
  then   I   use   the   CGI   variable   PATH_INFO   rewrite   the   script   URL   ,the   original   url   is    
  http://article.pchome.net/00/00/02/90/?14,35  
  the   new   url   is    
  http://article.pchome.net/00/00/02/90/index.phtml/14/35/index.html  
   
  then   run   ab   visit   from   local   squid   with   url:  
  http://192.168.1.248:8888/00/00/02/90/index.phtml/14/35/index.html  
   
  -bash-2.05b#   ab   -n   50   -c   50   http://192.168.1.248:8888/00/00/02/90/index.phtml/14/35/index.html  
  This   is   ApacheBench,   Version   2.0.40-dev   <$Revision:   1.121.2.1   $>   apache-2.0  
  Copyright   (c)   1996   Adam   Twiss,   Zeus   Technology   Ltd,   http://www.zeustech.net/  
  Copyright   (c)   1998-2002   The   Apache   Software   Foundation,   http://www.apache.org/  
   
  Benchmarking   192.168.1.248   (be   patient).....done  
   
   
  Server   Software:                 Apache  
  Server   Hostname:                 192.168.1.248  
  Server   Port:                         8888  
   
  Document   Path:                     /00/00/02/90/index.phtml/14/35/index.html  
  Document   Length:                 37982   bytes  
   
  Concurrency   Level:             50  
  Time   taken   for   tests:       16.987394   seconds  
  Complete   requests:             50  
  Failed   requests:                 0  
  Write   errors:                       0  
  Total   transferred:             1913400   bytes  
  HTML   transferred:               1899100   bytes  
  Requests   per   second:         2.94   [#/sec]   (mean)  
  Time   per   request:               16987.394   [ms]   (mean)  
  Time   per   request:               339.748   [ms]   (mean,   across   all   concurrent   requests)  
  Transfer   rate:                     109.96   [Kbytes/sec]   received  
   
  Connection   Times   (ms)  
                              min     mean[+/-sd]   median       max  
  Connect:                 0         0       0.0             0               0  
  Processing:     3961   9291   2960.8       9004       16979  
  Waiting:           2247   4612   1780.8       4655         9397  
  Total:               3961   9291   2960.8       9004       16979  
   
  Percentage   of   the   requests   served   within   a   certain   time   (ms)  
      50%       9004  
      66%     10125  
      75%     11033  
      80%     11437  
      90%     11940  
      95%     16059  
      98%     16979  
      99%     16979  
    100%     16979   (longest   request)  
   
  then   again   again   and   again,  
  -bash-2.05b#   ab   -n   50   -c   50   http://192.168.1.248:8888/00/00/02/90/index.phtml/14/35/index.html  
  This   is   ApacheBench,   Version   2.0.40-dev   <$Revision:   1.121.2.1   $>   apache-2.0  
  Copyright   (c)   1996   Adam   Twiss,   Zeus   Technology   Ltd,   http://www.zeustech.net/  
  Copyright   (c)   1998-2002   The   Apache   Software   Foundation,   http://www.apache.org/  
   
  Benchmarking   192.168.1.248   (be   patient).....done  
   
   
  Server   Software:                 Apache  
  Server   Hostname:                 192.168.1.248  
  Server   Port:                         8888  
   
  Document   Path:                     /00/00/02/90/index.phtml/14/35/index.html  
  Document   Length:                 37982   bytes  
   
  Concurrency   Level:             50  
  Time   taken   for   tests:       19.332120   seconds  
  Complete   requests:             50  
  Failed   requests:                 0  
  Write   errors:                       0  
  Total   transferred:             1913400   bytes  
  HTML   transferred:               1899100   bytes  
  Requests   per   second:         2.59   [#/sec]   (mean)  
  Time   per   request:               19332.121   [ms]   (mean)  
  Time   per   request:               386.642   [ms]   (mean,   across   all   concurrent   requests)  
  Transfer   rate:                     96.63   [Kbytes/sec]   received  
   
  Connection   Times   (ms)  
                              min     mean[+/-sd]   median       max  
  Connect:                 0         0       0.0             0               0  
  Processing:     4765   11400   3683.8     10448       19320  
  Waiting:           1694   4319   3077.3       4530       14705  
  Total:               4765   11400   3683.8     10448       19320  
   
  Percentage   of   the   requests   served   within   a   certain   time   (ms)  
      50%     10448  
      66%     11510  
      75%     14812  
      80%     15758  
      90%     17189  
      95%     18775  
      98%     19320  
      99%     19320  
    100%     19320   (longest   request)  
   
   
  the   performance   looks   like   has   no   improved,   and   the   Squid   Accelerator   Mode   looks   like   has   failure   or   no   effect,   what   happend   ?   where   i   had   do   wrong   ?   what   can   i   correct   it   ?  
   
  could   you   help   me   ?   that   had   trouble   me   very   much!  
  Top

相关问题

  • web ftp(squid)的问题
  • squid配置的问题
  • 关于squid+nat和squid+socks5做代理的性能问题
  • Full screen mode(MFC)
  • Data not in edit or insert mode
  • Export error in Direct mode
  • <xhtmlConformance mode="Legacy"/>
  • 有关SQUID的一个问题
  • 关于squid proxy有几点不理解
  • 为什么没有Accelerator?

关键词

  • .net
  • me
  • apache
  • software
  • server
  • squid
  • transferred
  • mean
  • usr
  • local

得分解答快速导航

  • 帖主:pwtitle

相关链接

  • CSDN Blog
  • 技术文档
  • 代码下载
  • 第二书店
  • 读书频道

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo