Skip to content

Conversation

@etschannen
Copy link
Contributor

This should help track down memory leaks which involve fast allocated memory.

flow/Knobs.cpp Outdated
init( SLOWTASK_PROFILING_LOG_BACKOFF, 2.0 );

init( RANDOMSEED_RETRY_LIMIT, 4 );
init( FAST_ALLOC_LOGGING_CHANCE, (128<<10)/10000000.0 ); //one backtrace every 10MB
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we make the magazine size a knob? Or at the very least, we could change this knob to 10e6 (or 10e-6) and then move the magazine size constant to FastAlloc.cpp in order to limit its spread.

@ajbeamon ajbeamon merged commit 33a211c into apple:master Mar 18, 2019
etschannen pushed a commit to etschannen/foundationdb that referenced this pull request Mar 26, 2019
Occasionally log a backtrace when the fast allocators allocates a new magazine
etschannen pushed a commit to etschannen/foundationdb that referenced this pull request Mar 26, 2019
Occasionally log a backtrace when the fast allocators allocates a new magazine
alexmiller-apple pushed a commit to etschannen/foundationdb that referenced this pull request Mar 26, 2019
Occasionally log a backtrace when the fast allocators allocates a new magazine
@etschannen etschannen deleted the feature-memory-logging branch July 31, 2019 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants