Guest User!

You are not Sophos Staff.

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

Squid filled hard disk leading to shutdown !

Monday I received a lot of these messages:

WARNING - not enough space:
9% free - (23 MByte) on device: /dev/hda8 - mounted on /var/chroot-squid -
Astaro Security Linux  1.824

HDD was being eaten up until...

ALARM - not enough space:
5% free - (13 MByte) on device: /dev/hda8 - mounted on /var/chroot-squid -
SYSTEM HALT - ONLY CONSOLE ACCESS!
Astaro Security Linux  1.824

What caused squid to eat all the hard disk space ?  Shouldnt squid have some kind of limit on how much space it can use?  This problem caused me a heap of trouble at work since on the day in question I was at home sick with the flu.  Please tell me what is causing this behaviour.  I suspect the hard disk total size is not big enough ?  (2GB)


This thread was automatically locked due to age.
Parents
  • Hi Simon,

    Squid uses your disk space to cache the queries it has served.

    You have 3 options:

    - Upgrade your hardware (2GB disk is REALLY too few for a caching proxy)

    - or adjust the space using by squid for cache: edit /var/chroot-squid/etc/squd.conf-default (don't fogret to restart the squid after editing)

    - or turn the http proxy off   [:)]

    Hope this helps,
    --
    Dennis

    [ 10 August 2001: Message edited by: Dennis Koslowski ]
  • G'Day All...

    I have located the problem on my home machine. SQUID is set up with HIGH and LOW watermarks on the cache at 95% and 90% respectively from memory (they could have been 85% and 90% but I dont think so - if they were there would still be errors until the cleanup started). This means that when the cache gets to 95% of disk usage, it reduces to 90%.

    The problem is that the middleware monitors the disk usage and errors at less than 10% disk space free. So whilst SQUID will manage the disk usage, ASL will give you a warning... The warning for ASL is too tight really. What I have done on mine is to reduce SQUID to 85% and 89% respectively which solves this problem.

    With small disk sizes (2 GBytes) it is probably best also to reduce the size of the files that can be cached, down to under 1 MByte as they are more likely to be hit than the larger files.

    Darryl
  • Many thanks for the reply !

    Regards,
    Simon Shaw.
  • I upgraded the hard disk from 2GB to 30GB  [:)]
    Set high water mark to 90% instead of 95%

    All seems fine now.
  • These warnings are driving me batty.
    I tried enabling and lowering the watermarks (restarted after doing so).
    I also tried turning the proxy off.
    So far nada and close to 400 warnings have been sent.
    What am I missing?
  • What size hard disk do you have ?

    Simon Shaw.
  • Something like 2gig but I have no need/desire to make it any bigger (heck I couldn't if I wanted to, my bios wouldn't support it...it shouldn't matter). I don't need the proxy but I figured why not. I don't see why it doesn't auto clean, flush, whatever its supposed to do. Also why does it keep complaining when I shut it off. 

    I've been running Astaro for many months (only turned on the proxy in the last month or so) and everything seems to take care of itself but this. Users should not have to root around on the CLI to try and fix stuff like this but I'd be happy with any fix that stops the friggin messages.
  • I only have a 2 GByte HDD, and i have had no problems since I reduced the size of the high and low water marks.

    The problem is working out which file to edit... Find anything the looks remotely like the SQUID config file and edit it... 

    I cannot remember which one is the right one... From memory it copies one and edits it on restart.

    Darryl
Reply
  • I only have a 2 GByte HDD, and i have had no problems since I reduced the size of the high and low water marks.

    The problem is working out which file to edit... Find anything the looks remotely like the SQUID config file and edit it... 

    I cannot remember which one is the right one... From memory it copies one and edits it on restart.

    Darryl
Children
  • Greetings,

    This is a bit ridiculous now.  I have been preaching to tons of people how badass this product is and then this happens.

    Now when I tell them how good it is I have to mention that if they use the default configuration they can plan on the machine spontaneously shutting down after the first day or so because the cache is full.

    I am halfway decent with getting around in Linux but I have edited the watermark files multiple times and cleared out the cache files as mentioned in the previous posts here but nothing is working.  In fact, right in the middle of my working to fix the problem my system restarts on me every few minutes.

    Could someone please put out a definitive fix for this?  The bottom line is that this TOP OF THE LINE firewall is too good to be shutting down all the time.  As I am typing this I am trying to edit files, clear the cache, and do something to fix this before the machine comes back up and starts beeping at me because something is still wrong.

    This is very annoying and it is simply IMPOSSIBLE to use a product that shuts down every few minutes in any enviornment that is important.

    Someone please put out a step by step guaranteed fix for this.  My machine won't even stay on for long before shutting down.  Something has to be done. 

    Regards,
  • Hi there,

    I´ve got the same problem:
    cache-mem ist filled up and never cleaned.

    I´ve changed squid.conf-default, ro results.

    Which version of squid is used ?
    I´ve read that some versions have problem to clear the cache.

    Greetings
    Martin
  • It is squid version 2 according to the top of the .conf pages.

    Can someone working with the firewall please respond?  I have changed all the settings and it isn't working.  I am going to reinstall because of this but I need to be able to make sure it doesn't happen to me again.

    Thank you.