Category Archives: Python

MmStats in Scripts

MmStats is a library I created to expose and read statistics, metrics, and debugging information from running Python processes without the overhead of syscalls (eg writing to a socket or file) or threads, and to make sure that as many … Continue reading

Posted in Python | Tagged , | 3 Comments

Building Python 2.6.8 on Ubuntu 12.04

Update 2012-06-01: Looks like pythonz is an easier way to install Python 2.6.8 (and all other Pythons) on Ubuntu 12.04. Ubuntu 12.04 builds OpenSSL without SSLv2. Python 2.6.8 expects OpenSSL to be built with SSLv2. This is a bug that … Continue reading

Posted in GNU/Linux, Open Source, Python | 6 Comments

MemoryMapFile Convenience Class for Python

My obsession with mmap hasn’t died, but while Python’s mmap module is a wonderful low level library it’s a bit hard for a newcomer to use properly. I’ve started toying with a convenience wrapper class for mmap.mmap (at least the … Continue reading

Posted in Open Source, Python, Technology | Tagged | Leave a comment

Sharing Python data between processes using mmap

I’ve been toying with an idea of exposing statistics for a Python application via shared memory to keep the performance impact on the application as low as possible. The goal being an application could passively expose a number of metrics … Continue reading

Posted in GNU/Linux, Open Source, Python, Technology | Tagged , , , | 6 Comments

signalfd

This article covers signalfd, a system call only available on Linux. If anyone knows of an equivalent for OSX or BSDs,* please let me know. It’d be great to create a compatibility layer. Writing asynchronous IO code is fun; handling … Continue reading

Posted in GNU/Linux, Open Source, Python, Technology | 3 Comments

Deploying Python behind Nginx Talk Slides

I gave a talk on deploying Python WSGI apps behind nginx at the Portland Python User Group meeting on January 11th and finally got around to publishing the slides: schmingx. I should mention Jason Kirtland informed me after the meeting … Continue reading

Posted in GNU/Linux, Open Source, Python, Technology | Tagged , , , , | 4 Comments