Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Apr 2010 17:04:08 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r206669 - head/sbin/hastd
Message-ID:  <201004151704.o3FH48bQ059919@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Thu Apr 15 17:04:08 2010
New Revision: 206669
URL: http://svn.freebsd.org/changeset/base/206669

Log:
  Increase ggate queue size to maximum value.
  HAST was not able to stand heavy random load.
  
  Reported by:	Hiroyuki Yamagami
  MFC after:	3 days

Modified:
  head/sbin/hastd/primary.c

Modified: head/sbin/hastd/primary.c
==============================================================================
--- head/sbin/hastd/primary.c	Thu Apr 15 16:43:43 2010	(r206668)
+++ head/sbin/hastd/primary.c	Thu Apr 15 17:04:08 2010	(r206669)
@@ -682,7 +682,7 @@ init_ggate(struct hast_resource *res)
 	ggiocreate.gctl_mediasize = res->hr_datasize;
 	ggiocreate.gctl_sectorsize = res->hr_local_sectorsize;
 	ggiocreate.gctl_flags = 0;
-	ggiocreate.gctl_maxcount = 128;
+	ggiocreate.gctl_maxcount = G_GATE_MAX_QUEUE_SIZE;
 	ggiocreate.gctl_timeout = 0;
 	ggiocreate.gctl_unit = G_GATE_NAME_GIVEN;
 	snprintf(ggiocreate.gctl_name, sizeof(ggiocreate.gctl_name), "hast/%s",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004151704.o3FH48bQ059919>