Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Nov 2000 22:34:14 +0200
From:      "Yavuz Maslak" <yavuz@ihlas.net.tr>
To:        <questions@FreeBSD.org>
Subject:   squid settings
Message-ID:  <004201c04ce7$ed029660$2f89eed5@de>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_003F_01C04CF8.AF541EE0
Content-Type: text/plain;
	charset="windows-1254"
Content-Transfer-Encoding: quoted-printable

I use squid2.3 on Freebsd4.2 stable and it works as transparent

I have set max users =3D256 in my custom kernel=20

My server has 2 cpu,P3-550Mhz, 2GByte Ram , also I have assigned 25Gbyte =
for cache_dir
According to this values What should it be below values for my kernel ?  =

an example by Duane Wessels in =
www.squid-cache.org/Doc/FAQ/FAQ-8.html#ss8.7=20
      options         "MAXDSIZ=3D(512*1024*1024)"  =20
      options         "DFLDSIZ=3D(128*1024*1024)"
      options         "NMBCLUSTERS=3D10240"
        int     maxfiles =3D 4096;
        int     maxfilesperproc =3D 1024;

Because I have a problem I look at /var/log/messages and I see once =
xcalloc: Unable to allocate 4096 blocks of 1 bytes!" =20
After that my squid restart by itself  However mysquid hadn't used swap
What shall I do ?  Where can I findout about that ?

Thanks =20

------=_NextPart_000_003F_01C04CF8.AF541EE0
Content-Type: text/html;
	charset="windows-1254"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1254">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial>
<DIV><FONT face=3DArial size=3D3>I use squid2.3 on Freebsd4.2 stable and =
it works as=20
transparent</FONT></DIV>
<DIV><FONT face=3DArial></FONT><FONT size=3D3></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D3>I have set max users =3D256 in my =
custom kernel=20
</FONT></DIV>
<DIV><FONT face=3DArial></FONT><FONT size=3D3></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Arial TUR" size=3D3>My server has 2 cpu,P3-550Mhz, =
2GByte Ram ,=20
also I have assigned 25Gbyte for cache_dir</FONT></DIV>
<DIV><FONT face=3DArial><PRE><FONT size=3D3>According to this values =
What should it be below values for my kernel ?  </FONT></PRE><PRE><FONT =
size=3D3>an example by Duane Wessels in </FONT><A =
href=3D"http://www.squid-cache.org/Doc/FAQ/FAQ-8.html#ss8.7"><FONT =
size=3D3>www.squid-cache.org/Doc/FAQ/FAQ-8.html#ss8.7</FONT></A><FONT =
size=3D3> </FONT></PRE><PRE><FONT size=3D3>      options         =
"MAXDSIZ=3D(512*1024*1024)"  =20
      options         "DFLDSIZ=3D(128*1024*1024)"
      options         "NMBCLUSTERS=3D10240"
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int     maxfiles =3D 4096;
        int     maxfilesperproc =3D 1024;
</FONT></PRE></FONT></DIV>
<DIV><FONT face=3DArial size=3D3>Because I have a problem I look at=20
/var/log/messages and I&nbsp;see once xcalloc: Unable to allocate 4096 =
blocks of=20
1 bytes!"&nbsp;&nbsp;</FONT></DIV>
<DIV><FONT face=3DArial size=3D3>After that my squid restart by =
itself&nbsp; However=20
mysquid hadn't used swap</FONT></DIV>
<DIV><FONT size=3D3>What shall I do ?&nbsp; Where can I findout about =
that=20
?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D3><FONT=20
face=3D"Arial =
TUR">Thanks</FONT>&nbsp;&nbsp;</FONT></DIV></FONT></DIV></FONT></DIV></BO=
DY></HTML>

------=_NextPart_000_003F_01C04CF8.AF541EE0--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004201c04ce7$ed029660$2f89eed5>