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

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

    Scheduled Pinned Locked Moved pfSense Packages
    6 Posts 3 Posters 8.7k Views
    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.
    • S
      si_faisal
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • T
        trendchiller
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • M
          mhab12
          last edited by

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

          1 Reply Last reply Reply Quote 0
          • S
            si_faisal
            last edited by

            diskd give better performance with freebsd
            thanks mhab12

            :)

            1 Reply Last reply Reply Quote 0
            • T
              trendchiller
              last edited by

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

              1 Reply Last reply Reply Quote 0
              • S
                si_faisal
                last edited by

                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?

                :)

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