Re: Allocate more memory than 512 MB with squid

2007-07-20 Thread Patrick Hemmen
Hi, yesterday I run the little c-program under the user root and it works. Here is the source code of the program. #include #include int main() { size_t size = 936870912; char *a = malloc(size); if (a) printf("yes"); else

Re: Allocate more memory than 512 MB with squid

2007-07-19 Thread Patrick Hemmen
I start squid with the following entry in /etc/rc.local. if [ -x /usr/local/sbin/squid ]; then echo -n ' squid'; /usr/local/sbin/squid fi Best regards. Patrick Daniel Ouellet schrieb: > Patrick Hemmen wrote: >> Squid runs under the user _squid and this user is i

Re: Allocate more memory than 512 MB with squid

2007-07-18 Thread Otto Moerbeek
On Wed, 18 Jul 2007, Tim Kuhlman wrote: > On Wed July 18 2007 2:06:55 pm Patrick Hemmen wrote: > > Squid runs under the user _squid and this user is in the login class > > "daemon" in which the data size is set to infinity. Or do I have to set > > a another capability? > > Whoops, I missed that d

Re: Allocate more memory than 512 MB with squid

2007-07-18 Thread Daniel Ouellet
Patrick Hemmen wrote: Squid runs under the user _squid and this user is in the login class "daemon" in which the data size is set to infinity. Or do I have to set a another capability? How do you start your squid is the key. man 5 login.conf man 8 rc explain it. Just putting the class there

Re: Allocate more memory than 512 MB with squid

2007-07-18 Thread Tim Kuhlman
On Wed July 18 2007 2:06:55 pm Patrick Hemmen wrote: > Squid runs under the user _squid and this user is in the login class > "daemon" in which the data size is set to infinity. Or do I have to set > a another capability? Whoops, I missed that detail. I see it on the original posting now. I'm not

Re: Allocate more memory than 512 MB with squid

2007-07-18 Thread Patrick Hemmen
Squid runs under the user _squid and this user is in the login class "daemon" in which the data size is set to infinity. Or do I have to set a another capability? Best regards. Patrick Tim Kuhlman schrieb: > On Mon July 16 2007 12:00:41 pm Patrick Hemmen wrote: >> Thanks for your reply. >> I in

Re: Allocate more memory than 512 MB with squid

2007-07-18 Thread Tim Kuhlman
On Mon July 16 2007 12:00:41 pm Patrick Hemmen wrote: > Thanks for your reply. > I installed squid from the Package "squid-2.6.STABLE9.tgz" on OpenBSD > 4.1-stable i386. > Here the relevant parts of my squid.conf. > > cache_mem 192 MB > maximum_object_size 16 MB > cache_dir ufs /v

Re: Allocate more memory than 512 MB with squid

2007-07-17 Thread Patrick Hemmen
Thanks for the hint. I will test the memory and view the BIOS settings as soon as possible. Best regards. Patrick Whyzzi schrieb: > Again I highly recommend you check the memory for problems: > > http://www.memtest86.com/ > > Another thing I've noticed that can cause strange problems: > miss-ma

Re: Allocate more memory than 512 MB with squid

2007-07-17 Thread Whyzzi
Again I highly recommend you check the memory for problems: http://www.memtest86.com/ Another thing I've noticed that can cause strange problems: miss-matched memory timings caused by mixture of RAM, especially if the BIOS is set to auto detect timings. Double check the memory module RAS/CAS tim

Re: Allocate more memory than 512 MB with squid

2007-07-16 Thread Patrick Hemmen
Thanks for your reply. I installed squid from the Package "squid-2.6.STABLE9.tgz" on OpenBSD 4.1-stable i386. Here the relevant parts of my squid.conf. cache_mem 192 MB maximum_object_size 16 MB cache_dir ufs /var/squid/cache 5000 16 256 With this cache_mem size, the squi

Re: Allocate more memory than 512 MB with squid

2007-07-16 Thread Whyzzi
Curious. Well there's not much we can say on the matter: 1) no dmesg 2) no squid conf I personally recommend testing your squid server's memory for problems and providing at least the whole dmesg and relevant parts of your squid.conf (eg cache_mem). BTW: Shouldn't this be in the ports list? Ch