Lisp image uptimes

Posted on Sat, 9 Dec 2006
Prior to SBCL 1.0, GET-INTERNAL-RUN-TIME returned the time since the first call to GET-INTERNAL-RUN-TIME in that image, not the time since image start. Thus, when I tried Xach's uptime reporting code, my longest-running image reported an uptime of 0 seconds.

Fortunately Linux keeps this around in the proc data structures, and ps can pull it out in human readable form:

$ ps -eo pid,lstart,cmd | grep sbcl
17848 Tue Jun 27 06:25:03 2006 sbcl

As of this writing, my longest-running image is 165 days, 15 hours, 41 minutes, and 58 seconds old, which bests Xach's by 19 days. This image is also a commercial application: it provides a web application to Formally Modern Tuxedo, a family formalwear store in Chicago.

The image which provides this blog is much younger (90 days, 7 hours, 10 minutes, and 4 seconds). I'll likely upgrade this image to SBCL 1.0 soon.

Trackback pings for this entry are listed below. The URL to ping for this entry is: http://brian.mastenbrook.net/trackback/16