Squid3-dev saya



  • Mohon dikoreksi master2 pf.. klo bisa ditambahin ilmunya biar mantap..

    HTTP/1.1 200 OK
    Server: squid
    Mime-Version: 1.0
    Date: Thu, 14 Aug 2014 01:12:10 GMT
    Content-Type: text/plain
    Expires: Thu, 14 Aug 2014 01:12:10 GMT
    Last-Modified: Thu, 14 Aug 2014 01:12:10 GMT
    X-Cache: MISS from localhost
    X-Cache-Lookup: MISS from localhost:3128
    Connection: close

    Squid Object Cache: Version 3.3.10
    Start Time:    Wed, 16 Jul 2014 06:43:17 GMT
    Current Time:  Thu, 14 Aug 2014 01:12:10 GMT
    Connection information for squid:
            Number of clients accessing cache:      422
            Number of HTTP requests received:      1481303
            Number of ICP messages received:        0
            Number of ICP messages sent:    0
            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:  35.8
            Average ICP messages per minute since start:    0.0
            Select loop called: 103232749 times, 24.079 ms avg
    Cache information for squid:
            Hits as % of all requests:      5min: 13.3%, 60min: 18.8%
            Hits as % of bytes sent:        5min: 14.4%, 60min: 16.0%
            Memory hits as % of hit requests:      5min: 14.6%, 60min: 24.7%
            Disk hits as % of hit requests: 5min: 49.2%, 60min: 46.7%
            Storage Swap size:      32350074 KB
            Storage Swap capacity:  31.6% used, 68.4% free
            Storage Mem size:      16220 KB
            Storage Mem capacity:  99.0% used,  1.0% free
            Mean Object Size:      70.92 KB
            Requests given to unlinkd:      0
    Median Service Times (seconds)  5 min    60 min:
            HTTP Requests (All):  0.72387  0.55240
            Cache Misses:          0.89858  0.80651
            Cache Hits:            0.00379  0.00179
            Near Hits:            0.58309  0.30459
            Not-Modified Replies:  0.00091  0.00000
            DNS Lookups:          0.14261  0.14261
            ICP Queries:          0.00000  0.00000
    Resource usage for squid:
            UP Time:        2485733.145 seconds
            CPU Time:      9664.598 seconds
            CPU Usage:      0.39%
            CPU Usage, 5 minute avg:        5.07%
            CPU Usage, 60 minute avg:      4.10%
            Process Data Segment Size via sbrk(): 0 KB
            Maximum Resident Size: 473296 KB
            Page faults with physical i/o: 131
    Memory accounted for:
            Total accounted:        62376 KB
            memPoolAlloc calls: 403999462
            memPoolFree calls:  411917937
    File descriptor usage for squid:
            Maximum number of file descriptors:  11095
            Largest file desc currently in use:    773
            Number of file desc currently in use:  469
            Files queued for open:                  0
            Available number of file descriptors: 10626
            Reserved number of file descriptors:  100
            Store Disk files open:                  3
    Internal Data Structures:
            456247 StoreEntries
              2955 StoreEntries with MemObjects
              2933 Hot Object Cache Items
            456173 on-disk objects



  • Di tunggu tutornya :))



  • klo tutornya udah ada disini.. ;D

    Baru update ni kemarin malem..

    df -h

    Filesystem    Size    Used  Avail Capacity  Mounted on
    /dev/ad2s1a    447G    74G    337G    18%    /
    devfs          1.0k    1.0k      0B  100%    /dev
    /dev/ad1s1a    222G    57G    147G    28%    /cache
    /dev/md0      3.6M    60k    3.3M    2%    /var/run
    devfs          1.0k    1.0k      0B  100%    /var/dhcpd/dev

    squidclient -p mgr:info

    HTTP/1.1 200 OK
    Server: squid
    Mime-Version: 1.0
    Date: Thu, 04 Sep 2014 02:01:50 GMT
    Content-Type: text/plain
    Expires: Thu, 04 Sep 2014 02:01:50 GMT
    Last-Modified: Thu, 04 Sep 2014 02:01:50 GMT
    X-Cache: MISS from localhost
    X-Cache-Lookup: MISS from localhost:3128
    Connection: close

    Squid Object Cache: Version 3.3.10
    Start Time:    Wed, 03 Sep 2014 12:38:08 GMT
    Current Time:  Thu, 04 Sep 2014 02:01:50 GMT
    Connection information for squid:
            Number of clients accessing cache:      112
            Number of HTTP requests received:      79057
            Number of ICP messages received:        0
            Number of ICP messages sent:    0
            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:  98.4
            Average ICP messages per minute since start:    0.0
            Select loop called: 2689894 times, 17.927 ms avg
    Cache information for squid:
            Hits as % of all requests:      5min: 12.9%, 60min: 19.5%
            Hits as % of bytes sent:        5min: 3.0%, 60min: 14.7%
            Memory hits as % of hit requests:      5min: 12.6%, 60min: 11.7%
            Disk hits as % of hit requests: 5min: 79.0%, 60min: 43.5%
            Storage Swap size:      58697268 KB
            Storage Swap capacity:  57.3% used, 42.7% free
            Storage Mem size:      16216 KB
            Storage Mem capacity:  99.0% used,  1.0% free
            Mean Object Size:      55.04 KB
            Requests given to unlinkd:      0
    Median Service Times (seconds)  5 min    60 min:
            HTTP Requests (All):  0.42149  0.46965
            Cache Misses:          0.58309  0.72387
            Cache Hits:            0.02592  0.00179
            Near Hits:            0.28853  0.33943
            Not-Modified Replies:  0.00091  0.00091
            DNS Lookups:          0.10906  0.14261
            ICP Queries:          0.00000  0.00000
    Resource usage for squid:
            UP Time:        48221.809 seconds
            CPU Time:      329.574 seconds
            CPU Usage:      0.68%
            CPU Usage, 5 minute avg:        2.46%
            CPU Usage, 60 minute avg:      4.56%
            Process Data Segment Size via sbrk(): 0 KB
            Maximum Resident Size: 718576 KB
            Page faults with physical i/o: 0
    Memory accounted for:
            Total accounted:      109299 KB
            memPoolAlloc calls:  22476328
            memPoolFree calls:  22844641
    File descriptor usage for squid:
            Maximum number of file descriptors:  11095
            Largest file desc currently in use:    799
            Number of file desc currently in use:  287
            Files queued for open:                  0
            Available number of file descriptors: 10808
            Reserved number of file descriptors:  100
            Store Disk files open:                  2
    Internal Data Structures:
            1066449 StoreEntries
              2691 StoreEntries with MemObjects
              2675 Hot Object Cache Items
            1066381 on-disk objects



  • ada yang tahu cara backup dan restore cache ? (cache terpisah)

    yang saya alami ketika padam listrik!!

    hardisk cache yang terpisah tidak terbaca oleh system pfsense..
    sehingga harus dilakukan kembali..("squid -z" tetap tidak terbaca)!!STOP SQUIDNYA!!

    #newfs /dev/nama_hardisk_anda

    #ee /etc/fstab
    edit / tambahkan
    /dev/hardisk_anda  /nama_cache ufs rw,noatime 2 2 (save)

    #mkdir /nama_cache

    #mount -a

    #df -h (baru kebaca deh hardisk cachenya (yg terpisah)
    masuk ke GUI rubah direktory cachenya ditujukan ke hardisk terpisah ( /nama_cahe)

    #chown proxy:proxy /nama_cache

    #chmod 777 /nama_cache

    #rm -R /var/squid/cache/* (cache lama masih belum terhapus)

    #squid -z

    #reboot

    pfsense kembali normal, tapi cache yang terpisah terhapus jadi 0% terlalu.. :'(

    df -h

    Filesystem    Size    Used  Avail Capacity  Mounted on
    /dev/ad2s1a    447G    78G    333G    19%    /
    devfs          1.0k    1.0k      0B  100%    /dev
    /dev/ad1s1a    222G    234M    204G    0%    /cache
    /dev/md0      3.6M    60k    3.3M    2%    /var/run
    devfs          1.0k    1.0k      0B  100%    /var/dhcpd/dev

    ada solusi lain?..


Log in to reply