Blocking Detection Article

Check out R. Tyler’s post on blocking detection in Eventlet.  It’s good stuff — if you’re concerned about performance under load, detecting places where your code blocks should be your first order of business.  Here’s the official documentation on enabling blocking detection.

Using signals is kind of appropriate for this sort of functionality, because signals are part of a sorta old-school way of implementing concurrency.  The nice thing about them versus, say, a watchdog thread, is that the Python interpreter really interrupts itself in the middle of whatever it was doing when the signal comes in, so the handler can print the lowest-level line of code that was blocking.

About these ads

One response to this post.

  1. Hey There Blog,
    Very interesting, Powerful article marketing requires that you write a great title for your articles.
    BTW great blogpost

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.