[tarantool-patches] Re: [RFC v3] fiber: Increase default stack size

Konstantin Osipov kostja at tarantool.org
Tue Feb 26 16:26:31 MSK 2019


* Vladimir Davydov <vdavydov.dev at gmail.com> [19/02/26 15:37]:
> 
> 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.

More importantly, since stack usage/layout is usually the same in
all fibers, i.e. it depends only on particular invocation chain,
and random markers could be set at different locations at
different fibers we are almost guaranteed to spot the problem 
sooner or later, moreover, more likely sooner than later.

-- 
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