[varnish/el5/master: 10/13] Added a patch for v00006.vtc that tames a malloc bonanza in some cases

Ingvar Hagelund ingvar at fedoraproject.org
Wed Oct 27 22:14:33 UTC 2010


commit 8e1bf93a8edf43cc37bd6e4615198adda92048f7
Author: Ingvar Hagelund <ingvar at redpill-linpro.com>
Date:   Wed Oct 27 00:05:13 2010 +0200

    Added a patch for v00006.vtc that tames a malloc bonanza in some cases

 varnish.fix_v00006.vtc.patch |   11 +++++++++++
 varnish.spec                 |    3 +++
 2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/varnish.fix_v00006.vtc.patch b/varnish.fix_v00006.vtc.patch
new file mode 100644
index 0000000..b707f56
--- /dev/null
+++ b/varnish.fix_v00006.vtc.patch
@@ -0,0 +1,11 @@
+--- bin/varnishtest/tests/v00006.vtc.orig	2010-10-26 23:41:00.105106948 +0200
++++ bin/varnishtest/tests/v00006.vtc	2010-10-26 23:42:42.727231982 +0200
+@@ -10,7 +10,7 @@
+ } -start
+ 
+ # Only one pool, to avoid getting more than one work thread
+-varnish v1 -arg "-p thread_pools=1 -w1,1,300" -vcl {
++varnish v1 -arg "-p thread_pools=1 -w1,1,300 -s file,/var/tmp,1G" -vcl {
+ 	backend b1 {
+ 		.host = "127.0.0.1";
+ 		.port = "9080";
diff --git a/varnish.spec b/varnish.spec
index 9e041b4..50277bf 100644
--- a/varnish.spec
+++ b/varnish.spec
@@ -8,6 +8,7 @@ URL: http://www.varnish-cache.org/
 Source0: http://downloads.sourceforge.net/varnish/varnish-%{version}.tar.gz
 Patch0: varnish.varnishtest_debugflag.patch
 Patch1: varnish.changes-2.0.6.patch
+Patch2: varnish.fix_v00006.vtc.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 # The svn sources needs autoconf, automake and libtool to generate a suitable
 # configure script. Release tarballs would not need this
@@ -71,6 +72,7 @@ Varnish is a high-performance HTTP accelerator
 
 %patch0
 %patch1
+%patch2
 
 # Hack to get 32- and 64-bits tests run concurrently on the same build machine
 case `uname -m` in
@@ -253,6 +255,7 @@ fi
 %changelog
 * Tue Oct 26 2010 Ingvar Hagelund <ingvar at linpro.no> - 2.0.6-3
 - Build fixes for ppc
+- Added a patch for v00006.vtc that tames a malloc bonanza in some cases
 
 * Wed Dec 23 2009 Ingvar Hagelund <ingvar at linpro.no> - 2.0.6-2.2
 - Added a test that enables jemalloc on ppc if the kernel is


More information about the scm-commits mailing list