• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Squid

Indonesian
10
85
58.4k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G
    grage95
    last edited by Nov 10, 2009, 6:12 PM

    coba paste kesini confignya

    squidclient mgr:config > /tmp/squid.config

    paste hasil /tmp/squid.config  kesini dan berapa ram fisik yang dipasang di server squid

    ini saya paste di salah satu warnet dengan lusca.1.4, p3,ram 256, cache_dir 4Gb, baru di install 5 hari lalu

    Cache information for squid:
            Request Hit Ratios:    5min: 0.0%, 60min: 45.7%
            Byte Hit Ratios:        5min: 0.0%, 60min: 6.7%
            Request Memory Hit Ratios:      5min: 0.0%, 60min: 1.8%
            Request Disk Hit Ratios:        5min: 0.0%, 60min: 84.5%
            Storage Swap size:      3426750 KB
            Storage Mem size:      6088 KB
            Mean Object Size:      8.31 KB

    0,0% lagi sepi, jam 24.00 warnet sudah tutup, tapi sejam sbelumnya masih ada kegiatan akses

    1 Reply Last reply Reply Quote 0
    • 1
      111ichael
      last edited by Nov 11, 2009, 6:09 AM

      @grage95:

      coba paste kesini confignya

      squidclient mgr:config > /tmp/squid.config

      paste hasil /tmp/squid.config  kesini dan berapa ram fisik yang dipasang di server squid

      ini saya paste di salah satu warnet dengan lusca.1.4, p3,ram 256, cache_dir 4Gb, baru di install 5 hari lalu

      Cache information for squid:
              Request Hit Ratios:     5min: 0.0%, 60min: 45.7%
              Byte Hit Ratios:        5min: 0.0%, 60min: 6.7%
              Request Memory Hit Ratios:      5min: 0.0%, 60min: 1.8%
              Request Disk Hit Ratios:        5min: 0.0%, 60min: 84.5%
              Storage Swap size:      3426750 KB
              Storage Mem size:       6088 KB
              Mean Object Size:       8.31 KB

      0,0% lagi sepi, jam 24.00 warnet sudah tutup, tapi sejam sbelumnya masih ada kegiatan akses

      ini hasil squidclient mgr:config aku…
      memory fisik server 1GB, Proc P4, HDD WD 160GB SATA

      
      HTTP/1.0 200 OK
      Server: Lusca/LUSCA_HEAD
      Date: Wed, 11 Nov 2009 06:02:53 GMT
      Content-Type: text/plain
      Expires: Wed, 11 Nov 2009 06:02:53 GMT
      X-Cache: MISS from proxy.kitmor16.net
      X-Cache-Lookup: MISS from proxy.kitmor16.net:80
      Via: 1.0 proxy.pfsense:80 (Lusca/LUSCA_HEAD)
      Connection: close
      
      authenticate_cache_garbage_interval 3600 seconds
      authenticate_ttl 3600 seconds
      authenticate_ip_ttl 0 seconds
      authenticate_ip_shortcircuit_ttl 0 seconds
      acl localnet src 192.168.11.0/255.255.255.224
      acl to_localnet dst 192.168.11.0/255.255.255.224
      acl all src 0.0.0.0/0.0.0.0
      acl localhost src 127.0.0.1
      acl safeports port 21
      acl safeports port 80
      acl safeports port 70
      acl safeports port 210
      acl safeports port 280
      acl safeports port 443
      acl safeports port 488
      acl safeports port 563
      acl safeports port 591
      acl safeports port 631
      acl safeports port 667
      acl safeports port 777
      acl safeports port 901
      acl safeports port 81
      acl safeports port 3128
      acl safeports port 1025-65535
      acl sslports port 443
      acl sslports port 563
      acl sslports port 81
      acl manager proto cache_object
      acl purge method PURGE
      acl connect method CONNECT
      acl apache rep_header Server ^Apache
      acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
      acl QUERY urlpath_regex cgi-bin
      acl QUERY urlpath_regex \?
      acl QUERY urlpath_regex .jsp
      acl QUERY urlpath_regex \?.js
      acl QUERY urlpath_regex cgi-bin
      acl QUERY urlpath_regex to_localnet
      acl snmppublic snmp_community public
      acl snmp_hosts src 127.0.0.1
      acl download url_regex \.exe$
      acl download url_regex \.mp3$
      acl download url_regex \/(get_video|videoplayback\?id|videoplayback.*id)
      acl download url_regex \.3gp$
      acl download url_regex \.gz$
      acl download url_regex \.rar$
      acl download url_regex \.flv$
      acl download url_regex \.mp4$
      acl download url_regex \.tar.gz$
      acl download url_regex \.tar.bz2$
      acl download url_regex \.rpm$
      acl download url_regex \.zip$
      acl download url_regex \.avi$
      acl download url_regex \.mpg$
      acl download url_regex \.mpeg$
      acl download url_regex \.rm$
      acl download url_regex \.iso$
      acl download url_regex \.wav$
      acl download url_regex \.mov$
      acl download url_regex \.dat$
      acl download url_regex \.mpe$
      acl download url_regex \.mid$
      acl download url_regex \.midi$
      acl download url_regex \.rmi$
      acl download url_regex \.wma$
      acl download url_regex \.wmv$
      acl download url_regex \.ogg$
      acl download url_regex \.ogm$
      acl download url_regex \.m1v$
      acl download url_regex \.mp2$
      acl download url_regex \.mpa$
      acl download url_regex \.wax$
      acl download url_regex \.m3u$
      acl download url_regex \.asx$
      acl download url_regex \.wpl$
      acl download url_regex \.wmx$
      acl download url_regex \.dvr-ms$
      acl download url_regex \.snd$
      acl download url_regex \.au$
      acl download url_regex \.aif$
      acl download url_regex \.asf$
      acl download url_regex \.m2v$
      acl download url_regex \.m2p$
      acl download url_regex \.ts$
      acl download url_regex \.tp$
      acl download url_regex \.trp$
      acl download url_regex \.div$
      acl download url_regex \.divx$
      acl download url_regex \.mod$
      acl download url_regex \.vob$
      acl download url_regex \.aob$
      acl download url_regex \.dts$
      acl download url_regex \.ac3$
      acl download url_regex \.cda$
      acl download url_regex \.vro$
      acl download url_regex \.deb$
      acl admin src 192.168.11.2-192.168.11.3
      acl store_rewrite_list urlpath_regex \/(get_video|videoplayback\?id|videoplayback.*id)
      acl store_rewrite_list urlpath_regex \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|wmv|3gp|mp(4|3)|exe|msi|zip|on2|mar)(\=|\?|\;\&)+
      acl store_rewrite_list_domain url_regex ^http:\/\/([A-Za-z-]+[0-9]+)*\.[A-Za-z]*\.[A-Za-z]*
      acl store_rewrite_list_domain url_regex (([a-z]{1,2}[0-9]{1,3})|([0-9]{1,3}[a-z]{1,2}))\.[a-z]*[0-9]?\.[a-z]{3}
      acl store_rewrite_list_path urlpath_regex \.(jp(e?g|e|2)|gif|png|tiff?|bmp|ico|flv|avc|zip|mp3|3gp|rar|on2|mar)$
      acl store_rewrite_list_domain_CDN url_regex ^http:\/\/[a-z]+[0-9]\.google\.co(m|\.uk)
      acl store_rewrite_list_domain_CDN url_regex \.doubleclick\.net.*ord\=
      acl store_rewrite_list_domain_CDN url_regex \.rapidshare\.com.*\/[0-9]*\/.*\/[^\/]*
      acl store_rewrite_list_domain_CDN url_regex ^http:\/\/(www\.ziddu\.com.*\.[^\/]{3,4})\/(.*)
      acl store_rewrite_list_domain_CDN url_regex ^http:\/\/[.a-z0-9]*\.photobucket\.com.*\.[a-z]{3}$
      acl rapidurl url_regex \.rapidshare\.com.*\/[0-9]*\/[0-9]*\/[^\/]*
      acl video urlpath_regex \.((mpeg|ra?m|avi|mp(g|e|4)|mov|divx|asf|qt|wmv|m\dv|rv|vob|asx|ogm|flv|3gp)(\?.*)?)$
      acl video urlpath_regex (get_video\?|videoplayback\?|videodownload\?|\.flv(\?.*)?)
      acl html url_regex \.((html|htm|php|js|css|aspx)(\?.*)?)$
      acl html url_regex \.com\/$
      acl html url_regex \.com$
      acl images urlpath_regex \.((jp(e?g|e|2)|gif|png|tiff?|bmp|ico)(\?.*)?)$
      acl dontrewrite url_regex [a-z0-9]{3}\.photobucket\.com
      acl dontrewrite url_regex redbot\.org
      http_access Allow manager localhost
      http_access Deny manager
      http_access Allow purge localhost
      http_access Deny purge
      http_access Deny !safeports
      http_access Deny connect !sslports
      http_access Allow localhost
      http_access Allow localnet
      http_access Deny all
      http_reply_access Allow all
      icp_access Deny all
      reply_body_max_size 0 Allow all
      http_port 192.168.11.1:80 transparent protocol=http
      http_port 127.0.0.1:3128 transparent protocol=http
      zph_mode off
      zph_local 0
      zph_sibling 0
      zph_parent 0
      zph_option 136
      dead_peer_timeout 10 seconds
      hierarchy_stoplist cgi-bin
      hierarchy_stoplist ?
      hierarchy_stoplist .js
      hierarchy_stoplist .jsp
      cache_mem 268435456 bytes
      maximum_object_size_in_memory 32768 bytes
      memory_replacement_policy heap GDSF
      cache_replacement_policy heap LFUDA
      cache_dir aufs /cache1/squidcache 6000 16 256 max-size=65556
      cache_dir aufs /cache2/squidcache 12000 18 256 min-size=65556
      cache_dir aufs /cache3/squidcache 12000 18 256 min-size=65556
      store_dir_select_algorithm least-load
      max_open_disk_fds 0
      minimum_object_size 0 bytes
      maximum_object_size 104857600 bytes
      cache_swap_low 98
      cache_swap_high 99
      update_headers off
      access_log /dev/null
      logfile_daemon /usr/local/libexec/squid/logfile-daemon
      cache_log /var/squid/log/cache.log
      cache_store_log none
      logfile_rotate 2
      emulate_httpd_log off
      log_ip_on_direct on
      mime_table /usr/local/etc/squid/mime.conf
      log_mime_hdrs off
      pid_filename /var/run/squid.pid
      debug_options ALL,1
      log_fqdn off
      client_netmask 255.255.255.255
      strip_query_terms off
      buffered_logs off
      netdb_filename /usr/local/squid/logs/netdb.state
      ftp_user Squid@
      ftp_list_width 32
      ftp_passive on
      ftp_sanitycheck on
      ftp_telnet_protocol on
      ufs_log_build_program /usr/local/libexec/squid/ufs_rebuild
      coss_log_build_program /usr/local/libexec/squid/coss_rebuild
      diskd_program /usr/local/libexec/squid/diskd-daemon
      unlinkd_program /usr/local/libexec/squid/unlinkd
      storeurl_rewrite_program /usr/local/etc/squid/storeurl.pl
      storeurl_rewrite_children 4
      storeurl_rewrite_concurrency 99
      rewrite_access Deny all
      url_rewrite_children 5
      url_rewrite_concurrency 0
      url_rewrite_host_header on
      storeurl_access Deny dontrewrite
      storeurl_access Allow store_rewrite_list_domain_CDN
      storeurl_access Allow store_rewrite_list
      storeurl_access Allow store_rewrite_list_domain store_rewrite_list_path
      storeurl_access Deny all
      redirector_bypass off
      location_rewrite_children 5
      location_rewrite_concurrency 0
      cache Deny QUERY
      max_stale 604800 seconds
      refresh_pattern windowsupdate.com/.*\.(cab|exe) 40320 100% 43200
       reload-into-ims
      refresh_pattern update.microsoft.com/.*\.(cab|exe) 40320 100% 43200
       reload-into-ims
      refresh_pattern download.microsoft.com/.*\.(cab|exe) 40320 100% 43200
       reload-into-ims
      refresh_pattern imeem.*\.flv 0 0% 0
      
      refresh_pattern ^ftp: 40320 20% 40320
       override-expire reload-into-ims
      refresh_pattern ^gopher: 1440 0% 1440
      
      refresh_pattern \.rapidshare.*\/[0-9]*\/.*\/[^\/]* 161280 90% 161280
       ignore-reload
      refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv?) 5259487 99999999% 5259487
       override-expire ignore-reload
      refresh_pattern \.(ico|video\-stats) 5259487 999999% 5259487
       override-expire override-lastmod ignore-reload ignore-no-cache ignore-private ignore-auth negative-ttl=10080
      refresh_pattern \.etology\? 5259487 999999% 5259487
       override-expire ignore-reload ignore-no-cache
      refresh_pattern galleries\.video(\?|sz) 5259487 999999% 5259487
       override-expire ignore-reload ignore-no-cache
      refresh_pattern brazzers\? 5259487 999999% 5259487
       override-expire ignore-reload ignore-no-cache
      refresh_pattern \.adtology\? 5259487 999999% 5259487
       override-expire ignore-reload ignore-no-cache
      refresh_pattern ^.*(utm\.gif|ads\?|advertising\.com|ad\.yieldmanager\.com|doubleclick\.net|adserving\.cpxinteractive\.com) 5259487 999999% 5259487
       override-expire override-lastmod ignore-reload ignore-no-cache ignore-private ignore-auth
      refresh_pattern ^.*safebrowsing\.clients\.clients\.com\/safebrowsing 5259487 999999% 5259487
       override-expire ignore-reload ignore-no-cache ignore-private ignore-auth negative-ttl=10080
      refresh_pattern ^http:\/\/((cbk|mt|khm)[0-9]?)\.google\.co(m|\.uk) 5259487 999999% 5259487
       override-expire ignore-reload
      refresh_pattern ytimg\.com.*\.jpg 5259487 999999% 5259487
       override-expire ignore-reload
      refresh_pattern (avgate|avira).*(idx|gz)$ 5259487 999999% 5259487
       reload-into-ims ignore-no-cache
      refresh_pattern kaspersky.*\.avc$ 5259487 999999% 5259487
       ignore-reload
      refresh_pattern kaspersky 1440 50% 161280
       ignore-no-cache
      refresh_pattern images\.friendster\.com.*\.(png|gif) 5259487 999999% 5259487
       override-expire ignore-reload
      refresh_pattern facebook.com.*\.(png|gif) 5259487 999999% 5259487
       override-expire ignore-reload
      refresh_pattern garena\.com 5259487 999999% 5259487
       override-expire reload-into-ims
      refresh_pattern photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png) 5259487 999999% 5259487
       override-expire ignore-reload
      refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 5259487 999999% 5259487
       override-expire override-lastmod ignore-no-cache
      refresh_pattern profile.ak.fbcdn.net.*\.jpg 40320 20% 40320
       ignore-reload
      refresh_pattern -i \.(ico|js)$ 5259487 999999% 5259487
       override-expire override-lastmod ignore-reload
      refresh_pattern -i \.(mov|mpg|mpeg|flv|avi|mp3|3gp|sis|wma) 5259487 999999% 5259487
       override-lastmod reload-into-ims
      refresh_pattern -i \.(zip|rar|ace|bz|bz2|tar|gz|exe) 5259487 999999% 5259487
       override-lastmod reload-into-ims
      refresh_pattern -i (.*html$|.*htm|.*shtml|.*aspx|.*asp) 5259487 999999% 5259487
       override-lastmod reload-into-ims
      refresh_pattern -i \.(class|css|js|gif|jpg)$ 5259487 999999% 5259487
       override-expire override-lastmod
      refresh_pattern -i \.(jpe|jpeg|png|bmp|tif)$ 5259487 999999% 5259487
       override-expire override-lastmod
      refresh_pattern -i \.(tiff|mov|avi|qt|mpeg)$ 5259487 999999% 5259487
       override-expire override-lastmod
      refresh_pattern -i \.(mpg|mpe|wav|au|mid)$ 5259487 999999% 5259487
       override-expire override-lastmod
      refresh_pattern -i \.(zip|gz|arj|lha|lzh)$ 5259487 999999% 5259487
       override-expire override-lastmod
      refresh_pattern -i \.(rar|tgz|tar|exe|bin)$ 5259487 999999% 5259487
       override-expire override-lastmod
      refresh_pattern -i \.(hqx|pdf|rtf|doc|swf)$ 5259487 999999% 5259487
       override-expire override-lastmod
      refresh_pattern -i \.(inc|cab|ad|txt|dll)$ 5259487 999999% 5259487
       override-expire override-lastmod
      refresh_pattern \.(jp(e?g|e|2)|tiff?|bmp|gif|png) 5259487 999999% 5259487
       override-expire reload-into-ims
      refresh_pattern \.(z(ip|[0-9]{2})|r(ar|[0-9]{2})|jar|bz2|gz|tar|rpm|vpu) 5259487 999999% 5259487
       override-expire reload-into-ims
      refresh_pattern \.(mp3|wav|og(g|a)|flac|midi?|rm|aac|wma|mka|ape) 5259487 999999% 5259487
       override-expire reload-into-ims ignore-reload
      refresh_pattern \.(exe|msi|dmg|bin|xpi|iso|swf|mar|psf|cab) 5259487 999999% 5259487
       override-expire reload-into-ims
      refresh_pattern \.(mpeg|ra?m|avi|mp(g|e|4)|mov|divx|asf|wmv|m\dv|rv|vob|asx|ogm|flv|3gp|on2) 5259487 9999999% 5259487
       override-expire reload-into-ims
      refresh_pattern -i (cgi-bin) 0 0% 0
      
      refresh_pattern \.(php|jsp|cgi|asx)\? 0 0% 0
      
      refresh_pattern \.(php|jsp) 0 0% 0
      
      refresh_pattern . 0 50% 161280
      
      quick_abort_min 0 KB
      quick_abort_max 0 KB
      quick_abort_pct 98
      read_ahead_gap 16384 bytes
      negative_ttl 0 seconds
      positive_dns_ttl 43200 seconds
      negative_dns_ttl 60 seconds
      range_offset_limit -1 bytes
      minimum_expiry_time 60 seconds
      store_avg_object_size 13 KB
      store_objects_per_bucket 20
      request_header_max_size 20480 bytes
      reply_header_max_size 20480 bytes
      request_body_max_size 0 Allow all
      request_body_delay_forward_size 0 Allow all
      upgrade_http0.9 Deny shoutcast
      via on
      cache_vary on
      broken_vary_encoding Allow apache
      collapsed_forwarding off
      collapsed_forwarding_timeout 30
      refresh_stale_hit 0 seconds
      ie_refresh on
      vary_ignore_expire on
      request_entities off
      header_access Accept-Encoding Deny all
      relaxed_header_parser on
      server_http11 off
      ignore_expect_100 off
      forward_timeout 240 seconds
      connect_timeout 60 seconds
      peer_connect_timeout 30 seconds
      read_timeout 900 seconds
      request_timeout 300 seconds
      persistent_request_timeout 120 seconds
      client_lifetime 86400 seconds
      half_closed_clients off
      pconn_timeout 60 seconds
      shutdown_lifetime 6 seconds
      cache_mgr admin@kitmor16.net
      mail_program mail
      cache_effective_user proxy
      cache_effective_group proxy
      httpd_suppress_version_string off
      visible_hostname proxy.kitmor16.net
      unique_hostname proxy.pfsense
      umask 23
      announce_period 31536000 seconds
      announce_host tracker.ircache.net
      announce_port 3131
      httpd_accel_no_pmtu_disc off
      delay_pools 2
      delay_class 1 2
      delay_access 1 Allow admin
      delay_access 1 Deny all
      delay_parameters 1 -1/-1 -1/-1
      delay_class 2 2
      delay_access 2 Allow download
      delay_access 2 Deny all
      delay_parameters 2 -1/-1 10000/10000
      delay_initial_bucket_level 100
      client_persistent_connections off
      server_persistent_connections on
      persistent_connection_after_error off
      detect_broken_pconn off
      digest_generation on
      digest_bits_per_entry 5
      digest_rebuild_period 3600 seconds
      digest_rewrite_period 3600 seconds
      digest_swapout_chunk_size 4096 bytes
      digest_rebuild_chunk_percentage 10
      snmp_port 3401
      snmp_access Allow snmppublic snmp_hosts
      snmp_access Deny all
      snmp_incoming_address 0.0.0.0
      snmp_outgoing_address 255.255.255.255
      icp_port 0
      log_icp_queries on
      udp_incoming_address 0.0.0.0
      udp_outgoing_address 255.255.255.255
      udp_outgoing_address6 [ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff]
      udp_incoming_address6 [::]f:ffff:ffff:ffff:ffff:ffff:ffff:ffff]
      icp_hit_stale off
      minimum_direct_hops 4
      minimum_direct_rtt 400
      netdb_low 900
      netdb_high 1000
      netdb_ping_period 300 seconds
      query_icmp off
      test_reachability off
      icp_query_timeout 0
      maximum_icp_query_timeout 2000
      minimum_icp_query_timeout 5
      mcast_icp_query_timeout 2000
      icon_directory /usr/local/etc/squid/icons
      global_internal_static on
      short_icon_urls off
      error_directory /usr/local/etc/squid/errors/English
      err_html_text 
      deny_info TCP_RESET localnet
      nonhierarchical_direct on
      prefer_direct off
      ignore_ims_on_miss off
      always_direct Allow localhost to_localnet
      always_direct Deny all
      max_filedescriptors 8192
      tcp_recv_bufsize 0 bytes
      incoming_rate 30
      check_hostnames off
      allow_underscore on
      dns_retransmit_interval 5 seconds
      dns_timeout 60 seconds
      dns_defnames off
      dns_nameservers 192.168.11.1
      dns_nameservers 202.134.1.10
      dns_nameservers 203.130.254.140
      dns_nameservers 202.134.1.10
      hosts_file /etc/hosts
      dns_testnames 127.0.0.1
      ignore_unknown_nameservers on
      ipcache_size 8192
      ipcache_low 98
      ipcache_high 99
      fqdncache_size 8192
      memory_pools off
      memory_pools_limit 0 bytes
      forwarded_for off
      cachemgr_passwd none all
      client_db off
      reload_into_ims on
      maximum_single_addr_tries 5
      retry_on_error off
      as_whois_server whois.ra.net
      offline_mode off
      uri_whitespace strip
      coredump_dir none
      balance_on_multiple_ip on
      pipeline_prefetch on
      high_response_time_warning 0
      high_page_fault_warning 0
      high_memory_warning 0 bytes
      sleep_after_fork 0
      zero_buffers on
      windows_ipaddrchangemonitor on
      n_aiops_threads -1
      client_socksize -1
      load_check_stopen on
      load_check_stcreate on
      download_fastest_client_speed off
      
      
      1 Reply Last reply Reply Quote 0
      • G
        grage95
        last edited by Nov 11, 2009, 9:14 AM Nov 11, 2009, 8:48 AM

        untuk kondisi cache_dir ditempat anda, jika partisi cache tersendiri
        tambahkan option cache1-cache3 di /etc/fstab dengan option noatime (ex:/dev/ad0s1g  /cache   ufs     rw,noatime      2       2)
        warning: kalau hardisk cuman satu, gunakan 1 cache_dir saja, kecuali anda menggunakan 3 hardisk fisik, kerja hardisk akan menjadi lemot jika 1 hardisk di gunakan lebih dari 1 cache_dir

        utk tunning option ganti option ini :

        di config squid
        di web config :
        cache_mem 256 MB menjadi cache_mem 32 MB

        di squid.inc
        hierarchy_stoplist cgi-bin ? .js .jsp menjadi hierarchy_stoplist cgi-bin ?

        di tunning.conf
        range_offset_limit -1 menjadi range_offset_limit 0
        download_fastest_client_speed off menjadi download_fastest_client_speed on
        n_aiops_threads -1 menjadi n_aiops_threads 16

        Rasio hit byte dihitung sedikit berbeda daripada rasio hit request. Squid menghitung jumlah byte yang dibaca dari jaringan di sisi server, dan jumlah byte yang ditulis ke sisi klien. Rasio hit byte dihitung dari :

        Byte Hit Ratios = (client_bytes - server_bytes) / client_bytes

        Jika server_bytes lebih besar daripada client_bytes, Nilai byte hit  berakhir dengan nilai negatif.

        Nilai server_bytes mungkin lebih besar daripada client_bytes untuk bebrapa alasan:

        1. Cache Digests dan request  lainnya yang dihasilkan secara internal. Pesan Digest cache cukup besar dan  dihitung dalam server_bytes, tapi karena mereka dikonsumsi secara internal di sisi server, mereka tidak menghitung dalam client_bytes.
        2. User-membatalkan permintaan request. atur nilai quick_abort*
        3. Beberapa permintaan dapat mengkonsumsi lebih banyak bandwidth pada sisi server daripada di sisi klien. Dalam berbagai permintaan, klien meminta hanya mengambil beberapa bagian dari objek. Squid dapat memutuskan untuk mengambil seluruh objek  sehingga dapat digunakan di kemudian hari. Ini berarti men-download lebih dari server daripada pengiriman ke klien. Anda dapat mempengaruhi perilaku ini dengan opsi range_offset_limit menjadi 0

        1 Reply Last reply Reply Quote 0
        • G
          grage95
          last edited by Nov 11, 2009, 9:20 AM

          @ipoelnet:

          Ini OM tolong di koreksi, saya tidak mengerti hasilnya bagus atau nggak?
          Gimana tanda2nya bisa dikatakan bagus tidaknya squid pada info tersebut,.,.?

          $ squidclient -p 80 cache_object://localhost/ mgr:info
          HTTP/1.0 200 OK
          Server: squid/2.6.STABLE21
          Date: Wed, 11 Nov 2009 03:13:53 GMT
          Content-Type: text/plain
          Expires: Wed, 11 Nov 2009 03:13:53 GMT
          Last-Modified: Wed, 11 Nov 2009 03:13:53 GMT
          X-Cache: MISS from hotspot.daruttaqwa
          Proxy-Connection: close

          Squid Object Cache: Version 2.6.STABLE21
          Start Time:  Tue, 10 Nov 2009 15:39:27 GMT
          Current Time:  Wed, 11 Nov 2009 03:13:53 GMT
          Connection information for squid:
            Number of clients accessing cache:  0
            Number of HTTP requests received:  47979
            Number of ICP messages received:  37672
            Number of ICP messages sent:  37678
            Number of queued ICP replies:  0
            Number of HTCP messages received:  0
            Number of HTCP messages sent:  0
            Request failure ratio:    0.00
            Average HTTP requests per minute since start:  69.1
            Average ICP messages per minute since start:  108.5
            Select loop called: 754215 times, 55.243 ms avg
          Cache information for squid:
            Request Hit Ratios:  5min: 29.1%, 60min: 28.0%
            Byte Hit Ratios:  5min: 20.7%, 60min: 21.0%
            Request Memory Hit Ratios:  5min: 11.7%, 60min: 32.1%
            Request Disk Hit Ratios:  5min: 50.0%, 60min: 50.8%
            Storage Swap size:  663102 KB
            Storage Mem size:  119204 KB
            Mean Object Size:  9.92 KB
            Requests given to unlinkd:  0

          ini squid sudah jalan berapa hari? cachenya masih kecil cuma 600Mb, sedang cache_mem nya sudah 100Mb, turunkan cache_mem nya, biarkan hardisk yang bekerja keras,

          1 Reply Last reply Reply Quote 0
          • I
            ipoelnet
            last edited by Nov 11, 2009, 1:04 PM Nov 11, 2009, 11:00 AM

            3 Hari Om he he,.,., soalnya, kemarin Ke Lusca 1.4 terus –enable-arp-acl g' bisa cara configurasi ulang, cache lama delete semua, trs awal lagi... pengguna hotspot pada rame tuh... Om lihat aja di http://daruttaqwa.org/hotspot2 atau http://hotspot.daruttaqwa.org pada perang tuh anak2. soalnya saya matikan terus... he he

            Iso cak, Asal sesuai aturan | Belajarlah seperti orang bodoh

            1 Reply Last reply Reply Quote 0
            • G
              grage95
              last edited by Nov 11, 2009, 1:48 PM

              @ipoelnet:

              3 Hari Om he he,.,., soalnya, kemarin Ke Lusca 1.4 terus –enable-arp-acl g' bisa cara configurasi ulang, cache lama delete semua, trs awal lagi... pengguna hotspot pada rame tuh... Om lihat aja di http://daruttaqwa.org/hotspot2 atau http://hotspot.daruttaqwa.org pada perang tuh anak2. soalnya saya matikan terus... he he

              kenapa musti di delete, kalau migrasi squid filesystemnya sama (aufs ke aufs / diskd ke diskd) gak usah di delet cache, cukup di squid -z aja, untuk support acl arp, bukan lewat config, tapi harus di build ulang.

              silahkan sedot disini lusca vanila yang sudah support arp-acl

              fetch http://shakau.googlepages.com/vanila-arp-lusca-1.4.tbz

              1 Reply Last reply Reply Quote 0
              • I
                ipoelnet
                last edited by Nov 11, 2009, 2:34 PM

                Wah,,, makasih OM,.,. waduh,.,., ada aja Om grage95 in.,.,
                tadi Q udah turunkan cache_mem menjadi 64 terus maxfile mem 64 kb jadinya,.,. setelah 15 menit…
                ternyata........

                Cache information for squid:
                Request Hit Ratios: 5min: 25.2%, 60min: 28.2%
                Byte Hit Ratios: 5min: 21.7%, 60min: 22.4%
                Request Memory Hit Ratios: 5min: 1.8%, 60min: 1.7%
                Request Disk Hit Ratios: 5min: 77.2%, 60min: 57.8%
                Storage Swap size: 800112 KB
                Storage Mem size: 6820 KB
                Mean Object Size: 9.84 KB
                Requests given to unlinkd: 0

                lumyana,.,. thank buaaaaaaaaaaaanyak,.,.,
                tenyata squid memang "iso cak asal sesuai aturan"(nada projeckpo) ha ha
                Oke,.,. mau testing yg support arp ,.,., panjang umur Om grage95.

                Iso cak, Asal sesuai aturan | Belajarlah seperti orang bodoh

                1 Reply Last reply Reply Quote 0
                • 1
                  111ichael
                  last edited by Nov 11, 2009, 11:16 PM Nov 11, 2009, 11:13 PM

                  @grage95:

                  untuk kondisi cache_dir ditempat anda, jika partisi cache tersendiri
                  tambahkan option cache1-cache3 di /etc/fstab dengan option noatime (ex:/dev/ad0s1g  /cache   ufs     rw,noatime      2       2)
                  warning: kalau hardisk cuman satu, gunakan 1 cache_dir saja, kecuali anda menggunakan 3 hardisk fisik, kerja hardisk akan menjadi lemot jika 1 hardisk di gunakan lebih dari 1 cache_dir

                  utk tunning option ganti option ini :

                  di config squid
                  di web config :
                  cache_mem 256 MB menjadi cache_mem 32 MB

                  di squid.inc
                  hierarchy_stoplist cgi-bin ? .js .jsp menjadi hierarchy_stoplist cgi-bin ?

                  di tunning.conf
                  range_offset_limit -1 menjadi range_offset_limit 0
                  download_fastest_client_speed off menjadi download_fastest_client_speed on
                  n_aiops_threads -1 menjadi n_aiops_threads 16

                  Rasio hit byte dihitung sedikit berbeda daripada rasio hit request. Squid menghitung jumlah byte yang dibaca dari jaringan di sisi server, dan jumlah byte yang ditulis ke sisi klien. Rasio hit byte dihitung dari :

                  Byte Hit Ratios = (client_bytes - server_bytes) / client_bytes

                  Jika server_bytes lebih besar daripada client_bytes, Nilai byte hit  berakhir dengan nilai negatif.

                  Nilai server_bytes mungkin lebih besar daripada client_bytes untuk bebrapa alasan:

                  1. Cache Digests dan request  lainnya yang dihasilkan secara internal. Pesan Digest cache cukup besar dan  dihitung dalam server_bytes, tapi karena mereka dikonsumsi secara internal di sisi server, mereka tidak menghitung dalam client_bytes.
                  2. User-membatalkan permintaan request. atur nilai quick_abort*
                  3. Beberapa permintaan dapat mengkonsumsi lebih banyak bandwidth pada sisi server daripada di sisi klien. Dalam berbagai permintaan, klien meminta hanya mengambil beberapa bagian dari objek. Squid dapat memutuskan untuk mengambil seluruh objek  sehingga dapat digunakan di kemudian hari. Ini berarti men-download lebih dari server daripada pengiriman ke klien. Anda dapat mempengaruhi perilaku ini dengan opsi range_offset_limit menjadi 0

                  Ok. Aku akan mencobanya….
                  Trima kasih ya atas pencerahannya....
                  Salam....

                  btw... hdd aku cuman 1, bisa ngak aku naikkan cache dirnya menjadi 20GB ato lebih? apa ad pengaruh di kinerjanya?

                  1 Reply Last reply Reply Quote 0
                  • G
                    grage95
                    last edited by Nov 12, 2009, 12:07 AM

                    Ok. Aku akan mencobanya….
                    Trima kasih ya atas pencerahannya....
                    Salam....

                    btw... hdd aku cuman 1, bisa ngak aku naikkan cache dirnya menjadi 20GB ato lebih? apa ad pengaruh di kinerjanya?

                    bisa, dengan RAM 1 Gb perkirakan saja kebutuhannya, naikin saja cache_dir 40 Gb, dan sebaiknya cache_dir digunakan tdk  lebih dari 50% partisi fisik contoh partisi fisik 80Gb maka utk cache_dir maximum 40Gb, jika menggunakan cache_dir  diatas 50%  dari partisi fisik, maka paralel thread spindel hardisk akan berubah dari optimasi time ke optimasi space (akan keluar pesan messages dr syslog). rekomendasi yang lainnya katanya 80%, namun dalam praktek jika request rata2 diatas 100 hit/s dan kondisi cache_dir sudah penuh, kerja hardisk jadi loyo untuk read/write/delete, saran dari addrian chad (developer squid) gunakan cache_dir tidak lebih dari 50%  partisi fisik.

                    1 Reply Last reply Reply Quote 0
                    • I
                      ipoelnet
                      last edited by Nov 13, 2009, 5:30 PM Nov 13, 2009, 5:24 PM

                      Om… setelah Q pakai http://shakau.googlepages.com/vanila-arp-lusca-1.4.tbz download file sering putus2 delaypool g' jalan, max download tembus, terus max upload file size jika di kasih 256 kb g' bisa submit data... jika request homepage maknyus.. cuman post data error... peringatannya data terlalu besar gitu… Maaf nanya terus he he he,.,., jadi ngrepotin.

                      Iso cak, Asal sesuai aturan | Belajarlah seperti orang bodoh

                      1 Reply Last reply Reply Quote 0
                      • G
                        grage95
                        last edited by Nov 13, 2009, 7:18 PM

                        delay  pool tidak jalan maksudnya bagaimana ? ada error ?

                        post data eroro yang diupload apakah melebihi 256kb ( pembatasan max upload size)

                        coba di paste ke sini hasil

                        $ squidclient -p 80 cache_object://localhost/ mgr:config >/tmp/config

                        1 Reply Last reply Reply Quote 0
                        • I
                          ipoelnet
                          last edited by Nov 16, 2009, 9:35 AM

                          Oh… g' OM grage95, Setelah Q restart ternyata normal,
                          Terus untuk membagi tempat penyimpanan file-file cache yang sesuai ukuran gmn OM?

                          Q ada 2 buah Hardisk 80GB rencananya
                          HD 1 = System
                                    /cache1 = yang file cache ukuran 5-10 MB keatas

                          HD 2 = /cache2 = ukuran 512-1 MB
                                    /cache3 = ukuran 0-512 MB

                          Tolong kanda2....  ???

                          Iso cak, Asal sesuai aturan | Belajarlah seperti orang bodoh

                          1 Reply Last reply Reply Quote 0
                          • G
                            grage95
                            last edited by Nov 16, 2009, 10:04 AM

                            @ipoelnet:

                            Oh… g' OM grage95, Setelah Q restart ternyata normal,
                            Terus untuk membagi tempat penyimpanan file-file cache yang sesuai ukuran gmn OM?

                            Q ada 2 buah Hardisk 80GB rencananya
                            HD 1 = System
                                      /cache1 = yang file cache ukuran 5-10 MB keatas

                            HD 2 = /cache2 = ukuran 512-1 MB
                                      /cache3 = ukuran 0-512 MB

                            Tolong kanda2....  ???

                            memory ram-nya  berapa ?

                            1 Reply Last reply Reply Quote 0
                            • I
                              ipoelnet
                              last edited by Nov 16, 2009, 10:48 AM

                              3 GB OM,.. Proc DualCore 2.2

                              Iso cak, Asal sesuai aturan | Belajarlah seperti orang bodoh

                              1 Reply Last reply Reply Quote 0
                              • G
                                grage95
                                last edited by Nov 16, 2009, 11:27 AM

                                @ipoelnet:

                                3 GB OM,.. Proc DualCore 2.2

                                partisi fisik cache1 = 70 GB
                                partisi fisik cache12 = 80 GB

                                tambahkan  option rw,noatime di fstab

                                cache_dir aufs /cache1 32768 64 256 min-size=65535
                                cache_dir aufs /cache2 40960 64 256 max-size=65535
                                store_dir_select_algorithm round-robin

                                atau bisa menggunakan coss utk file2 kecil, cuman rada ribet sedikit membuatnya :D

                                1 Reply Last reply Reply Quote 0
                                • I
                                  ipoelnet
                                  last edited by Nov 16, 2009, 12:19 PM Nov 16, 2009, 12:15 PM

                                  Setelah Q tambah

                                  rw,noatime – > partisinya yg di tambah param itu kok g' bisa muncul OM?
                                  Maksudnya untuk option ini

                                  32768 64 256 min-size/max-size=65535 –> huruf tebal apa OM

                                  kan biasanya :

                                  32768 16 256

                                  Mau donk kalau bisa yang pakai Coss….biar tambah wussssssss he he

                                  Iso cak, Asal sesuai aturan | Belajarlah seperti orang bodoh

                                  1 Reply Last reply Reply Quote 0
                                  • G
                                    grage95
                                    last edited by Nov 17, 2009, 1:22 AM Nov 17, 2009, 1:04 AM

                                    @ipoelnet:

                                    Setelah Q tambah

                                    rw,noatime – > partisinya yg di tambah param itu kok g' bisa muncul OM?
                                    Maksudnya untuk option ini

                                    32768 64 256 min-size/max-size=65535 –> huruf tebal apa OM

                                    kan biasanya :

                                    32768 16 256

                                    Mau donk kalau bisa yang pakai Coss….biar tambah wussssssss he he

                                    edit /etc/fstab

                                    contoh :

                                    
                                    proxy# cat /etc/fstab
                                    # Device                Mountpoint      FStype  Options         Dump    Pass#
                                    /dev/ad0s1g             /cache            ufs     rw,noatime      2       2
                                    
                                    

                                    supaya berefek bisa di reboot, atau di umount /cache baru di mount /cache

                                    cara ngeceknya, ketik
                                    mount
                                    hasilnya salah satunya ada :
                                    /dev/ad0s1g on /cache (ufs, local, noatime, soft-updates)

                                    max-size=ukuran maksimum yang di izinkan  di cache (dalam byte)
                                    min-size=ukuran minum yang di izinkan  di cache (dalam byte)

                                    cache_dir aufs Directory-Name Mbytes L1 L2 [options]

                                    L2 di rekomendaiskan 256
                                    LI di sesuaikan dengan besaran partisi

                                    dari om Henrik
                                    _simplified formula:

                                    L2 = 256
                                    L1 = cache_dir size / 500, rounded upwards on small numbers..

                                    If L2 is changed or you have a singnificantly different object size
                                    distribution then use the equation above. This simplified formula is
                                    only valid for L2 = 256 and average object size of about 13KB.

                                    Regards
                                    Henrik_

                                    referensi complit filesystem coss
                                    http://wiki.squid-cache.org/Features/CyclicObjectStorageSystem

                                    1 Reply Last reply Reply Quote 0
                                    • I
                                      ipoelnet
                                      last edited by Nov 17, 2009, 1:41 AM

                                      Wah…wah...wah...terims penalarannya OM grage95, wah butuh oprek2 pc baru untuk percobaan dulu nich... test dulu ach, ntr kalu berhasil baru langsung update ke server yg ad.  ;D

                                      Iso cak, Asal sesuai aturan | Belajarlah seperti orang bodoh

                                      1 Reply Last reply Reply Quote 0
                                      • I
                                        ipoelnet
                                        last edited by Nov 20, 2009, 10:40 AM

                                        Kenapa ini ?

                                        2009/11/20 17:12:15| WARNING: All dnsserver processes are busy.
                                        2009/11/20 17:12:15| WARNING: up to 10 pending requests queued
                                        2009/11/20 17:13:09| httpReadReply: Request not yet fully sent "POST http://89.248.172.86/update.php"
                                        2009/11/20 17:13:09| httpReadReply: Request not yet fully sent "POST http://83.170.102.41/update.php"
                                        2009/11/20 17:13:09| httpReadReply: Request not yet fully sent "POST http://83.170.102.41/update.php"
                                        2009/11/20 17:14:48| httpReadReply: Request not yet fully sent "POST http://83.170.102.41/update.php"
                                        2009/11/20 17:14:48| httpReadReply: Request not yet fully sent "POST http://89.248.172.86/update.php"
                                        2009/11/20 17:14:50| httpReadReply: Request not yet fully sent "POST http://89.248.172.90/update.php"
                                        2009/11/20 17:15:13| httpReadReply: Request not yet fully sent "POST http://83.170.102.41/update.php"
                                        2009/11/20 17:15:20| httpReadReply: Request not yet fully sent "POST http://89.248.172.90/update.php"
                                        2009/11/20 17:15:23| httpReadReply: Request not yet fully sent "POST http://89.248.172.86/update.php"
                                        2009/11/20 17:15:40| httpReadReply: Request not yet fully sent "POST http://apps.facebook.com/fbml/fbjs_ajax_proxy.php"
                                        2009/11/20 17:15:55| httpReadReply: Request not yet fully sent "POST http://89.248.172.86/update.php"
                                        2009/11/20 17:16:17| httpReadReply: Request not yet fully sent "POST http://89.248.172.90/update.php"
                                        2009/11/20 17:17:01| httpReadReply: Request not yet fully sent "POST http://apps.facebook.com/fbml/fbjs_ajax_proxy.php"
                                        2009/11/20 17:17:13| parseHttpRequest: Unsupported method 'NICK'
                                        2009/11/20 17:17:13| clientReadRequest: FD 74 (192.168.254.222:2550) Invalid Request
                                        2009/11/20 17:17:43| parseHttpRequest: Unsupported method 'NICK'
                                        2009/11/20 17:17:43| clientReadRequest: FD 51 (192.168.254.222:2560) Invalid Request
                                        2009/11/20 17:17:49| httpReadReply: Request not yet fully sent "POST http://89.248.172.86/update.php"
                                        2009/11/20 17:17:50| httpReadReply: Request not yet fully sent "POST http://89.248.172.90/update.php"
                                        2009/11/20 17:18:16| parseHttpRequest: Unsupported method 'NICK'
                                        2009/11/20 17:18:16| clientReadRequest: FD 57 (192.168.254.222:2568) Invalid Request
                                        2009/11/20 17:18:49| parseHttpRequest: Unsupported method 'NICK'
                                        2009/11/20 17:18:49| clientReadRequest: FD 66 (192.168.254.222:2577) Invalid Request
                                        2009/11/20 17:18:53| clientProcessHit: Vary object loop!
                                        2009/11/20 17:18:54| clientProcessHit: Vary object loop!
                                        2009/11/20 17:18:54| clientProcessHit: Vary object loop!
                                        2009/11/20 17:18:54| clientProcessHit: Vary object loop!
                                        2009/11/20 17:18:55| clientProcessHit: Vary object loop!

                                        Ada yg salah?

                                        Iso cak, Asal sesuai aturan | Belajarlah seperti orang bodoh

                                        1 Reply Last reply Reply Quote 0
                                        • G
                                          grage95
                                          last edited by Nov 20, 2009, 10:45 AM

                                          All dnsserver processes are busy.

                                          di pager/delete saja di squid.inc

                                          #dns_children 32

                                          trs edit sysctl.conf  dan loader.conf

                                          /boot/loader.conf

                                          kern.ipc.maxsockbufs="2097152"
                                          kern.ipc.msgmnb="8192"
                                          kern.ipc.msgssz="64"
                                          kern.ipc.msgtql="2048"
                                          kern.ipc.shmseg="16"
                                          kern.ipc.somaxconn="32768"
                                          kern.ipc.nmbclusters="131072"
                                          kern.ipc.maxsockets="65536"

                                          kern.maxfiles="262144"
                                          kern.maxfilesperproc="65536"
                                          net.inet.tcp.tcbhashsize="4096"

                                          /etc/sysctl.conf

                                          net.inet.ip.fastforwarding=1
                                          net.inet.ip.portrange.last=65535
                                          net.inet.ip.portrange.first=1024
                                          net.inet.icmp.icmplim=0
                                          net.inet.icmp.icmplim_output=0
                                          net.inet.tcp.msl=3000
                                          net.inet.tcp.hostcache.expire=1
                                          net.inet.tcp.inflight.enable=0
                                          net.inet.tcp.sendspace=65535
                                          net.inet.tcp.recvspace=65535
                                          kern.ipc.maxsockbufs=2097152
                                          kern.ipc.maxsockets=65536
                                          kern.ipc.somaxconn=32768
                                          kern.ipc.nmbclusters=131072
                                          kern.maxfiles=262144
                                          kern.maxfilesperproc=65536
                                          net.inet.tcp.delayed_ack=0
                                          net.inet.udp.recvspace=65535
                                          net.inet.udp.maxdgram=57344
                                          net.local.stream.recvspace=65535
                                          net.local.stream.sendspace=65535
                                          kern.dirdelay=6
                                          kern.metadelay=5
                                          kern.filedelay=7

                                          reboot server

                                          1 Reply Last reply Reply Quote 0
                                          64 out of 85
                                          • First post
                                            64/85
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.