Add DTrace probe to the new ARC reclaim cause added in r281026.
MFC after: 1 month
This commit is contained in:
parent
31390ca675
commit
e5f58186a5
@ -2671,8 +2671,12 @@ arc_reclaim_needed(void)
|
||||
* Above limits know nothing about real level of KVA fragmentation.
|
||||
* Start aggressive reclamation if too little sequential KVA left.
|
||||
*/
|
||||
if (vmem_size(heap_arena, VMEM_MAXFREE) < zfs_max_recordsize)
|
||||
if (vmem_size(heap_arena, VMEM_MAXFREE) < zfs_max_recordsize) {
|
||||
DTRACE_PROBE2(arc__reclaim_maxfree, uint64_t,
|
||||
vmem_size(heap_arena, VMEM_MAXFREE),
|
||||
uint64_t, zfs_max_recordsize);
|
||||
return (1);
|
||||
}
|
||||
|
||||
#else /* _KERNEL */
|
||||
if (spa_get_random(100) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user