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 stdio.h #include stdlib.h int main() { size_t size = 936870912; char *a = malloc(size); if (a) printf(yes);

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 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

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

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 a

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 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 detail. I

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-matched

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?

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 squid

Allocate more memory than 512 MB with squid

2007-07-15 Thread Patrick Hemmen
Hi all, I use the squid web-proxy on a OpenBSD 4.1 i386 machine with 1024 MB of RAM. Squid can only allocate 512 MB of RAM. If squid tries to allocate more than that, the process kills himself and starts automatically again with the following message in /var/log/messages. FATAL: