Skip to content

node_crypto_bio: adjust external memory size - #1085

Closed
indutny wants to merge 1 commit into
nodejs:v1.xfrom
indutny:feature/adjust-external-tls-buffers
Closed

node_crypto_bio: adjust external memory size#1085
indutny wants to merge 1 commit into
nodejs:v1.xfrom
indutny:feature/adjust-external-tls-buffers

Conversation

@indutny

@indutny indutny commented Mar 6, 2015

Copy link
Copy Markdown
Member

Adjust V8's external memory size when allocating buffers for TLS data to
ensure that V8 has enough information to trigger the GC at right time.
@indutny

indutny commented Mar 6, 2015

Copy link
Copy Markdown
Member Author

Here are improvised graphs of TLSWrap lifetime without this patch:

leak

And with this patch:

no-leak

@indutny

indutny commented Mar 6, 2015

Copy link
Copy Markdown
Member Author

It seems to stabilize after 20 minutes in both cases.

@indutny

indutny commented Mar 6, 2015

Copy link
Copy Markdown
Member Author

Not sure if the patch actually helps that much.

@aredridel

Copy link
Copy Markdown
Contributor

:/

@indutny

indutny commented Mar 7, 2015

Copy link
Copy Markdown
Member Author

@aredridel initial GC seems to be much better overall.

@indutny

indutny commented Mar 7, 2015

Copy link
Copy Markdown
Member Author

@bnoordhuis LGTY?

Comment thread src/node_crypto_bio.h

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You can drop the explicit keyword here.

@bnoordhuis

Copy link
Copy Markdown
Member

LGTM with a suggestion.

indutny added a commit that referenced this pull request Mar 8, 2015
Adjust V8's external memory size when allocating buffers for TLS data to
ensure that V8 has enough information to trigger the GC at right time.

PR-URL: #1085
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
@indutny

indutny commented Mar 8, 2015

Copy link
Copy Markdown
Member Author

Landed in 8670613, thank you!

@indutny indutny closed this Mar 8, 2015
@indutny
indutny deleted the feature/adjust-external-tls-buffers branch March 8, 2015 23:08
@rvagg rvagg mentioned this pull request Mar 9, 2015
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.

3 participants