[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    Re: Commit r345200 (new ARC reclamation threads) looks suspicious to me.
From:       Lev Serebryakov <lev () FreeBSD ! org>
Date:       2019-06-05 12:08:56
Message-ID: 1644469784.20190605150856 () serebryakov ! spb ! ru
[Download RAW message or body]

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@FreeBSD.org

_______________________________________________
freebsd-hackers@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic