On Mon, 2017-08-21 at 20:40 +0800, Jason Wang wrote: > > On 2017年08月21日 11:06, Jason Wang wrote: > > > > > > On 2017年08月19日 14:41, Koichiro Den wrote: > > > To depend on vq.num and the usage of VHOST_MAX_PEND is not succinct > > > and in some case unexpected, so revert its logic part only. > > > > Hi: > > > > Could you explain a little bit more on the case that is was not > > sufficent? > > > > Thanks > > Just have another thought. > > I wonder whether or not just use ulimit(memlock) is better here. It > looks more flexible. > > Thanks It sounds a better approach, though at present I have got no idea how much portion it should be.