Commit r345200 (new ARC reclamation threads) looks suspicious to me.

Lev Serebryakov lev at
Wed Jun 5 12:09:01 UTC 2019

Hello Slawa,

Friday, May 31, 2019, 6:12:02 PM, you wrote:

> What about arc_no_grow, for example?
> arc_no_grow set in arc_reap_cb_check(), called from arc_reap_zthr
> thread and in arc_lowmem().
> arc_no_grow test in arc_adapt(), called from
> arc_read()/arc_get_data_impl() called from many unsynced thread.

> How synced visibility of this varibale?
 I don;t like this one either. It is set under mutex (t->zthr_lock of reap
thread/timer), but looks like tit is read by many other threads... And
`arc_lowmem()` uses `arc_adjust_lock`...

Best regards,
 Lev                            mailto:lev at

More information about the freebsd-fs mailing list