[tarantool-patches] [rfc 3/4] core/fiber: Put static watermark into stack to track its usage

Konstantin Osipov kostja at tarantool.org
Tue Mar 5 11:10:13 MSK 2019


* Cyrill Gorcunov <gorcunov at gmail.com> [19/03/03 23:25]:
> +/*
> + * Random values generated with uuid.
> + * Try to fit a cache line.
> + */
> +static const uint64_t poison_pool[] = {
> +	0x74f31d37285c4c37, 0xb10269a05bf10c29,
> +	0x0994d845bd284e0f, 0x9ffd4f7129c184df,
> +	0x357151e6711c4415, 0x8c5e5f41aafe6f28,
> +	0x6917dd79e78049d5, 0xba61957c65ca2465,
> +};

With randomness incorporated into each fiber I think we can reduce
the poison pool to 4 8-byte integers or even less.


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