Tuning 4.0F with Apache server

From: Zbigniew, Ignatowicz <zignatowicz_at_scc.ca>
Date: Thu, 12 Oct 2000 15:45:15 -0400

Hi everybody.

 We are using 4.0F PK3 box for one of our Web applications. (DS20 256MB) I
installed Internet AlpahServer software (5.3). One of the options is to tune
the server for Internet applications.
I clicked for all recommended settings, and the system performed very
poorly. The kernet was taking 25% of CPU

Here ps aux


USER PID %CPU %MEM VSZ RSS TTY S STARTED TIME
COMMAND
root 0 25.6 9.5 270M 24M ?? R < Sep 28 2-20:27:30
[kernel
idle]
root 3 0.0 0.0 1.06M 8K ?? I Sep 28 0:00.06
/sbin/kl
oadsrv
root 1 0.0 0.0 496K 40K ?? I Sep 28 0:00.15
/sbin/in
it -a
root 25 0.0 0.0 1.66M 48K ?? S Sep 28 3:02.94
/sbin/up
date
root 157 0.0 0.0 1.80M 112K ?? I Sep 28 0:00.30
/usr/sbi

I had to reset to the default values. (see below).

The server is running Apache with Open SSL with lots of CGIs.( switched from
the SUN iPlanet4 server. with which I was not happy at all).

The question I have, which of the parameters I should change, in order to
improve CGI performance. We do lots of file uploads/downloads.

Any help is very much appreciated.

Thanks


Ziggy


here is a list of all parameters with settings.
 


Name Run-Time
Value Boot-Time
Value Suggested
Values Description

somaxconn
(0 - 65535) Recommended: 65535 Current: 1024 Default:
1024
 Maximum number of pending TCP connections
sominconn
(0 - 65535) Recommended: 65535 Current: 0 Default: 0
 Minimum number of pending TCP connections
sobacklog_hiwat
(0 - 0) 0 Recommended: 0 Current: 8 Default: 0
 Count of maximum number of pending requests to any server socket
sobacklog_drops (0 - 0) 0 Recommended: 0 Current: 0 Default: 0
 Number of received SYN packet drops due to queued connections exceeding the
sockets backlog limit
somaxconn_drops
(0 - 0) 0 Recommended: 0 Current: 0 Default: 0
 Number of received SYN packet drops due to queued connections exceeding the
sockets backlog length (somaxconn)
sbcompress_threshold
(0 - 4294967295) Recommended: 600 Current: 0 Default: 0
 Enable mbuf cluster compression
sb_max
(0 - 4294967295) Recommended: 1048576 Current: 1048576 Default:
1048576
 Maximum socket buffer size
 

----------------------------------------------------------------------------
----
 
Internet Subsystem Attributes: (inet) 
Name Run-Time
Value Boot-Time
Value Suggested
Values Description 
tcp_sendspace 
(1 - 4294967295)      Recommended:   32768  Current:   32768  	Default:
32768 
 Transmit buffer size for a TCP socket 
tcp_recvspace 
(1 - 4294967295)      Recommended:   32768  Current:   32768 	Default:
32768 
 Receive buffer size for a TCP socket 
tcbhashsize 
(0 - 2147483647)      Recommended:   16384 Current:   512 	Default:
512 
 The size of a TCP hash table 
tcbhashnum 
(1 - 64)    1  Recommended:   16 	Current:   1 	Default:   1 
 The number of the TCP hash tables 
inifaddr_hsize 
(16 - 512)    32  Recommended:   32 	Current:   32 	Default:   32 
 Total hash buckets in the kernel interface alias table 
tcp_rexmit_interval_min 
(1 - 2147483647)      Recommended:   2 	Current:   2 	Default:   2 
 Minimum time between the first TCP retransmission 
tcp_keepalive_default 
(0 - 1)      Recommended:   1 	Current:   0 Default:   0 
 Enable TCP keepalive functionality 
tcp_keepidle 
(2 - 32767)      Recommended:   14400 	Current:   14400 	Default:
14400 
 Idle time before sending a keepalive probe 
tcp_keepintvl 
(2 - 32767)      Recommended:   150 	Current:   150 Default:   150 
 Time between retransmission of keepalive probes 
tcp_keepcnt 
(1 - 32767)      Recommended:   8 	Current:   8 	Default:   8 
 Maximum keepalive probes before connection is dropped 
tcp_keepinit 
(2 - 32767)      Recommended:   150 	Current:   150 	Default:   150 
 Maximum time before an initial connection attempt times out 
tcp_msl 
(1 - 4294967295)      Recommended:   60 	Current:   60 	Default:
60 
 Increases the TCP connection context timeout rate 
ipport_userreserved 
(1 - 65535)      Recommended:   65000 	Current:   5000 	Default:
5000 
 The maximum IP port number for outgoing connections 
ipport_userreserved_min 
(1 - 65535)      Recommended:   1024 	Current:   1024 	Default:
1024 
 The minimum IP port number for outgoing connections 
pmtu_enabled 
(0 - 1)      Recommended:   0 	Current:   1 Default:   1 
 Enable use of the PMTU protocol 
ipqs 
(1 - 64)    1  Recommended:   16 	Current:   1 	Default:   1 
 The number of IP input queues 
ipqmaxlen 
(512 - 65535)    512  Recommended:   2000 	Current:   512 	Default:
512 
 The IP input queue maximum length 
 
----------------------------------------------------------------------------
----
 
Virtual Memory Subsystem Attributes: (vm) 
Name Run-Time
Value Boot-Time
Value Suggested
Values Description 
ubc-maxpercent 
(0 - 2147483647)    100  Recommended:   100 	Current:   100 	Default:
100 
 Maximum memory available to the UBC 
ubc-minpercent 
(0 - 2147483647)    10  Recommended:   10 	Current:   10 	Default:
10 
 Minimum memory available to the UBC 
ubc-borrowpercent 
(0 - 2147483647)    20  Recommended:   20 	Current:   20 	Default:
20 
 Minimum memory available to be borrowed by the UBC 
vm-mapentries 
(0 - 2147483647)    200  Recommended:   20000 	Current:   200 	Default:
200 
 Maximum number of memory-mapped files in a user process 
vm-maxvas 
(0 - 9223372036854775807)    1073741824  Recommended:   10737418240
Current:   1073741824 	Default:   1073741824 
 Virtual address space size in bytes 
vm-vpagemax 
(0 - 9223372036854775807)    131072  Recommended:   131072 	Current:
131072 	Default:   131072 
 Maximum number of protected virtual pages 
 
----------------------------------------------------------------------------
----
 
Process Subsystem Attributes: (proc) 
Name Run-Time
Value Boot-Time
Value Suggested
Values Description 
maxusers 
(8 - 4096)    512  Recommended:   2048 	Current:   512 	Default:   512 
 Allocates more system resources for use by the kernel 
max-proc-per-user 
(0 - 32767)    64  Recommended:   512 	Current:   64 	Default:   64 
 Maximum number of processes allocated to a user at one time 
per-proc-address-space 
(0 - 4398046511104)    1073741824  Recommended:   1073741824 	Current:
1073741824 	Default:   1073741824 
 Default amount of user process address space 
max-per-proc-address-space 
(0 - 4398046511104)    1073741824  Recommended:   10737418240 	Current:
1073741824 	Default:   1073741824 
 Maximum amount of user process address space 
per-proc-stack-size 
(0 - 4398046511104)    2097152  Recommended:   2097152 	Current:   2097152
Default:   2097152 
 Default size of the user process stack 
max-per-proc-stack-size 
(0 - 4398046511104)    33554432  Recommended:   33554432 	Current:
33554432 	Default:   33554432 
 Maximum size of the user process stack 
per-proc-data-size 
(0 - 4398046511104)    134217728  Recommended:   134217728 	Current:
134217728 	Default:   134217728 
 Default size of the user process data segment 
max-per-proc-data-size 
(0 - 4398046511104)    1073741824  Recommended:   10737418240 	Current:
1073741824 	Default:   1073741824 
 Maximum size of the user process data segment 
max-threads-per-user 
(0 - 18446744073709551615)    256  Recommended:   4096 	Current:   256
Default:   256 
 Maximum number of threads allocated to each user at one time 
 
----------------------------------------------------------------------------
----
 
Generic Subsystem Attributes: (generic) 
Name Run-Time
Value Boot-Time
Value Suggested
Values Description 
kmemreserve-percent 
(1 - 75)      Recommended:   0 
Current:   0 
Default:   0 
 Percentage of physical memory reserved for kernel memory allocations 
 
 
Received on Thu Oct 12 2000 - 19:48:07 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:41 NZDT