You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MS recently did a nice edge dev blog post on their progress on node-chakracore and I thought I'd see what WSL syscalls might be problematic, given that v8 works.
Out of the gate it fails on #597 because it tries to mmap 32GB (sic) of anonymous memory for reasons. Upping the NT paging file size does get you past that.
WSL then does admirably well with what's thrown at it, but makes very slow progress, because a read() syscall pauses when /proc/self/maps is queried. This an strace of npm install <anything>:
That first read after open at :58.100468 pauses for just over a second (1021ms) before proceeding. There are many hundreds (if not thousands) of such calls.
This is not worth looking into as a priority for obvious reasons, but maybe it tweaks a "I bet I know what's happening there" inspiration from someone. Installing the pre-release linked above is trivial.
Thanks for the detailed write-up, we'll need to investigate this one. There was a bug filed internally on something similar where address space enumeration took a long time querying protection bits and it may be related.
Stephen Hufnagel (@stehufntdev) - Just a heads up also since you mentioned protection bits. On WSL the protection bits for /proc/self/maps aren't reported exactly the same as on native Ubuntu.
Note the missing p (private; copy on write) in r-xp. Unfortunately, a certain large popular body of software is very picky about that character being p, s, or Shere, and fails. I assume this is hard to map to NT semantics, or you guys would have implemented it already. If so, it would probably more than suffice to just fake the bit to 'p' for the time being (if not forever).
Thanks for the heads up, yes this is something we are tracking. If the chromium scenario or anything are interesting please give us feedback on the user voice page so we can prioritize.
Most of the slowness was related to #776, and after that change the runtime of a Chakra test, test/Basics, dropped from 53 seconds to 20 seconds on my test vm. To get the runtime closer to native we'll need to look at targeted fixes for caching information for /proc/self/maps.
Awesome. Thanks for the update -- I wasn't really following #776. I assume the remaining slowness is related to #1671.
Can I talk you into spending a few minutes and changing that '-' to a 'p' in the source for the next roll? It will be wrong for shared memory and right for private. Being right most of the time is better than being wrong all of the time. And it will unblock some stuff that just wants the string to be well formed.
Thanks for the reminder Ken, I'll take a look at adding the 'p'. When the procfs support was added we didn't have all the plumbing required but I'm pretty sure we have it all now. Marking this as a bug for tracking.
Stephen Hufnagel (@stehufntdev) I just noticed the access permissions showed up in 16215. Thanks for getting this in. Given we're deeming the performance issue addressed I think this one can be marked fixedinsiderbuilds and closed. There are other issues open that can cover further "allocate all the things" perf improvements.
Activity
stehufntdev commentedon Aug 3, 2016
Thanks for the detailed write-up, we'll need to investigate this one. There was a bug filed internally on something similar where address space enumeration took a long time querying protection bits and it may be related.
therealkenc commentedon Aug 19, 2016
Stephen Hufnagel (@stehufntdev) - Just a heads up also since you mentioned protection bits. On WSL the protection bits for
/proc/self/mapsaren't reported exactly the same as on native Ubuntu.WSL:
Native:
Note the missing
p(private; copy on write) inr-xp. Unfortunately, a certain large popular body of software is very picky about that character beingp,s, orShere, and fails. I assume this is hard to map to NT semantics, or you guys would have implemented it already. If so, it would probably more than suffice to just fake the bit to 'p' for the time being (if not forever).stehufntdev commentedon Aug 19, 2016
Thanks for the heads up, yes this is something we are tracking. If the chromium scenario or anything are interesting please give us feedback on the user voice page so we can prioritize.
stehufntdev commentedon Apr 28, 2017
Most of the slowness was related to #776, and after that change the runtime of a Chakra test, test/Basics, dropped from 53 seconds to 20 seconds on my test vm. To get the runtime closer to native we'll need to look at targeted fixes for caching information for /proc/self/maps.
therealkenc commentedon Apr 28, 2017
Awesome. Thanks for the update -- I wasn't really following #776. I assume the remaining slowness is related to #1671.
Can I talk you into spending a few minutes and changing that '-' to a 'p' in the source for the next roll? It will be wrong for shared memory and right for private. Being right most of the time is better than being wrong all of the time. And it will unblock some stuff that just wants the string to be well formed.
benhillis commentedon Apr 28, 2017
therealkenc - Stephen's fix addresses #1671 as well.
stehufntdev commentedon Apr 28, 2017
Thanks for the reminder Ken, I'll take a look at adding the 'p'. When the procfs support was added we didn't have all the plumbing required but I'm pretty sure we have it all now. Marking this as a bug for tracking.
stehufntdev commentedon May 18, 2017
We submitted a fix for converting the '-' to a 'p' or 's', and it should be out in insider builds soon.
therealkenc commentedon Jun 13, 2017
Stephen Hufnagel (@stehufntdev) I just noticed the access permissions showed up in 16215. Thanks for getting this in. Given we're deeming the performance issue addressed I think this one can be marked fixedinsiderbuilds and closed. There are other issues open that can cover further "allocate all the things" perf improvements.
stehufntdev commentedon Jun 13, 2017
Great, thanks for following up.