adrift on a cosmic ocean

Writings on various topics (mostly technical) from Oliver Hookins and Angela Collins. We currently reside in Sydney after almost a decade in Berlin, have three kids, and have far too little time to really justify having a blog.

Posts tagged with linux

  • Client applications and TCP reset handling
    Posted by Oliver on the 10th of June, 2018 in category Tech

    Disclaimer: Most of this post was written in 2014, but it's been languishing in my drafts folder for a long time and I thought I'd push the publish button rather than waiting to perfect it. The original context was that I was attempting to perform integration testing on a client application that needed to handle a variety of different network behaviours - including TCP resets. I mulled over how…

  • Can't create new network sockets? Maybe it isn't user limits...
    Posted by Oliver on the 27th of February, 2013 in category Tech

    I've been doing a lot more programming in Go recently, mostly because it has awesome concurrency primitives but also because it is generally a pretty amazing language. Unlike other languages which have threads, fibres or event-driven frameworks to achieve good concurrency, Go manages to avoid all of these but still remain readable. You can also reason about its behaviour very effectively due to…

  • Reliably finding processes with ps by name
    Posted by Oliver on the 17th of July, 2011 in category Tech

    I imagine that there are two groups of people who might read this post:

    1. When you need to find a process by name, you run ps -ef or similar and pipe into grep processname.
    2. When you need to find a process by name, you run ps -C processname

    If you fall into the first category, you fail my interview tests. Perhaps you smugly fall into the second category, but surely you have seen this occur:

    …
  • Dependencies stored in grey matter
    Posted by Oliver on the 2nd of February, 2011 in category Tech

    I have a Zotac ZBox which I use an my HTPC, and generally it works pretty well. One thing that is slightly troublesome is the HDMI audio, which seems to rely on having the ALSA backports modules package installed in order for it to work. Remembering this is key, though, since when the package is installed it does not automatically get updated when you upgrade the kernel package.

    Most packaging…

  • I/O redirection "optimizations"
    Posted by Oliver on the 12th of September, 2010 in category Tech

    Quite a while back, I had to migrate a few terabytes of data from one machine to another. Not that special a task, and certainly a few terabytes is not that much but at the time it was a reasonable amount and even over 1Gbps network it can take some time. Fortunately it was not time critical and I could take the server in question down for a while to facilitate the migration. The data in question…

  • Exact determination of Linux process memory usage
    Posted by Oliver on the 12th of September, 2010 in category Tech

    While I was still working for Anchor Systems, we had a client who was launching a fairly large website and as part of the gradual ramp-up to delivery we needed to perform some capacity tuning of the web/application servers. The application stack was basically Perl via mod_perl on Apache (not threaded) so we had to determine the memory footprint of the application and make a determination of how…

  • IPv6 Privacy
    Posted by Oliver on the 12th of September, 2010 in category Tech

    I'm a big proponent of getting IPv6 out there, but not everyone shares this opinion. A lot of people are happy to stick with IPv4 and all of the horrid NATing nightmares this introduces despite there being such big wins when using IPv6. Some issues it does introduce though need to be dealt with:

    • The big compatibility issue, which encompasses OS, network stack and application support as well as support by all of the solid-state devices out there already.
    • Direct-connectivity to all endpoints is now possible, so NAT cannot be relied upon to provide security.
    • …
© 2010-2026 Oliver Hookins and Angela Collins