Results 1 to 8 of 8
  1. #1
    mean eating machine ronyville's Avatar
    Join Date
    Jun 2006
    Location
    Retardville
    Posts
    1,491

    Default Help with squid AGAIN!

    Hey peeps,

    I was using squid to ban sites and downloaded the BL (blacklist) from the net.
    The porn text file is around 10.8MB, I have created rules in the access control to ban all the sites on the porn list.
    The problem is that squid stuffs up when I run it using the porn list. BUT if I delete everything from that list and just added a few urls (size of the txt file is only 16KB now), than it works fine.
    So m thinking for some reason it can not allocate enough memory for the 10.8MB txt file. Hence I get the error : fork failed cannot allocate memory.

    Does any one know what I can do so that squid runs ok with the 10.8MB txt file instead of crapping out.

    cheers.
    Last edited by ronyville; 11-10-2007 at 12:38 PM.
    Life is a struggle
    It's a fight till the end
    So keep your head up
    And fight like a man

    "If you can believe than you can achieve" - Tupac Shakur

  2. #2
    Pedant and proud of it
    Join Date
    Dec 2004
    Location
    Christchurch
    Posts
    6,047

    Default Re: Help with squid AGAIN!

    There will probably be a configuration setting to limit the amount of memory it uses. "squid configuration" to google.co.nz gives a link to the manual.

    You might be able to find the item to change by checking the comments to the 129 options in the config file.

  3. #3
    Modulator Greg's Avatar
    Join Date
    Dec 2004
    Location
    Napier
    Posts
    9,115

    Default Re: Help with squid AGAIN!

    10 megs for a text file seems impossibly large - I think that's where the problem lies. Can't help further sorry.
    Bugger the cancer. I'm suffering from terminal inertia.

  4. #4
    mean eating machine ronyville's Avatar
    Join Date
    Jun 2006
    Location
    Retardville
    Posts
    1,491

    Default Re: Help with squid AGAIN!

    Thanks for your help guys, will play around with the config file and see what happens. And yes, that text file with all porn domains is really 10MBs.
    Life is a struggle
    It's a fight till the end
    So keep your head up
    And fight like a man

    "If you can believe than you can achieve" - Tupac Shakur

  5. #5
    mean eating machine ronyville's Avatar
    Join Date
    Jun 2006
    Location
    Retardville
    Posts
    1,491

    Default Re: Help with squid AGAIN!

    Hi peeps,

    I found the resaon why squid craps out > needed more RAM, I have added more RAM to it.. total now is 1.5GB, BUT I can not still run the porn acl list (which is 10MB), the maximum I can run is around 4MB acl list... (a little improvement from before). I think i m going to need more RAM than I can imagine to run all of the acl list ( total is around 26MB)
    I got 1GB swap memory on the system. Heres a pic
    As you can see swap is not used much, is there a way that I can get squid to use more of the swap memory? (I dont have to buy more RAM than) If there is a way to get squid to use more swap memory than I will be able to increase the swap memory from 1GB to say around 5GB ( if its possible).

    cheers..
    Life is a struggle
    It's a fight till the end
    So keep your head up
    And fight like a man

    "If you can believe than you can achieve" - Tupac Shakur

  6. #6
    Senior Member
    Join Date
    Nov 2006
    Posts
    4,281

    Default Re: Help with squid AGAIN!

    Quote Originally Posted by Greg View Post
    10 megs for a text file seems impossibly large - I think that's where the problem lies. Can't help further sorry.
    Think about all the porn out there.

    Besides, why would you want to block porn?
    Meh....

  7. #7
    mean eating machine ronyville's Avatar
    Join Date
    Jun 2006
    Location
    Retardville
    Posts
    1,491

    Default Re: Help with squid AGAIN!

    Quote Originally Posted by qazwsxokmijn View Post
    Besides, why would you want to block porn?
    The proxy setup is work related.. theres no way m gona block porn on my home pc
    Life is a struggle
    It's a fight till the end
    So keep your head up
    And fight like a man

    "If you can believe than you can achieve" - Tupac Shakur

  8. #8
    Gentoo Addict
    Join Date
    Dec 2004
    Location
    Hunched over a keyboard.
    Posts
    262

    Default Re: Help with squid AGAIN!

    How have you configured squid to block the domains that are blocked in the blacklist?

    If you're not using squidGuard, then I recommend using it, we use it at school and have never had any problems with it.
    # cat sig.txt | http://pressf1.co.nz/sig.php --set

    -- iLikeLinux

Similar Threads

  1. Edible Squid Postcards
    By SurferJoe46 in forum PC World Chat
    Replies: 5
    Last Post: 03-12-2006, 01:44 PM
  2. Configure squid proxy
    By TallPoppy in forum PressF1
    Replies: 3
    Last Post: 19-10-2004, 04:26 PM
  3. Squid quitting
    By sparq in forum PressF1
    Replies: 5
    Last Post: 26-02-2004, 01:55 PM
  4. Squid and MacOS X
    By sparq in forum PressF1
    Replies: 15
    Last Post: 12-02-2004, 10:20 PM
  5. Squid Woes in Mandrake
    By [linux] mb0o53 in forum PressF1
    Replies: 22
    Last Post: 07-12-2003, 10:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •