Thursday, November 12, 2020

Re: Malloc options

On Thu, Nov 12, 2020 at 05:40:39AM -0600, edgar@pettijohn-web.com wrote:

> On Nov 12, 2020 3:06 AM, Stuart Henderson <stu@spacehopper.org> wrote:
>
> On 2020-11-11, edgar@pettijohn-web.com <edgar@pettijohn-web.com>
> wrote:
> > Thanks for the quick reply. I'll stick with "s" for now and if its
> > unbearably slow I'll try others.
>
> 'S' not 's', they're case-sensitive (from the manual, "Unless
> otherwise
> noted uppercase means on, lowercase means off.")
>
>
> Luckily it's a typo in the email. However, I don't recall reading that.
> Must have skimmed past it.
> Thanks,
> Edgar

This can be handy when you have e.g. the sysctl set, but want to override:

# sysctl vm.malloc_conf=S

All processes run with S

MALLOC_OPTONS=sC executable

Runs this executable without S but with canaries.

-Otto

No comments:

Post a Comment