Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/openzfs/module/zfs/arc.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 7,759 Lines • ▼ Show 20 Lines | #endif /* _KERNEL */ | ||||
* wakeup() signals after they are destroyed. | * wakeup() signals after they are destroyed. | ||||
*/ | */ | ||||
zthr_destroy(arc_evict_zthr); | zthr_destroy(arc_evict_zthr); | ||||
zthr_destroy(arc_reap_zthr); | zthr_destroy(arc_reap_zthr); | ||||
ASSERT0(arc_loaned_bytes); | ASSERT0(arc_loaned_bytes); | ||||
} | } | ||||
boolean_t | |||||
arc_is_waiting_evict(void) | |||||
{ | |||||
boolean_t is_empty; | |||||
mutex_enter(&arc_evict_lock); | |||||
is_empty = list_is_empty(&arc_evict_waiters); | |||||
mutex_exit(&arc_evict_lock); | |||||
return (!is_empty); | |||||
} | |||||
/* | /* | ||||
* Level 2 ARC | * Level 2 ARC | ||||
* | * | ||||
* The level 2 ARC (L2ARC) is a cache layer in-between main memory and disk. | * The level 2 ARC (L2ARC) is a cache layer in-between main memory and disk. | ||||
* It uses dedicated storage devices to hold cached data, which are populated | * It uses dedicated storage devices to hold cached data, which are populated | ||||
* using large infrequent writes. The main role of this cache is to boost | * using large infrequent writes. The main role of this cache is to boost | ||||
* the performance of random read workloads. The intended L2ARC devices | * the performance of random read workloads. The intended L2ARC devices | ||||
* include short-stroked disks, solid state disks, and other media with | * include short-stroked disks, solid state disks, and other media with | ||||
▲ Show 20 Lines • Show All 2,987 Lines • Show Last 20 Lines |