dsl_pool.c (272456) | dsl_pool.c (272882) |
---|---|
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 --- 134 unchanged lines hidden (view full) --- 143 "halted until space becomes available"); 144 145TUNABLE_QUAD("vfs.zfs.dirty_data_max_max", &zfs_dirty_data_max_max); 146SYSCTL_UQUAD(_vfs_zfs, OID_AUTO, dirty_data_max_max, CTLFLAG_RDTUN, 147 &zfs_dirty_data_max_max, 0, 148 "The absolute cap on dirty_data_max when auto calculating"); 149 150TUNABLE_INT("vfs.zfs.dirty_data_max_percent", &zfs_dirty_data_max_percent); | 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 --- 134 unchanged lines hidden (view full) --- 143 "halted until space becomes available"); 144 145TUNABLE_QUAD("vfs.zfs.dirty_data_max_max", &zfs_dirty_data_max_max); 146SYSCTL_UQUAD(_vfs_zfs, OID_AUTO, dirty_data_max_max, CTLFLAG_RDTUN, 147 &zfs_dirty_data_max_max, 0, 148 "The absolute cap on dirty_data_max when auto calculating"); 149 150TUNABLE_INT("vfs.zfs.dirty_data_max_percent", &zfs_dirty_data_max_percent); |
151SYSCTL_INT(_vfs_zfs, OID_AUTO, dirty_data_max_percent, CTLFLAG_RDTUN, 152 &zfs_dirty_data_max_percent, 0, | 151static int sysctl_zfs_dirty_data_max_percent(SYSCTL_HANDLER_ARGS); 152SYSCTL_PROC(_vfs_zfs, OID_AUTO, dirty_data_max_percent, 153 CTLTYPE_INT | CTLFLAG_MPSAFE | CTLFLAG_RWTUN, 0, sizeof(int), 154 sysctl_zfs_dirty_data_max_percent, "I", |
153 "The percent of physical memory used to auto calculate dirty_data_max"); 154 155TUNABLE_QUAD("vfs.zfs.dirty_data_sync", &zfs_dirty_data_sync); 156SYSCTL_UQUAD(_vfs_zfs, OID_AUTO, dirty_data_sync, CTLFLAG_RWTUN, 157 &zfs_dirty_data_sync, 0, 158 "Force a txg if the number of dirty buffer bytes exceed this value"); 159 160static int sysctl_zfs_delay_min_dirty_percent(SYSCTL_HANDLER_ARGS); --- 6 unchanged lines hidden (view full) --- 167static int sysctl_zfs_delay_scale(SYSCTL_HANDLER_ARGS); 168/* No zfs_delay_scale tunable due to limit requirements */ 169SYSCTL_PROC(_vfs_zfs, OID_AUTO, delay_scale, 170 CTLTYPE_U64 | CTLFLAG_MPSAFE | CTLFLAG_RW, 0, sizeof(uint64_t), 171 sysctl_zfs_delay_scale, "QU", 172 "Controls how quickly the delay approaches infinity"); 173 174static int | 155 "The percent of physical memory used to auto calculate dirty_data_max"); 156 157TUNABLE_QUAD("vfs.zfs.dirty_data_sync", &zfs_dirty_data_sync); 158SYSCTL_UQUAD(_vfs_zfs, OID_AUTO, dirty_data_sync, CTLFLAG_RWTUN, 159 &zfs_dirty_data_sync, 0, 160 "Force a txg if the number of dirty buffer bytes exceed this value"); 161 162static int sysctl_zfs_delay_min_dirty_percent(SYSCTL_HANDLER_ARGS); --- 6 unchanged lines hidden (view full) --- 169static int sysctl_zfs_delay_scale(SYSCTL_HANDLER_ARGS); 170/* No zfs_delay_scale tunable due to limit requirements */ 171SYSCTL_PROC(_vfs_zfs, OID_AUTO, delay_scale, 172 CTLTYPE_U64 | CTLFLAG_MPSAFE | CTLFLAG_RW, 0, sizeof(uint64_t), 173 sysctl_zfs_delay_scale, "QU", 174 "Controls how quickly the delay approaches infinity"); 175 176static int |
177sysctl_zfs_dirty_data_max_percent(SYSCTL_HANDLER_ARGS) 178{ 179 int val, err; 180 181 val = zfs_dirty_data_max_percent; 182 err = sysctl_handle_int(oidp, &val, 0, req); 183 if (err != 0 || req->newptr == NULL) 184 return (err); 185 186 if (val < 0 || val > 100) 187 return (EINVAL); 188 189 zfs_dirty_data_max_percent = val; 190 191 return (0); 192} 193 194static int |
|
175sysctl_zfs_delay_min_dirty_percent(SYSCTL_HANDLER_ARGS) 176{ 177 int val, err; 178 179 val = zfs_delay_min_dirty_percent; 180 err = sysctl_handle_int(oidp, &val, 0, req); 181 if (err != 0 || req->newptr == NULL) 182 return (err); --- 946 unchanged lines hidden --- | 195sysctl_zfs_delay_min_dirty_percent(SYSCTL_HANDLER_ARGS) 196{ 197 int val, err; 198 199 val = zfs_delay_min_dirty_percent; 200 err = sysctl_handle_int(oidp, &val, 0, req); 201 if (err != 0 || req->newptr == NULL) 202 return (err); --- 946 unchanged lines hidden --- |