Re: [squid-users] FreeBSD, 4GB of Ram, Making Squid USE it!

From: Matus UHLAR - fantomas <[email protected]>
Date: Wed, 24 Nov 2004 12:36:50 +0100

On 23.11 12:07, Gaylord Van Brocklin wrote:
> My Dual 2.0GHz Xeon w/ 2GB of RAM boxes just got upgraded to Dual
> 2.8GHz Xeons with 4GB of RAM. The boxes are running FreeBSD
> 4.10-STABLE (cvs updated and rebuilt as of yesterday).

Do you use those machines for something different than SQUID? Squid won't
take big advantage of 2 CPUs, unless you are running 2 squid copies, and
then you don't need each of them take more than 2GB of memory...

> My previous kernel was set with MAXDSIZ="(1843*1024*1024)", Squid sat
> at around 1700MB of memory utilization and I never had any stability
> issues.
>
> I am trying to recompile the kernel with MAXDSIZ="(3072*1024*1024)",
> but am getting mmap errors when I reboot. I read a TON of stuff about
> FreeBSD, 4GB of memory, KVM_PAGES, and kernel tuning issues, so I tried
> setting MAXDSIZ to 2048 which allowed the machine to boot, but services
> wouldn't start due to memory/threading issues.
>
> Why can't I tune this box past 1.8GB of memory for Squid? Do I need to
> go to 5.3-RELEASE? How are you guys getting Squid to eat up more than
> 2 gigs of memory?

I am not sure if the FreeBSD system does allow process take more than 2GB
of RAM. IIRC, linux allows up to 2GB and there is patcvh for allowing 3GB,
but that is a hardware limit, caused by 32bit addressing on i386
architecture.
This might be the problem.

-- 
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.
Atheism is a non-prophet organization. 
Received on Wed Nov 24 2004 - 04:36:56 MST

This archive was generated by hypermail pre-2.1.9 : Wed Dec 01 2004 - 12:00:01 MST