-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
armv6 performance regression #1188
Comments
https://jenkins-iojs.nodesource.com/job/iojs+release+nightly/102/ Looks like that build was these changes.. |
Reverting #1085 fixes the problem. |
Changes between those nightlies: 030a923 benchmark: chunky http client benchmark variation The cacheflush system calls are emitted by V8 when code is generated or moved. If reverting 8670613 fixes it, then I speculate that the calls to /cc @indutny |
@bnoordhuis looks like a v8 bug to me. It seems that it is moving lots of small Code chunks for some reason. I guess it might be beneficial to report this bug to the v8 issue tracker and revert the 8670613 for now. |
Looking at it again, I think there is an in retrospect rather obvious bug in 8670613... I'll submit a PR and cross-reference this issue. |
Fix a bug where a size_t was negated and passed to a function that takes an int64_t. It works by accident when sizeof(size_t) == sizeof(int64_t) but it causes the value to underflow when size_t is a 32 bits type. v8::Isolate::AdjustAmountOfExternalAllocatedMemory() is the function I'm talking about. The goal of that call is to tell V8 that some memory has been freed but due to that underflow, we were actually reporting that we had just allocated gigabytes of memory. It set off a garbage collector frenzy and essentially brought the VM to a standstill. Fixes: nodejs#1188 PR-URL: nodejs#1192 Reviewed-By: Fedor Indutny <[email protected]>
Fix confirmed, thanks. |
I have an iojs app that sends images over websockets (socket.io + ws module as client). As of iojs 1.5.1 this started maxing out the CPU instead of taking ~5%. I narrowed it down using the nightlies:
Latest nightly is still affected.
strace shows hundreds of cacheflush calls in the affected builds but none in the unaffected builds.
The text was updated successfully, but these errors were encountered: