[RFC v3] fiber: Increase default stack size

Cyrill Gorcunov gorcunov at gmail.com
Tue Feb 26 15:54:57 MSK 2019


On Tue, Feb 26, 2019 at 03:34:56PM +0300, Vladimir Davydov wrote:
> > 
> > If we want to scatter we should simply put marks at page bounds.
> > Dirtifying somewhere inside middle of a page is useless.
> 
> Hmm, why? Consider the example with PATH_MAX buffer. Putting dirty marks
> at page boundaries doesn't guarantee any of them will get overwritten by
> the buffer if only a few hundred of bytes are used. I think we should
> dirty the last page or two at random intervals - this should increase
> the chance that at least one mark is overwritten by any function that is
> eager for the stack.

Ah, I got what you mean. Look, maybe we should consider pagemap too?
iirc readin pagemap should be cheap but need to read the code though,
will try once time permit.



More information about the Tarantool-patches mailing list