Squid Cache Full

Taking care of your Linux box.

Squid Cache Full

Postby hyperlinux » Sat Jan 31, 2009 4:09 am

my squid cache partition is getting full, but not rotate expire objects can't delete, i thing its the problem of refresh pattren, can you give the squid refresh pattren....

Regards
Muhammad Amir Iqbal
Muhammad Amir Iqbal
WireOnn Network
http://www.wireonn.com
Contact # +92-345-2089773

Register Linux User #435086
hyperlinux
Lance Naik
 
Posts: 27
Joined: Thu Nov 09, 2006 10:47 pm
Website: http://hypernet.homelinux.com
WLM: mamir_73@yahoo.com
Yahoo Messenger: mamir_73@yahoo.com
Location: Karachi

Postby lambda » Sat Jan 31, 2009 11:20 am

either your cache_dir size is too large, or you have other files in the partition (log files, for example) that are taking up too much space. it has nothing to do with your refresh_pattern.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Assalam o Alaikum

Postby hyperlinux » Sat Jan 31, 2009 11:53 am

sir, my squid cache partition hard drive is saperate from OS HD and there is only squid cache directories, cache objects can't rotate or can't delete expire objects...

Regards
Muhammad Amir Iqbal
Muhammad Amir Iqbal

WireOnn Network

http://www.wireonn.com

Contact # +92-345-2089773



Register Linux User #435086
hyperlinux
Lance Naik
 
Posts: 27
Joined: Thu Nov 09, 2006 10:47 pm
Website: http://hypernet.homelinux.com
WLM: mamir_73@yahoo.com
Yahoo Messenger: mamir_73@yahoo.com
Location: Karachi

Postby lambda » Sat Jan 31, 2009 1:55 pm

cache objects can't rotate or can't delete expire objects...
what is the exact error in the log file? what is the size of your partition, and what is your cache_dir set to?
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Squid Cache Full

Postby hyperlinux » Sun Feb 01, 2009 1:44 am

lambda wrote:
cache objects can't rotate or can't delete expire objects...
what is the exact error in the log file? what is the size of your partition, and what is your cache_dir set to?


Assalam u Alaikum

my cache drive config, 8 partitions of 17gb no errors but cache is full rapidly

cache_dir aufs /icache1 17408 16 256

Regards
Muhammad Amir Iqbal
Muhammad Amir Iqbal

WireOnn Network

http://www.wireonn.com

Contact # +92-345-2089773



Register Linux User #435086
hyperlinux
Lance Naik
 
Posts: 27
Joined: Thu Nov 09, 2006 10:47 pm
Website: http://hypernet.homelinux.com
WLM: mamir_73@yahoo.com
Yahoo Messenger: mamir_73@yahoo.com
Location: Karachi

Postby lambda » Sun Feb 01, 2009 1:19 pm

if there are no errors, there's no problem. caches are supposed to fill up, and stay full.

17gb is exactly 17408mb. do you really have 17408mb free after creating the filesystem? i don't think you should set your cache_dir to a value higher than 16500. filesystems reserve 5-10% of their space, and non-root users can't write more than 90-95% of data into a filesystem.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby mudasir » Sun Feb 01, 2009 7:08 pm

AOA,

Dear Amir,

Lambda is right, cache's are supposed to be full to provide more efficient internet browsing. If cache will not have the content, then whats the use of setting up a cache.

Yes you can create a script that will delete the cache's content after a given time or when the cache reaches a given amount of space.
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
mudasir
Captain
 
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Website: http://www.crystalnetworks.org
Location: Dubai

Re:

Postby LinuxFreaK » Tue Feb 03, 2009 9:18 am

Dear hyperlinux,
Salam,

You can use this in your squid configuration file.

Code: Select all

cache_swap_low 80
cache_swap_high 95


FYI, http://www.visolve.com/squid/squid30/cachesize.php

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

Postby lambda » Wed Feb 04, 2009 12:22 pm

80% of 17408 is 13926.4 and 95% is 16537.6; with those numbers, you'll be wasting up to 3.48gb of a 17gb filesystem by not using it.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Re:

Postby LinuxFreaK » Fri Feb 06, 2009 12:09 pm

Dear lambda,
Salam,

lambda wrote:80% of 17408 is 13926.4 and 95% is 16537.6; with those numbers, you'll be wasting up to 3.48gb of a 17gb filesystem by not using it.


I just gave him an example. If he is good he should read doc and understand what he needs to do :)

Best Regards.
Farrukh Ahmed
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 1 guest

cron