squid performance and kernel tuneables

2003-03-24 Thread L. Jankok
Hi folks,

Having to migrate a proxy server from a ultra sparc (u10) to
FreeBSD I am looking for the appropriate kernel tuneables.  
The new system will run FreeBSD 4.7 Stable on a SMP machine
with two very fast scsi disks and 1 1/2 GB of RAM. 

I did a man tuning, read the relevant sections on the freebsd handbook
searched google and looked at the faq at www.squid-cache.org.

This is what I have so far;

kern.maxfiles:  ==  65536
kern.maxfilesperproc:   ==  32768
kern.ipc.somaxconn: ==  8192
kern.ipc.nmbclusters:   ==  131072
net.inet.ip.portrange.last: ==  3
net.inet.tcp.sendspace: ==  65535
net.inet.tcp.recvspace: ==  65535
net.inet.tcp.delayed_ack:   ==  0
net.inet.udp.maxdgram:  ==  57344
net.inet.udp.recvspace: ==  65535
kern.ipc.shm_use_phys:  ==  1
vfs.write_behind:   ==  shouldn't this be turned off for web cache 
systems ?
kern.ipc.shm_use_phys:  ==  ok 
vfs.vmiodirenable:  ==  ok 

For diskd the FAQ on www.squid-cache.org is clear about the kernel tuneables.
It is the above settings which I want to know more about.


My question to the list is as follows;

Are there any kernel tuneables paramater above which are set wrong or which are plain
irrelevant for a high performance http proxy server on FreeBSD ? and are there any 
relevant
parameters (besides that for diskd) which are not included in the above list ?
The system will be a dedicated http proxy server processing approximately 236 GB a 
month
and like 216426 request per hour.


tnx,

Lucio Jankok

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


kernel tuning and Squid performance

2003-03-24 Thread L. Jankok
Hi folks,

Having to migrate a Proxy server from an Ultra SPARC (u10) 
to FreeBSD I was looking for similar kernel tunables as 
the ones I tuned on Solaris.
The new system is running FreeBSD 4.7 Stable on a SMP 
machine with two very fast SCSI disks and 1 GB of RAM. 

I did a man tuning, read the relevant sections on the
FreeBSD handbook, searched google and looked at the
relevant sections of the FAQ on www.squid-cache.org.

This is what I have done so far;

/boot/load.conf
kern.ipc.nmbclusters=131072

/etc/sysctlt.conf
kern.maxfiles=65536
kern.maxfilesperproc=32768
kern.ipc.somaxconn=8192
net.inet.ip.portrange.last=3
net.inet.tcp.sendspace=65535
net.inet.tcp.recvspace=65535
net.inet.tcp.slowstart_flightsize=2
net.inet.udp.maxdgram=57344
net.inet.udp.recvspace=65535
kern.ipc.shm_use_phys=1 #ok no undesirable overhead>
vfs.vmiodirenable=1 #ok 
# harden the stack a bit
net.inet.icmp.drop_redirect=1
net.inet.icmp.log_redirect=1
net.inet.ip.redirect=0
net.inet.ip.sourceroute=0
net.inet.ip.accept_sourceroute=0
net.link.ether.inet.max_age=1200#ok 
net.inet.icmp.bmcastecho=0  #ok 

The system is a dedicated web Proxy server processing approximately
236 GB a month.
During peak hours the total request per seconds is nearby 65 and the
client_http.all_median_svc_time = 0.045193 seconds. 
During peak hours the average load is around 0.50.

The above tuning has a considerably effect on the performance of the
web cache server and it is performing like expected.

Lucio Jankok

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


RE: bge network driver not loaded on a HP (Compaq) Proliant DL380 G3

2003-03-27 Thread L. Jankok
Had this problem with 4.7 Release.
4.7 Stable solved this problem. The driver is rock solid too..
processing more than 230 GB a month.

Lucio Jankok

: -Oorspronkelijk bericht-
: Van: [EMAIL PROTECTED] [mailto:owner-freebsd-
: [EMAIL PROTECTED] Namens David Landgren
: Verzonden: woensdag 26 maart 2003 16:15
: Aan: [EMAIL PROTECTED]
: Onderwerp: bge network driver not loaded on a HP (Compaq) Proliant
DL380
: G3
: 
: Hello,
: 
: I am in the process of installing FreeBSD 4.7 on an HP Proliant DL380
: G3. At the moment I am blocked by the fact that the kernel does not
: recognise the network card (or rather, does not load the bge driver).
: 
: It is a Broadcom BCM5703X Gigabit Ethernet adapter. (In fact there are
: two).
: 
: When I run 'pciconf -lv' it displays the following output
: 
: (not cut&paste)
: 
: [EMAIL PROTECTED]:1:0:class=[omitted]
: vendor   = 'Broadcom Corporation'
: device   = 'BCM5703X Gigabit Ethernet'
: class= network
: subclass = ethernet
: 
: and same again more or less for the second adapter at none5. And when
I
: run ifconfig -a, they are not present.
: 
: The GENERIC kernel doesn't load the driver, and the bge driver is
: included. I rebuilt a kernel stripping out all the other network
: adapters and still it does not correctly sense the card. How can I
force
: FreeBSD to recognize the adapters?
: 
: A second problem, less urgent, is that the machine has 5Gb of RAM, and
: at boot time the kernel says
: 
:   memory above 4Gb ignored
: 
: While configuring the new kernel file I reviewed everything in LINT
but
: I didn't see anything obvious. Is it possible to get 4.7 to recognize
:  >4Gb or is this something that can only be done on a more recent
: version, e.g., 4.8 or 5.0?
: 
: Thanks for any clues I can use,
: David
: 
: 
: ___
: [EMAIL PROTECTED] mailing list
: http://lists.freebsd.org/mailman/listinfo/freebsd-questions
: To unsubscribe, send any mail to "freebsd-questions-
: [EMAIL PROTECTED]"

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Interface collisions

2003-03-31 Thread L. Jankok
collisions means half duplex
if you don't want them, do something like this with your fbsd box;
#in rc.conf
ifconfig_bge0="inet 192.168.141.90  netmask 255.255.255.0 media 100baseTX 
mediaopt full-duplex"
and your switch must be set on 100 fdx also.


On Mon, Mar 31, 2003 at 04:55:41PM +0200, Toni Schmidbauer wrote:
:On Mon, Mar 31, 2003 at 08:20:34AM -0600, Jack L. Stone wrote:
:> For the first time within the past few days, I've noticed collisions being
:> the switch or the NIC is the culprit, so not sure which component may need
:
:you should also check if the nic and switch are both running the
:same speed, or if autonegotiation is enabled. in the company i am
:working for, we are always having problems if the switch runs 
:100fdx and the nic auto-neg or vice versa. on cisco switches its
:generally recommended to disable auto neg for servers.
:
:toni
:-- 
:Behandle die Menschen, als wären sie, was sie sein | [EMAIL PROTECTED]
:sollten, und du wirst ihnen helfen, zu werden, was | Toni Schmidbauer
:sie sein können.  - Johann Wolfgang von Goethe |


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how to backup LDAP

2003-04-04 Thread L. Jankok
try this
off course you have to change your dn and the location of ldapsearch in
your tree

/opt/ldap/bin/ldapsearch -x -D "cn=beheer, dc=2u2, dc=nu" -W > my-ldap-backup

On Wed, Apr 02, 2003 at 02:49:44PM -0800, Hilmi Hilmiev wrote:
:Hi all,
:
:I have simple question about: How to make simple backup for LDAP DB? 
:Easy, secure, simple way for LDAP backuping?
:
:Regards,
:Hilmi
:
:___
:[EMAIL PROTECTED] mailing list
:http://lists.freebsd.org/mailman/listinfo/freebsd-questions
:To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: mail server

2003-04-05 Thread L. Jankok
you may want to try postfix.. read the docs as usual.. if
someone can tell you something it is because they read the
docs or source too.. 

On Sat, Apr 05, 2003 at 11:03:10PM +0200, Yorgos Christoforou wrote:
:hello
:
:i have a freebsd 4.7 server running as firewall carrying my web site on it and i want 
to add
:a mail server to be able to receive mails with extension "@mysite.net" and then 
redirect them
:to my friends mail adresses.
:
:does anyone know which package i should install and then the configuration procedure ?
:
:thanks in advance
:
:y.
:
:
:___
:[EMAIL PROTECTED] mailing list
:http://lists.freebsd.org/mailman/listinfo/freebsd-questions
:To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"