NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-i386/44457: Small bugs in the www/varnish/ package



>Number:         44457
>Category:       port-i386
>Synopsis:       Small bugs in the www/varnish/ package
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 25 05:05:00 +0000 2011
>Originator:     Frank Kruchio
>Release:        5.1.0_PATCH
>Organization:
IBM
>Environment:
NetBSD maci.home.gotdns.com 5.1.0_PATCH NetBSD 5.1.0_PATCH (MYKERNEL) #0: Tue 
Nov 30 22:06:06 NZDT 2010  
root%maci.home.gotdns.com@localhost:/usr/obj/sys/arch/i386/compile/MYKERNEL i386
>Description:
A small bug in the start scripts of the varnish package.

These 

maci: [/etc/rc.d] # fgrep commands_a /usr/pkg/share/examples/rc.d/varnish*
/usr/pkg/share/examples/rc.d/varnishlog:commands_args="-D"
/usr/pkg/share/examples/rc.d/varnishncsa:commands_args="-D"

should be

command_args="-D"

But while we are at it, can we please have the following added to
/usr/pkg/share/examples/rc.d/varnishd

command_args="-f /usr/pkg/etc/varnish/default.vcl -s malloc,128M"

and a note on installation that the shared memory settings need to be increased 
for example

## Shared Memory used by Varnish 64MB
## changed 8MB to 80MB
kern.ipc.shmmax=83886080

#the below is the default in 4Kb pages = 80MB
kern.ipc.shmmaxpgs=20480

I hope I have this all correct, please confirm, thanks !

>How-To-Repeat:
Install varnish and try to start it on servers with less then 2GB RAM
>Fix:
replace commands_args="-D" with command_args="-D" and add to varnishd

command_args="-f /usr/pkg/etc/varnish/default.vcl -s malloc,128M"

I realize 128MB is not going to suit most people, perhaps a message pointing 
users to this setting after install or a more sensible value.





Home | Main Index | Thread Index | Old Index