[PATCH v3 3/4] vinyl: don't consume quota if wait queue isn't empty

Konstantin Osipov kostja at tarantool.org
Tue Feb 12 21:15:53 MSK 2019


* Vladimir Davydov <vdavydov.dev at gmail.com> [19/02/12 20:28]:
> vy_quota_use only checks if there's enough quota available for consumer
> to proceed, but that's not enough, because it may occur that there are
> fibers already waiting for the resource. Bypassing them may result in
> starvation, which manifests itself as "waited for vinyl memory quota for
> too long" warnings. To ensure fairness and avoid starvation, let's go to
> sleep if the wait queue is not empty.

OK to push.

-- 
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
http://tarantool.io - www.twitter.com/kostja_osipov



More information about the Tarantool-patches mailing list