This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Undo Local Content Cache = MEM Steps

Hi

- Quite sometime ago I followed some command prompts to enable the Astaro to download Local Cache for Content Filering to be stored locally and loaded into RAM.

- Seriously it is GOOD !

- Now I need to Consider to "Undo" the changes because

1) My HP Server has 3GB, now a days it hits about 60% RAM but the SWAP keeps going Higher and Higher to the point it is significantly slow.

I rememeber reading somewhere the Software Version is limited to 1.5GB to force people buy the Appliance thus even if I have 3GB it would not use it.

I did install the 64-BIT version hoping to get it use the addtional ram but it did not.

I do not understand (My ASG is configured to the point I kept it the same for months) but the recent RAM and SWAP usage is forcing me to reboot weekly whereby the RAM hits about 50% and Swap is Zero but it simply grows steadily constantly .

Thus I plan to Undo this Local Cache = MEM to reduce the RAM usage.

2) Another reason to UNDO this specific modification is to prepare my system back to "Standard Configuration" so that I can Upgrade to the upcoming UTM9 in the next few weeks.

Do you all know if this Local Cache is available in UTM 9?


This thread was automatically locked due to age.
  • The way astaro kernel is tuned, it prefers to keep ram on hand and caches out most of the stuff. There has been a few threads on this in the UTM 9 beta section. By the way, with the addition of a few new functionalities, v9 is a little more cpu/ram hungry so keep that in mind before upgrading it to production.

    You can change local content database by
    cc set http sc_local_db      and then using disk / mem  / none to choose between disk, memory or no local database.
    So in your case 

    cc set http sc_local_db none

    and then run
    /var/mdw/scripts/httpproxy restart

    As far as software limitation on memory usage, I am not aware of any limitation other than perhaps your hardware not supporting 64 bit.
    Regards
    Bill
  • I rememeber reading somewhere the Software Version is limited to 1.5GB to force people buy the Appliance thus even if I have 3GB it would not use it.


    This is definitely not the case... there is no "detuning" of the ASG / UTM system involved when using a home edition or essentials license... merely a limit on connected IPs / sessions (in the home edition license case).
  • I rememeber reading somewhere the Software Version is limited to 1.5GB to force people buy the Appliance thus even if I have 3GB it would not use it.

    Hi Alvin,

    I think you have it backwards. There were revisions of the appliances where the bios wouldn't accept more then certain amounts of RAM but not software.
    I run software with 4GB (formerly 6GB but that was overkill) on my home config as well as one branch office. The attached pic is from my 25IP license running on an Atom platform.

    I understood the software licenses were there for people who wanted to build their own hardware or needed a custom config unavailable in an appliance. Someone running a small 15IP server farm behind an Astaro might need the performance of a 625 but not the sticker so a 25IP license built onto a server would suit them well.
  • Hi Alvin,
    I think you have a problem with your motherboard and/or CPU. My UTMs have been running with 4gb of ram since about v7.
    I have attached today's daily memory report.

    The swap is getting to be a concern, it is growing about 2% a day, but at this stage does not appear to affect performance.

    There was a long thread in the beta forum on the affect of swap on performance and the conclusion was that there isn't an affect if running at least 2gb if not preferably more of memory.


    Ian

  • 1) My HP Server has 3GB, now a days it hits about 60% RAM but the SWAP keeps going Higher and Higher to the point it is significantly slow.


    Which version are you running ("latest version" in your signature is ambiguous as v9 was just released today)?

    If you're already running v9, you might want to read this thread, and provide the vmstat traces discussed
    https://community.sophos.com/products/unified-threat-management/astaroorg/f/75/t/64454

    Barry
  • Hi All,

    Thank You for the prompt replies from all of you,

    1) Yes my HP Proliant is old, I bought it since 01 April 2006.
    So it is 6 years old and 3 Months old but I would simply continue to use it as it was Not easy to buy a server and knowing if Astaro would work with the NIC etc. It is a scary bet.

    2) My Latest version was referring to 8.305, I am going to install UTM 9 after this post.

    3) With regards to the 3GB Ram Limitation, maybe I am wrong, what I understand is it is Not a limitation between Home / Commer License but the Software and Appliance version difference whereby Appliance version would use the More than 3GB.

    4) With regards to 64-Bit, it simply is a option that appears during installation so I went ahead but out of learning experience, I did try 32-bit later to see if I can "feel" any difference and the answer is No.

    5) My RAM = 50% and Swap = 0% on reboot but Both numbers keep increasing by the day steadily and usually when my RAM is 60% and SWAP = 30% that is when I need to reboot else it simply is a pain to use.

    Reinstall to UTM 9
    1) To my understanding, Software would not have a Up2Date so I am reinstaling from the ISO.
    2) I would proceed to set the cache to none so that I am back to "official standard configuration" before I import this to UTM 9.
    3) Backup my configurations.
    4) Copy my RED10 Password in case I need it.
    5) Copy which NIC to use for WAN and LAN.
    6) Do you all know if UTM 9 Supports Local Cache = Disk / mem etc as in officially it is in the GUI OR we need to do this unsupported method via command line?

    Wish me luck as I am going to install UTM 9 Now !

    * Actually why we need to do this "command line unofficial support method for that local cache" that is proven to be Necessary and works well?
    Why is it not in the GUI as a supported feature?
  • I typed something wrong and the following "codes" appeared - I am OK right?

    ASG:/home/login # cc set http_sc_local_db none
    [
              'NODE_INVALID',
              {
                'attrs' => [
                             'node_invalid',
                             'nodelist'
                           ],
                'fatal' => 1,
                'format' => 'Invalid node \'%s\' in tree \'%s\' specified.',
                'function' => 'set',
                'msgtype' => 'NODE_INVALID',
                'name' => 'Invalid node \'http_sc_local_db\' in tree \'http_sc_local_db\' specified.',
                'never_hide' => 0,
                'node_invalid' => 'http_sc_local_db',
                'nodelist' => 'http_sc_local_db'
              }
            ]


    ASG:/home/login # cc set http sc_local_db none
    ASG:/home/login # /var/mdw/scripts/httpproxy restart
    :: Restarting httpproxy
    :: Stopping httpproxy                                                done
    :: Starting httpproxy                                                done
  • Yes, you're ok, since http_sc_local_db doesn't exist.  You'll still neeed to run the proper command, per Post # 2 above, to stop using the Local Content Filter Database.
  • local database isn't the answer.  Read the thread noted..the swapping IS a concern..and it's now becoming front and center.
  • Hi

    * Yes I am posting via UTM 9 [:)]

    1) ASG 8.305 after Disable Local Cache = None, REBOOT, RAM = 45% and SWAP = 0%

    2) Installed UTM 9 and Imported the Backup.

    3) UTM 9 running at RAM = 55% of 3GB, SWAP = 0% (Remember that Local Cache is set to None before I backup the configuration)
        No Idea why a clean install can have 7% used in LOG and DATA Disk.

    4) I would continue to use it with this configuration for 1 week.
         Before I can determine if I need to Enable the Local Content Cache.

         I clicked around UTM9 Web Protection, I do NOT see any configuration to enable the Local Content Cache. I assume it is still a not supported feature.

    5) I have to admit I hate Clam AV and I am happy now there is SOPHOS and AVIRA.

    Reason I hate Clam AV is it has tons of problems with paypal websites but is all false positives.