[DTrace-devel] [PATCH v4 04/10] alloca: add alloca() itself

Nick Alcock nick.alcock at oracle.com
Thu Apr 14 11:05:17 UTC 2022


On 13 Apr 2022, Kris Van Hees outgrape:

> On Tue, Apr 12, 2022 at 11:59:03AM +0100, Nick Alcock wrote:
>> We add a new scratchsize option (default value 256, just like in days of
>> old), and a new scratchmem dctx pointer.  This is allocated twice as
>
> This is not really accurate,  Yes, in the legacy version there was a default
> value in the userspace component that pre-populated the size, but then the
> kernel component would (depending on the buffer type) update that value with
> the 'real' size of the available memory for scratch space.

Oh, so it was often huge? Hm, maybe that constitutes a regression :/

> But any limit is fine at this point.  People can tune it as needed.

And we can boost it in later versions.

(Commit message adjusted.)



More information about the DTrace-devel mailing list