Archive for the ‘linux’ Category

Learning Go (and serializing objects with it, too)

I had intended to make my next target the Go RPC services, simply because RPC is cool. Nothing makes me happier than pressing a button on machine A while watching the LED on machine B flash. Nothing. As I got into the RPC code, I realized that underlying data serialization was handled by the gob [...]

Posted on February 17, 2011 at 3:59 pm by Jeff McNeil · Permalink · 2 Comments
In: development, Go, linux, open source

Learning Go (and integrating with inotify, too)

Go provides a native interface into the Linux inotify system. What’s inotify?  According to the man page, the inotify API provides a mechanism for monitoring file system events.  It can be used to monitor individual files, or directories.  There are a series of system calls available providing access to inotify. Here’s a quick run down of what [...]

Posted on February 16, 2011 at 11:58 pm by Jeff McNeil · Permalink · One Comment
In: development, Go, linux, open source

Learning Go (and hitting C libraries with it, too)

Update: This is already underway in a real fashion. Check out go-python for more information. Looks like a solid project! Being the type of guy that doesn’t like to learn anything at the surface level, I decided to look into how one would integrate an existing C library with a Go application. My curiosity was [...]

Posted on February 15, 2011 at 2:50 pm by Jeff McNeil · Permalink · 2 Comments
In: Go, linux, open source, python

KVM Virtual Disk Access

Whenever I have an issue with a virtual machine, I’ve often simply restarted it in single-user mode as I would a physical.  This has largely worked fine for me as my virtual machines, which are all lab related, were on the same network. Console access was nice and fast and easy to use.  However, we’re [...]

Posted on May 14, 2010 at 1:16 pm by Jeff McNeil · Permalink · 6 Comments
In: linux, virtualization, xen

I keep killing my X server…

I use GNU Emacs to edit most everything. Python, text files, C code, shell scripts… I even run all of my shell windows as ‘ansi-term’ buffers. Who needs a mouse? That said, I have a terrible habit of smacking CTRL+ALT+BACKSPACE while attempting to hit CTRL+BACKSPACE. Yeah, I know. One kills the previous word and one [...]

Posted on February 23, 2009 at 10:45 am by Jeff McNeil · Permalink · 3 Comments
In: linux

Learning Xen

I’ve been diving into Xen over the past week or so. In an effort to learn how it really works, I decided to setup a new VM without using the Red Hat documented virt-install utility. A lot of this I learned from http://wiki.xensource.com. Hopefully someone else finds this useful as well. I’m doing this on [...]

Posted on January 15, 2009 at 3:13 pm by Jeff McNeil · Permalink · Comments Closed
In: linux, xen

Thanks, GoogleBot!

There are very few things I’ll write in C these days. I just don’t have a reason to use it. If I can write it in Python, I usually will unless I have a good reason not to. One of the exceptions is an Apache module that we use to dynamically manage virtual host data [...]

Posted on October 16, 2008 at 8:58 pm by Jeff McNeil · Permalink · Comments Closed
In: linux, python

NFS Problems

All of my NFS problems have just gone away. We’ve recently updated our Kernels to the latest RHES available. Looks like there was something hidden in there that fixed it for us. Wonderful. I do realize that it’s normal to see delay. Both due to attribute cache semantics and mtime granularity of one second. The [...]

Posted on June 13, 2008 at 7:12 pm by Jeff McNeil · Permalink · Comments Closed
In: linux

Linux Caching Issues

Recently, we started seeing issues where a file would exist on a couple of the NFS clients, but not the others. The front-end Apache instance would return different results depending on which cluster nodes our load balancers would direct us to. In some cases, we’d recieve 404 errors. In other cases, we’d get the actual [...]

Posted on May 23, 2008 at 10:17 am by Jeff McNeil · Permalink · Comments Closed
In: linux