Skitch.com

node.js buffering

node.js buffering

Fave
Login or signup to add to private favorites
1463x498
This is showing node.js socket writes, decomposed by number of bytes buffered within node. (Node will buffer bytes when it cannot write to the stream without blocking.)  The program here is the socket.io example program (a beautifully tight chat program) trying to write a large (greater than three megabyte) buffer to three clients (highlighted here).  This shows that (as expected) the clients are consuming data (thereby allowing node to write its buffered data to the kernel) faster than it is being generated.  The data was generated by instrumenting node.js with DTrace (using USDT probes that record bufferSize) and then visualized using a prototype of Joyent's forthcoming cloud analytics, more details on which can be found here: http://dtrace.org/blogs/brendan/2011/01/24/cloud-analytics-first-video/
We recommend you create a skitch account to take advantage of many more features.

Sign up now!
Alerts:
02 February 2011
Share page link
Copy
Link to the page you are
looking at right now :)
Privacy
Pssst!.. This page is Secret - it can only be seen if you give people the link
© 2012 Evernote Corporation App Store is a service mark of Apple Inc. Terms of Use Privacy Policy 日本語サイト

Hosted by

Hosted by mediatemple

Saving...
 

Share node.js buffering via email

Report concern about 'node.js buffering'

Please report this image if you believe this image or comment thread contains inappropriate content. Some examples of inappropriate content are pornographic or explicit images, images which infringe trademark or copyright law and images which are libelous or derogatory. Please be aware that, while we appreciate your report, the owners of Skitch.com will have 'final say' on the appropriateness of an image.

Full Size Details and comments