[ask] change squid.conf, cache_dir aufs to diskd



  • helo all member,

    i have question about proxy server in pfSense,
    i want to change the cache_dir options from aufs to diskd

    i've edited /usr/local/etc/squid/squid.conf manually using vi and changes the following code

    cache_dir aufs /webproxy/cache 51200 16 256

    with

    cache_dir diskd /webproxy/cache 51200 15 256 Q1=64 Q2=72

    and i started running squid manually, it works fine.
    the problem is, when the system rebooted, the squid.conf file reset to original state
    if that possible if we make the manual changes permanently?

    thanks in advance

    reza



  • why should one use diskd instead of aufs under freebsd ?

    any real advantages ?

    both are non-blocking…

    here's a short description:

    "aufs" uses the same storage format as "ufs", utilizing
    POSIX-threads to avoid blocking the main Squid process on
    disk-I/O. This was formerly known in Squid as async-io.

    "diskd" uses the same storage format as "ufs", utilizing a
    separate process to avoid blocking the main Squid process on
    disk-I/O.



  • squid.conf is recreated at each boot from /usr/local/pkg/squid.inc, edit that one



  • diskd give better performance with freebsd
    thanks mhab12

    :)



  • i checked in a change… upgrade your squid package...
    you'll be able to select aufs or diskd now...



  • thanks trenchiller

    perhaps you want to read this
    http://ezine.daemonnews.org/200209/squid.html

    there's alot of kernel optimization if we want to using diskdaemon

    how to compile custom kernel in pfsense
    or what to make the kernel tweak become dafault option when installing squid packages?

    :)


Locked