diff options
author | pjd <pjd@FreeBSD.org> | 2010-04-15 17:04:08 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-04-15 17:04:08 +0000 |
commit | c133fa95906e55b3f0ef339a728e4de2cdd6a686 (patch) | |
tree | a3f4d8f0a5bc581bdaa07ff857f4476e5908c20f /sbin/hastd | |
parent | c76ea301f5e24ee502368b2e0948ba212d2ed8cb (diff) | |
download | FreeBSD-src-c133fa95906e55b3f0ef339a728e4de2cdd6a686.zip FreeBSD-src-c133fa95906e55b3f0ef339a728e4de2cdd6a686.tar.gz |
Increase ggate queue size to maximum value.
HAST was not able to stand heavy random load.
Reported by: Hiroyuki Yamagami
MFC after: 3 days
Diffstat (limited to 'sbin/hastd')
-rw-r--r-- | sbin/hastd/primary.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c index 20af0b9..0915154 100644 --- a/sbin/hastd/primary.c +++ b/sbin/hastd/primary.c @@ -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", |