1/*- 2 * Copyright (c) 2004 Pawel Jakub Dawidek <pjd@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/geom/raid3/g_raid3.c 139940 2005-01-09 14:43:39Z pjd $"); |
29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/kernel.h> 33#include <sys/module.h> 34#include <sys/limits.h> 35#include <sys/lock.h> 36#include <sys/mutex.h> --- 24 unchanged lines hidden (view full) --- 61static u_int g_raid3_idletime = 5; 62TUNABLE_INT("kern.geom.raid3.idletime", &g_raid3_idletime); 63SYSCTL_UINT(_kern_geom_raid3, OID_AUTO, idletime, CTLFLAG_RW, 64 &g_raid3_idletime, 0, "Mark components as clean when idling"); 65static u_int g_raid3_reqs_per_sync = 5; 66SYSCTL_UINT(_kern_geom_raid3, OID_AUTO, reqs_per_sync, CTLFLAG_RW, 67 &g_raid3_reqs_per_sync, 0, 68 "Number of regular I/O requests per synchronization request"); |
69static u_int g_raid3_syncs_per_sec = 1000; |
70SYSCTL_UINT(_kern_geom_raid3, OID_AUTO, syncs_per_sec, CTLFLAG_RW, 71 &g_raid3_syncs_per_sec, 0, 72 "Number of synchronizations requests per second"); 73 74static u_int g_raid3_n64k = 50; 75TUNABLE_INT("kern.geom.raid3.n64k", &g_raid3_n64k); 76SYSCTL_UINT(_kern_geom_raid3, OID_AUTO, n64k, CTLFLAG_RD, &g_raid3_n64k, 0, 77 "Maximum number of 64kB allocations"); --- 3007 unchanged lines hidden --- |