On 24.10.07 15:52, Linux Man wrote: > I have a poor download speed (2 Mbit) for a cyber, and I need to > increase the byte hit. > What refresh_pattern config do you use for a good byte hit? I have not changed the refresh_pattern, I didn't feel yet I have to play with it. > I have a linux box with 2 GB ram, and I set cache_mem 512 MB, for the > top visited pages. should not be a problem, but note that cache_mem applies only for object fetched from network, so you may decrease it, if you have big disk cache, to lower memory usage and allow OS to cache files from dis cache efficiently. > What about maximum_object_size, maximum_object_size_in_memory? they depend on youe cache size and cache_mem. I use 32MB/128KB maximum file sizes with 48GB/128MB of cache sizes, however I only guessed these values... (long time ago I was searching through access.log to see how big files got repeatedly fetched in a short time, I probably should do this again, and I think I'll change maximum_object_size to something higher) > How much GB I can set in cache_dir? I know that if I set too high I > can get swap problem. with 2GB of memory you can use ~100GB cache_dir without problems. see http://wiki.squid-cache.org/SquidFaq/SquidMemory for more informations about squid memory usage. > I'm currently use memory_replacement_policy heap GDSF, and > cache_replacement_policy heap LFUDA, it's OK? I use the same and it's OK. -- Matus UHLAR - fantomas, uhlar@xxxxxxxxxxx ; 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. My mind is like a steel trap - rusty and illegal in 37 states.