summaryrefslogtreecommitdiffstats
path: root/sys/geom/raid3
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2006-03-19 11:18:33 +0000
committerpjd <pjd@FreeBSD.org>2006-03-19 11:18:33 +0000
commit5990508a1595e266d9025df3bc34333be67d53a2 (patch)
tree4fb47f1ee26934f53c4bb93d2a2c1963003a51df /sys/geom/raid3
parent324d968ad468164d34dd29a76bbc9178949fcd61 (diff)
downloadFreeBSD-src-5990508a1595e266d9025df3bc34333be67d53a2.zip
FreeBSD-src-5990508a1595e266d9025df3bc34333be67d53a2.tar.gz
kern.geom.raid3.sync_requests=2 seems to be a better default - it still
keeps disks very busy, but makes system much more responsive. While here, kill extra space.
Diffstat (limited to 'sys/geom/raid3')
-rw-r--r--sys/geom/raid3/g_raid3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/geom/raid3/g_raid3.c b/sys/geom/raid3/g_raid3.c
index 9f94209..4b6ad1a 100644
--- a/sys/geom/raid3/g_raid3.c
+++ b/sys/geom/raid3/g_raid3.c
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2004-2005 Pawel Jakub Dawidek <pjd@FreeBSD.org>
+ * Copyright (c) 2004-2006 Pawel Jakub Dawidek <pjd@FreeBSD.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -67,7 +67,7 @@ TUNABLE_INT("kern.geom.raid3.disconnect_on_failure",
&g_raid3_disconnect_on_failure);
SYSCTL_UINT(_kern_geom_raid3, OID_AUTO, disconnect_on_failure, CTLFLAG_RW,
&g_raid3_disconnect_on_failure, 0, "Disconnect component on I/O failure.");
-static u_int g_raid3_syncreqs = 4;
+static u_int g_raid3_syncreqs = 2;
TUNABLE_INT("kern.geom.raid3.sync_requests", &g_raid3_syncreqs);
SYSCTL_UINT(_kern_geom_raid3, OID_AUTO, sync_requests, CTLFLAG_RDTUN,
&g_raid3_syncreqs, 0, "Parallel synchronization I/O requests.");
@@ -2271,7 +2271,7 @@ g_raid3_determine_state(struct g_raid3_disk *disk)
state = G_RAID3_DISK_STATE_ACTIVE;
} else {
if ((sc->sc_flags &
- G_RAID3_DEVICE_FLAG_NOAUTOSYNC) == 0 ||
+ G_RAID3_DEVICE_FLAG_NOAUTOSYNC) == 0 ||
(disk->d_flags &
G_RAID3_DISK_FLAG_FORCE_SYNC) != 0) {
/*
OpenPOWER on IntegriCloud