Installed pf to a hard drive, only uses 2% no matter what settings I try.



  • Greetings, I have been running pfsense on a little intel atom box I have for a couple years now. Recently, I decided to see if pfsense was actually 'using' the hard drive. I changed my settings for squid so that it caches and logs to the hard drive, but it seems no matter how I set it up, pfsense will only use 2% of the 160GB drive. I think I may not have squid setup properly. Under Services>Squid Proxy Server>Local Cache I have these settings for 'Squid Hard Disk Cache Settings':

    Hard disk cache size: 40000
    Hard disk cache system: diskd
    Level 1 directories: 64
    Hard disk location: /squidCache
    Minimum object size: 0
    Maximum object size: 64

    And under 'Dynamic and Update Content' I have it enabled with these refresh patterns:

    refresh_pattern -i microsoft.com/.*.(cab|exe|ms[i|u|f]|[ap]sf|wm[v|a]|dat|zip) 4320 80% 43200 reload-into-ims

    refresh_pattern -i windowsupdate.com/.*.(cab|exe|ms[i|u|f]|[ap]sf|wm[v|a]|dat|zip) 4320 80% 43200 reload-into-ims

    refresh_pattern -i windows.com/.*.(cab|exe|ms[i|u|f]|[ap]sf|wm[v|a]|dat|zip) 4320 80% 43200 reload-into-ims

    refresh_pattern -i .htm 120 50% 10080 reload-into-ims
    refresh_pattern -i .html 120 50% 10080 reload-into-ims
    refresh_pattern ^http://.facebook.com/ 720 100% 4320
    refresh_pattern ^http://mail.yahoo.com/.* 720 100% 4320
    refresh_pattern ^http://.yahoo./.* 720 100% 4320
    refresh_pattern ^http://.yimg./.* 720 100% 4320
    refresh_pattern ^http://.gmail./.* 720 100% 4320
    refresh_pattern ^http://.google./.* 720 100% 4320
    refresh_pattern ^http://.kaskus./.* 720 100% 4320
    refresh_pattern ^http://.googlesyndication./.* 720 100% 4320
    refresh_pattern ^http://.plasa./.* 720 100% 4320
    refresh_pattern ^http://.telkom./.* 720 100% 4320

    1 year = 525600 mins, 1 month = 43800 mins

    refresh_pattern imeem..flv  0 0% 0    override-lastmod override-expire
    refresh_pattern .rapidshare.
    /[0-9]/./[^/]*  161280    90%    161280 ignore-reload

    refresh_pattern (get_video?|videoplayback?|videodownload?|.flv?)    10800 80% 10800 ignore-no-cache  ignore-private override-expire override-lastmod reload-into-ims
    refresh_pattern (get_video?|videoplayback?id|videoplayback.id|videodownload?|.flv?)    10800 80% 10800 ignore-no-cache  ignore-private override-expire override-lastmod reload-into-ims
    #refresh_pattern -i (get_video?|videoplayback?id|videoplayback.id||videodownload?|.flv?)      10800 80% 10800 ignore-no-cache  ignore-private override-expire override-lastmod reload-into-ims
    refresh_pattern .etology?                      10800 80% 10800    override-expire ignore-reload ignore-no-cache
    refresh_pattern galleries.video(?|sz)              10800 80% 10800    override-expire ignore-reload ignore-no-cache
    refresh_pattern .adtology?                      10800 80% 10800    override-expire ignore-reload ignore-no-cache
    refresh_pattern ytimg.com.
    .jpg                  10800 80% 10800    override-expire ignore-reload
    refresh_pattern images.friendster.com.
    .(png|gif)          10800 80% 10800    override-expire ignore-reload
    refresh_pattern garena.com                                  10800 80% 10800    override-expire reload-into-ims
    refresh_pattern photobucket..(jp(e?g|e|2)|tiff?|bmp|gif|png)  10800 80% 10800    override-expire ignore-reload
    refresh_pattern vid.akm.dailymotion.com.
    .on2?          10800 80% 10800 ignore-no-cache override-expire override-lastmod
    refresh_pattern mediafire.com/images..(jp(e?g|e|2)|tiff?|bmp|gif|png)    10800 80% 10800 reload-into-ims override-expire ignore-private
    refresh_pattern ^http://images|pics|thumbs[0-9].      10800 80% 10800 reload-into-ims ignore-no-cache  ignore-reload override-expire
    refresh_pattern ^http://www.onemanga.com.
    /          10800 80% 10800 reload-into-ims ignore-no-cache  ignore-reload override-expire

    ANTI VIRUS

    refresh_pattern guru.avg.com/..(bin)                      10800 80% 10800 ignore-no-cache  ignore-reload  reload-into-ims
    refresh_pattern (avgate|avira).
    (idx|gz)$                          10800 80% 10800 ignore-no-cache  ignore-reload  reload-into-ims
    refresh_pattern kaspersky..avc$                                  10800 80% 10800 ignore-no-cache  ignore-reload  reload-into-ims
    refresh_pattern kaspersky                                          10800 80% 10800 ignore-no-cache  ignore-reload  reload-into-ims
    refresh_pattern update.nai.com/.
    .(gem|zip|mcs)                    10800 80% 10800 ignore-no-cache  ignore-reload  reload-into-ims
    refresh_pattern ^http://liveupdate.symantecliveupdate.com.*(zip)    10800 80% 10800 ignore-no-cache  ignore-reload  reload-into-ims

    refresh_pattern windowsupdate.com/..(cab|exe)            10800  80%  10800 ignore-no-cache  ignore-reload  reload-into-ims
    refresh_pattern update.microsoft.com/.
    .(cab|exe)            10800  80%  10800 ignore-no-cache  ignore-reload  reload-into-ims
    refresh_pattern download.microsoft.com/.*.(cab|exe)            10800  80%  10800 ignore-no-cache  ignore-reload  reload-into-ims

    #images facebook
    refresh_pattern ((facebook.com)|(85.131.151.39))..(jpg|png|gif)      10800 80% 10800 ignore-reload  override-expire ignore-no-cache
    refresh_pattern -i .fbcdn.net.
    .(jpg|gif|png|swf|mp3)                  10800 80% 10800 ignore-reload  override-expire ignore-no-cache
    refresh_pattern  static.ak.fbcdn.net*.(jpg|gif|png)                  10800 80% 10800 ignore-reload  override-expire ignore-no-cache
    refresh_pattern ^http://profile.ak.fbcdn.net*.(jpg|gif|png)      10800 80% 10800 ignore-reload  override-expire ignore-no-cache

    #banner IIX
    refresh_pattern ^http://openx..(jp(e?g|e|2)|gif|pn[pg]|swf|ico|css|tiff?) 10800 99999% 10800 reload-into-ims  ignore-reload override-expire ignore-no-cache
    refresh_pattern ^http://ads(1|2|3).kompas.com.
    /          10800 99999% 10800 reload-into-ims  ignore-reload override-expire ignore-no-cache
    refresh_pattern ^http://img.ads.kompas.com./          10800 99999% 10800 reload-into-ims  ignore-reload override-expire ignore-no-cache
    refresh_pattern .kompasimages.com.
    .(jpg|gif|png|swf)      10800 99999% 10800 reload-into-ims  ignore-reload override-expire ignore-no-cache
    refresh_pattern ^http://openx.kompas.com./          10800 99999% 10800 reload-into-ims  ignore-reload override-expire ignore-no-cache
    refresh_pattern kaskus.\us.
    .(jp(e?g|e|2)|gif|png|swf)        10800 99999% 10800 reload-into-ims  ignore-reload override-expire ignore-no-cache
    refresh_pattern ^http://img.kaskus.us.*.(jpg|gif|png|swf)      10800 99999% 10800 reload-into-ims  ignore-reload override-expire ignore-no-cache

    #IIX DOWNLOAD
    refresh_pattern ^http://.www[0-9][0-9].indowebster.com/(.*)(mp3|rar|zip|flv|wmv|3gp|mp(4|3)|exe|msi|zip) 10800 99999% 10800 reload-into-ims  ignore-reload override-expire ignore-no-cache    ignore-auth

    #All File
    refresh_pattern -i .(3gp|7z|ace|asx|avi|bin|cab|dat|deb|divx|dvr-ms)      10800 80% 10800 ignore-no-cache  ignore-private override-expire override-lastmod reload-into-ims
    refresh_pattern -i .(rar|jar|gz|tgz|bz2|iso|m1v|m2(v|p)|mo(d|v))          10800 80% 10800 ignore-no-cache  ignore-private override-expire override-lastmod reload-into-ims
    refresh_pattern -i .(jp(e?g|e|2)|gif|pn[pg]|bm?|tiff?|ico|swf|css|js)    10800 80% 10800 ignore-no-cache  ignore-private override-expire override-lastmod reload-into-ims
    refresh_pattern -i .(mp(e?g|a|e|1|2|3|4)|mk(a|v)|ms(i|u|p)|og(x|v|a|g)|rar|rm|r(a|p)m|snd|vob|wav) 10800 80% 10800 ignore-no-cache ignore-private override-expire override-lastmod reload-into-ims
    refresh_pattern -i .(pp(s|t)|wax|wm(a|v)|wmx|wpl|zip|cb(r|z|t))    10800 80% 10800 ignore-no-cache ignore-private override-expire override-lastmod reload-into-ims
    refresh_pattern ^http://198.38.108.222/* 720 100% 4320
    refresh_pattern ^http://.global.netflix.com/ 720 100% 4320
    refresh_pattern ^http://.disqus.com/ 720 100% 4320

    I don't see any errors in my logs and squid runs fine, maybe my refresh patterns are wrong? Any help would be greatly appreciated.