12-23-2010
You mean change the cache size to lower cache size
# Cache directory
# You can specify multiple cache_dir lines to spread the cache among different disk partitions.
# 20000 MB, 64 directories, 128 sub-directories for each directory
cache_dir aufs /squid 20000 64 128[/B]
# The ideal amount of memory to be used for In-Transit objects, Hot Objects and Negative-Cached objects
cache_mem 96 MB
# Objects greater than this size will not be attempted to kept in the memory cache.
# This should be set high enough to keep objects accessed frequently in memory to improve performance
maximum_object_size_in_memory 32 KB
# Objects larger than this size will NOT be saved on disk.
# The value is specified in kilobytes.
maximum_object_size 32768 KB
# The size, low-, and high-water marks for the IP cache.
ipcache_size 4096
# Maximum number of FQDN cache entries.
fqdncache_size 4096
9 More Discussions You Might Find Interesting
1. Linux
hi all...
i installed Red Hat 9...but i can use a proxy server with service squid...
in my job i have a direct internet connection in the linux, but i configurate squid.conf...ports...ip's....
but still not working...with the windows machines....
in the linux server if i put the 127.0.0.0 port... (1 Reply)
Discussion started by: chanfle
1 Replies
2. IP Networking
Hi,
1-What is bandewidth ?
2-How to calculate ?
3-How to measure ? Any free software to measure it ?
Many thanks. (4 Replies)
Discussion started by: big123456
4 Replies
3. IP Networking
hi
i am having problem with proxy logs
the log file in /var/log/squid/access.log is having 0 size
i am using red hat linux enterprise edition
squid version->Version 2.5.STABLE6 with default conf file
and it is running but whatever i access from internet it is not... (1 Reply)
Discussion started by: madhusudankh
1 Replies
4. Linux
Configured Squid2.0 on linux9. Browsing is very slow in client side. takes atleast 1min to open the page. can anybody tell me what to do
Thaks in Advance (0 Replies)
Discussion started by: teenasuresh
0 Replies
5. UNIX for Dummies Questions & Answers
I have squid version 2.6 running on ubuntu linux as a proxycache although caching is not being used, the problem I have is that certain websites that require the user to log into do not seem to pass through the squid, the only thing I see is that the website is trying to access a file called... (1 Reply)
Discussion started by: Simon Young
1 Replies
6. Red Hat
Dear All
I m running Linux Proxy Server on RHEL-5 64bit for providing http access to users in my office, i m facing a problem while using msn messenger on LAN, we access msn messenger through above mentioned proxy server, whenever I sign in to msn messenger, it gets signed on but after a short... (1 Reply)
Discussion started by: surfer24
1 Replies
7. Debian
Hi There
I have a network where im running squid proxy in transparent mode. All sites are blocked by default and the users can only browse sites listed in a file called allowed-sites. I have to block a group of users in department A from accessing 5 sites that the rest of the company can access.... (0 Replies)
Discussion started by: linuxjunkie
0 Replies
8. IP Networking
Hello,
I have a pretty useless satellite link at home (far from any civilization), so I wanted to set up caching in order to speed things up. My Squid 2.6 runs "3128 transparent" and is set up quite well on a separate machine.
I also have my dd-wrt router to move all port 80 traffic through... (0 Replies)
Discussion started by: theWojtek
0 Replies
9. Linux
Hi dear
I came with such a question, I ask you not to kick much)
I have rules for iptables
ip rule add fwmark 0x01/0x01 table 100
ip route add local 0.0.0.0/0 dev lo table 100
iptables -t mangle -N REDSOCKS2
iptables -t mangle -A REDSOCKS2 -p udp -j TPROXY --on-port 10053 --tproxy-mark... (0 Replies)
Discussion started by: andreich_kms
0 Replies
LEARN ABOUT DEBIAN
cache::cachemetadata
Cache::CacheMetaData(3pm) User Contributed Perl Documentation Cache::CacheMetaData(3pm)
NAME
Cache::CacheMetaData -- data about objects in the cache
DESCRIPTION
The CacheMetaData object is used by size aware caches to keep track of the state of the cache and effeciently return information such as an
objects size or an ordered list of indentifiers to be removed when a cache size is being limited. End users will not normally use
CacheMetaData directly.
SYNOPSIS
use Cache::CacheMetaData;
my $cache_meta_data = new Cache::CacheMetaData( );
foreach my $key ( $cache->get_keys( ) )
{
my $object = $cache->get_object( $key ) or
next;
$cache_meta_data->insert( $object );
}
my $current_size = $cache_meta_data->get_cache_size( );
my @removal_list = $cache_meta_data->build_removal_list( );
METHODS
new( )
Construct a new Cache::CacheMetaData object
insert( $object )
Inform the CacheMetaData about the object $object in the cache.
remove( $key )
Inform the CacheMetaData that the object specified by $key is no longer in the cache.
build_removal_list( )
Create a list of the keys in the cache, ordered as follows:
1) objects that expire now
2) objects expiring at a particular time, with ties broken by the time at which they were least recently accessed
3) objects that never expire, sub ordered by the time at which they were least recently accessed
NOTE: This could be improved further by taking the size into account on accessed_at ties. However, this type of tie is unlikely in
normal usage.
build_object_size( $key )
Return the size of an object specified by $key.
PROPERTIES
get_cache_size
The total size of the objects in the cache
SEE ALSO
Cache::Cache, Cache::CacheSizer, Cache::SizeAwareCache
AUTHOR
Original author: DeWitt Clinton <dewitt@unto.net>
Last author: $Author: dclinton $
Copyright (C) 2001-2003 DeWitt Clinton
perl v5.12.4 2009-03-01 Cache::CacheMetaData(3pm)