On 19/03/2019 09:04, Jan Beulich wrote: >>>> On 19.03.19 at 07:07, <jgr...@suse.com> wrote: >> Why don't we replace the "*get_func()" with a "char *current_val" being >> filled at parameter setting time? How current_val is allocated (static >> string or dynamic buffer) just has to be known by the custom parameter >> parsing function. > > Could accumulate (over time) to quite a bit of wasted allocations if > no-one ever cares about calling the new sysctl.
In the normal case the needed memory shouldn't be more than that of the boot parameters, maybe plus some bytes in case runtime parameters are set. So I believe we are talking about less than one memory page. Juergen _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel