Re: [squid-users] WARNING cache_mem is larger than total disk cache space!

2010-05-20 Thread Georg Höllrigl

Am 20.05.2010 14:40, schrieb Amos Jeffries:
> To run diskless:
>
> * 3.0 and numerically lower there is a "null" disk type to set on
> cache_dir line and override the default 100MB on-disk cache.

Thank you - I found the missing part. Disk type "null" also requires a directory - even with the 
config file stating:


# The null store type:
#
# no options are allowed or required

Georg


Re: [squid-users] WARNING cache_mem is larger than total disk cache space!

2010-05-20 Thread Amos Jeffries

Georg Höllrigl wrote:

Am 19.05.2010 16:40, schrieb Peng, Jeff:


Can set cache_dir with a memory filesystem.



So it's not possible to just tell squid to store the cache items in ram 
without using a ramdisk?


Yes. Squid has it's own built-in ramdisk equivalent for memory caching 
the most popular or recent objects.


It's size is defined by the cache_mem setting which may be used with or 
without the disk caching.



To run diskless:

 * 3.0 and numerically lower there is a "null" disk type to set on 
cache_dir line and override the default 100MB on-disk cache.


 * 3.1+ have no such default on-disk so removing all cache_dir lines is 
the same end result.



Amos
--
Please be using
  Current Stable Squid 2.7.STABLE9 or 3.1.3


Re: [squid-users] WARNING cache_mem is larger than total disk cache space!

2010-05-20 Thread Henrik Nordström
tor 2010-05-20 klockan 08:44 +0200 skrev Georg Höllrigl:
> Am 19.05.2010 16:40, schrieb Peng, Jeff:
> >
> > Can set cache_dir with a memory filesystem.
> >
> 
> So it's not possible to just tell squid to store the cache items in ram 
> without using a ramdisk?

It is safe to ignore the cache.log warning about cache_mem being larger
than the disk.

Regards
Henrik



Re: [squid-users] WARNING cache_mem is larger than total disk cache space!

2010-05-19 Thread Georg Höllrigl

Am 19.05.2010 16:40, schrieb Peng, Jeff:


Can set cache_dir with a memory filesystem.



So it's not possible to just tell squid to store the cache items in ram without 
using a ramdisk?


Re: [squid-users] WARNING cache_mem is larger than total disk cache space!

2010-05-19 Thread Peng, Jeff
2010/5/19 Georg Höllrigl :
> Hello,
>
> I've tried to set the disc cache smaller than memory size - because I'm
> observing reduced performance with too much disc cache.
>
> So now, I ask myself - if it would be a good idea to disable the whole disk
> cache thing and only use RAM? And if so - how will I do it - with squid 3.0
> there are always warnings about to little disc cache.
>
>

Can set cache_dir with a memory filesystem.


-- 
Tech support agency in China
http://duxieweb.com/


[squid-users] WARNING cache_mem is larger than total disk cache space!

2010-05-19 Thread Georg Höllrigl

Hello,

I've tried to set the disc cache smaller than memory size - because I'm observing reduced 
performance with too much disc cache.


So now, I ask myself - if it would be a good idea to disable the whole disk cache thing and only use 
RAM? And if so - how will I do it - with squid 3.0 there are always warnings about to little disc cache.




Georg


Re: [squid-users] WARNING cache_mem is larger than total disk cache space-help!

2004-08-26 Thread Henrik Nordstrom
On Thu, 26 Aug 2004, Siju George wrote:
"WARNING cache_mem is larger than total disk cache space!"
This message says that yout cache_mem setting is larger than the sum of 
your configured cache_dir directories.

Note: there is usually no reason to touch the cache_mem setting from it's 
default of 8MB unless in very specific conditions usually only seen in 
reverse proxies where Squid is acting as an accelerator infront of one (or 
maybe a handful) web servers.

Regards
Henrik


Re: [squid-users] WARNING cache_mem is larger than total disk cache space-help!

2004-08-26 Thread Matus UHLAR - fantomas
On 26.08 14:39, Siju George wrote:
> I am able to connect to the internet and view webpages from the internet
> but when I start squid initially the following error shows up.
> 
> "WARNING cache_mem is larger than total disk cache space!"
> 
> The total disk cache space on my system is 600Mb. ie. I have a 600 MB
> Swap partition.

swap partition or cache_swap partition? They have completely different
meaning.

the cache_mem means how much of memory will be user by squid to cache
objects. cache_swap means how much disk space will be used for the same
reason.

You can have system swap turned off (if you have enough of RAM) and have
big partition for cache_swap, better would be said, for squid cache.
(I have 30GB)

if you have 30 GB partition od disk free for using with squid, you can use
it as cache_swap without need for 30GB swap partition.

-- 
Matus UHLAR - fantomas, [EMAIL PROTECTED] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I feel like I'm diagonally parked in a parallel universe. 


[squid-users] WARNING cache_mem is larger than total disk cache space-help!

2004-08-26 Thread Siju George
Hi,

I installed Squid on OpenBSD 3.5 to use as a Proxy between the Internet and
LAN.

I am able to connect to the internet and view webpages from the internet but
when I
start squid initially the following error shows up.

"WARNING cache_mem is larger than total disk cache space!"

The total disk cache space on my system is 600Mb. ie. I have a 600 MB Swap
partition.

How can I rectify this problem?

There are at presently 12 LAN users at present and it will grow to 35 soon.
They use internet very heavily! How should I configure the cache memory? I
mean could you please recommend the Optimum Cache Size?

If necessarry I am willing to increase the total disk cache space. ie. I'll
repartition Swap. I need speed and Optimum Perfomance.

Below is relevant portion of my squid.conf Posted so you can have a look. I
configured by
reading the pdf provied from the squid website. Well in the way I understood
it.

Please look into this problem and help me.

Thankyou Somuch,

warm regards

Siju

# OPTIONS WHICH AFFECT THE CACHE SIZE

cache_mem 300 MB

cache_swap_low 90

cache_swap_high 95

maximum_object_size 4096 KB

minimum_object_size 0 KB

maximum_object_size_in_memory 8 KB

memory_replacement_policy lru