Deleted Added
full compact
vdev_queue.c (339034) vdev_queue.c (339105)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 10 unchanged lines hidden (view full) ---

19 * CDDL HEADER END
20 */
21/*
22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25
26/*
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 10 unchanged lines hidden (view full) ---

19 * CDDL HEADER END
20 */
21/*
22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
24 */
25
26/*
27 * Copyright (c) 2012, 2017 by Delphix. All rights reserved.
27 * Copyright (c) 2012, 2018 by Delphix. All rights reserved.
28 * Copyright (c) 2014 Integros [integros.com]
29 */
30
31#include <sys/zfs_context.h>
32#include <sys/vdev_impl.h>
33#include <sys/spa_impl.h>
34#include <sys/zio.h>
35#include <sys/avl.h>

--- 154 unchanged lines hidden (view full) ---

190 * to 30 allocations per device.
191 */
192#ifdef _KERNEL
193int zfs_vdev_queue_depth_pct = 1000;
194#else
195int zfs_vdev_queue_depth_pct = 300;
196#endif
197
28 * Copyright (c) 2014 Integros [integros.com]
29 */
30
31#include <sys/zfs_context.h>
32#include <sys/vdev_impl.h>
33#include <sys/spa_impl.h>
34#include <sys/zio.h>
35#include <sys/avl.h>

--- 154 unchanged lines hidden (view full) ---

190 * to 30 allocations per device.
191 */
192#ifdef _KERNEL
193int zfs_vdev_queue_depth_pct = 1000;
194#else
195int zfs_vdev_queue_depth_pct = 300;
196#endif
197
198/*
199 * When performing allocations for a given metaslab, we want to make sure that
200 * there are enough IOs to aggregate together to improve throughput. We want to
201 * ensure that there are at least 128k worth of IOs that can be aggregated, and
202 * we assume that the average allocation size is 4k, so we need the queue depth
203 * to be 32 per allocator to get good aggregation of sequential writes.
204 */
205int zfs_vdev_def_queue_depth = 32;
198
199#ifdef __FreeBSD__
200#ifdef _KERNEL
201SYSCTL_DECL(_vfs_zfs_vdev);
202
203static int sysctl_zfs_async_write_active_min_dirty_percent(SYSCTL_HANDLER_ARGS);
204SYSCTL_PROC(_vfs_zfs_vdev, OID_AUTO, async_write_active_min_dirty_percent,
205 CTLTYPE_UINT | CTLFLAG_MPSAFE | CTLFLAG_RWTUN, 0, sizeof(int),

--- 799 unchanged lines hidden ---
206
207#ifdef __FreeBSD__
208#ifdef _KERNEL
209SYSCTL_DECL(_vfs_zfs_vdev);
210
211static int sysctl_zfs_async_write_active_min_dirty_percent(SYSCTL_HANDLER_ARGS);
212SYSCTL_PROC(_vfs_zfs_vdev, OID_AUTO, async_write_active_min_dirty_percent,
213 CTLTYPE_UINT | CTLFLAG_MPSAFE | CTLFLAG_RWTUN, 0, sizeof(int),

--- 799 unchanged lines hidden ---