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

    APC extension RAM usage

    Scheduled Pinned Locked Moved webGUI
    6 Posts 4 Posters 3.9k 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.
    • G
      gbelanger
      last edited by

      My box currently runs at 19% RAM usage (out of 512MB). It resides in an office that currently generates little to no traffic because it's 1:30 AM.

      I got a look at the running processes : PHP uses almost 50MB or RAM. Running a PHPInfo shows that the APC extension is installed, and running the apc.php script (it's a web interface to the apc cache) shows that APC is using 6.8 MB + 23.2 MB (that it keeps as a buffer). Thats 30 MB.

      I realize that APC is beneficial because it creates a more responsive interface and takes the load off the CPU. However, I can imagine how this 30MB of memory could mean alot to someone with, say, 128MB of RAM.

      The apc.shm_size setting seems to be the key (shared memory size). Maybe it could be added to the system's advanced settings configuration? Or maybe the default could be reduced to 10 or 15 MB?

      Any comments on this?

      Thanks -

      Guillaume
      apc-shot.gif
      apc-shot.gif_thumb
      webconf-status.gif
      webconf-status.gif_thumb
      apc-shot.gif_thumb
      webconf-status.gif_thumb

      1 Reply Last reply Reply Quote 0
      • B
        billm
        last edited by

        Thanks, we use xcache in HEAD, but assuming that we'll have another release on the RELENG_1 branch, I've dropped this down to 5M (I thought it was low in the first place, oops).  All our PHP in /etc/inc and /usr/local/www adds up to just over 4M so this should allow us to still cache pretty much all accessed PHP in memory.

        –Bill

        pfSense core developer
        blog - http://www.ucsecurity.com/
        twitter - billmarquette

        1 Reply Last reply Reply Quote 0
        • H
          hoba
          last edited by

          Nice theme! As it is a customized version of the orignial theme and doesn't show any other logos besides pfSense is there any way you can submit it so we can offer it as download or include it?  ;)

          1 Reply Last reply Reply Quote 0
          • G
            gbelanger
            last edited by

            Of course, I was still working on it - thats why i didnt send it to you guys.

            It's an adaptation of the metallic theme. Its a bit smaller in image size and has a more 'corporate' look, maybe we can call it that .. corporate? =P

            Thanks for the response on APC, I'm sure this will make a difference.

            Are you referring to www.xcache.com's xcache? This seems rather expensive?

            -G

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

              Yes "Corporate" sounds great!

              1 Reply Last reply Reply Quote 0
              • B
                billm
                last edited by

                @gbelanger:

                Of course, I was still working on it - thats why i didnt send it to you guys.

                It's an adaptation of the metallic theme. Its a bit smaller in image size and has a more 'corporate' look, maybe we can call it that .. corporate? =P

                Thanks for the response on APC, I'm sure this will make a difference.

                Are you referring to www.xcache.com's xcache? This seems rather expensive?

                -G

                Nope, http://trac.lighttpd.net/xcache/

                –Bill

                pfSense core developer
                blog - http://www.ucsecurity.com/
                twitter - billmarquette

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