FreeBSD Bugzilla – Attachment 147265 Details for
Bug 187594
[zfs] [patch] ZFS ARC behavior problem and fix
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to correct ZFS "freeze" ram contention problem (apply after Steve's latest 10-Stable patch above)
patch-fix-karl (text/plain), 1.37 KB, created by
karl
on 2014-09-13 05:25:58 UTC
(
hide
)
Description:
Patch to correct ZFS "freeze" ram contention problem (apply after Steve's latest 10-Stable patch above)
Filename:
MIME Type:
Creator:
karl
Created:
2014-09-13 05:25:58 UTC
Size:
1.37 KB
patch
obsolete
>*** arc.c.noinitpatch Fri Sep 12 17:59:08 2014 >--- arc.c Fri Sep 12 23:49:43 2014 >*************** >*** 212,218 **** > arc_free_target_init(void *unused __unused) > { > >! zfs_arc_free_target = (vm_pageout_wakeup_thresh / 2) * 3; > } > SYSINIT(arc_free_target_init, SI_SUB_KTHREAD_PAGE, SI_ORDER_ANY, > arc_free_target_init, NULL); >--- 212,218 ---- > arc_free_target_init(void *unused __unused) > { > >! zfs_arc_free_target = cnt.v_free_target; > } > SYSINIT(arc_free_target_init, SI_SUB_KTHREAD_PAGE, SI_ORDER_ANY, > arc_free_target_init, NULL); >*************** >*** 2511,2516 **** >--- 2511,2532 ---- > u_int fm; > > #ifdef _KERNEL >+ >+ /* >+ * First check to see if dirty_data_max needs adjusting. Do not allow >+ * the dirty data amount per pool to exceed free, non-swappable RAM. >+ * Subject this to the original test of the max_max limit and a minimum >+ * of 512KB. >+ */ >+ zfs_dirty_data_max = ptob(cnt.v_free_count) - ptob(cnt.v_free_min); >+ if (zfs_dirty_data_max <= 1 << 24) { >+ zfs_dirty_data_max = 1 << 24; >+ } >+ zfs_dirty_data_max = MIN(zfs_dirty_data_max, ptob(physmem) * >+ zfs_dirty_data_max_percent / 100); >+ zfs_dirty_data_max = MIN(zfs_dirty_data_max, zfs_dirty_data_max_max); >+ >+ > if (arc_size <= arc_c_min) { > DTRACE_PROBE2(arc__reclaim_min, uint64_t, arc_size, > uint64_t, arc_c_min);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 187594
:
140882
|
140883
|
140884
|
140885
|
140886
|
140887
|
140888
|
140889
|
140890
|
140891
|
140892
|
146178
|
146203
|
146249
|
146251
|
146287
|
146300
|
146373
|
146423
|
146424
|
146456
|
146816
|
146817
|
146851
|
146852
|
146854
|
146859
|
146861
|
146946
|
146947
|
146948
|
146949
|
147014
|
147068
|
147069
|
147070
|
147265
|
147274
|
147275
|
147276
|
147286
|
147459
|
147607
|
147609
|
147733
|
147738
|
147754
|
147815
|
152852
|
158809
|
159207
|
159688
|
159859
|
159905
|
161691
|
161692
|
161943
|
164051
|
174197
|
174198
|
174231
|
174232
|
174254
|
186818