You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/09/15 07:58:49 UTC

[GitHub] markusthoemmes opened a new pull request #2752: Use an asynchronous process runner to spawn container commands.

markusthoemmes opened a new pull request #2752: Use an asynchronous process runner to spawn container commands.
URL: https://github.com/apache/incubator-openwhisk/pull/2752
 
 
   **Note:** Measurements of the impacts of this are not yet done. I thought it makes sense to open the PR though for feedback.
   
   `scala.sys.Process` only has a blocking interface which blocks one thread for the runtime of the command. Furthermore, each of those processes open another thread to handle the output streams of the started process. Under load, the system churns through a **lot** of threads, which can cause efficiency problems.
   
   NuProcess is supposed to fix this by providing an epoll interface, to make waiting on process completion asynchronous and its own (small) threadpool to maintain state and handle streams.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services