Chasing OpenStack memory usage: the memory your Python services spend on code they never run

OpenStack’s CI runs most changes through devstack, which usually builds an entire cloud on a single virtual machine. The underlying machines are often forced to swap out memory, and swapping makes jobs slow and flaky. This is especially true because a lot of the machines donated for hosting OpenStack CI are genuinely really quite old now. For years one of the suspects has been privsep, the privilege separation daemon that a member of my team wrote while we both worked at Rackspace Australia. The basic idea of privsep is to replace a predecessor called rootwrap which relied on complicated sudo configuration files and forked processes all over the place. privsep on the other hand works by decorating Python functions with the security context they should operate in and then doing… magic… to hand off actual execution of that method to a separate daemon which holds the right permissions. That is, privsep is the right technical solution, but to my mild surprise a decade later we’re still half-way through a migration and not everyone is completely happy. privsep’s memory usage came up again at a recent Technical Committee meeting, so I went and measured it.

(more…)

Continue ReadingChasing OpenStack memory usage: the memory your Python services spend on code they never run

Getting a ZG-204W WiFi PIR sensor working with tuya-local and Home Assistant

I wanted a presence sensor for my office but am cheap, so I ordered a ZG-204ZM from AliExpress. One of the main attractions was that it is USB powered and I am tired of changing batteries, and it does temperature / humidity / luminance as well. The device I thought I ordered is a Zigbee PIR plus 24GHz mmWave sensor that a lot of people seem happy with. What arrived was a ZG-204W, which is its WiFi sibling that talks Tyua and lacks a mmWave radar. This is of course entirely my fault — I had ordered the wrong variant. It also turns out the WiFi version is PIR only, with no mmWave radar at all, so it is a motion sensor rather than a presence sensor. It also has temperature, humidity and light sensors though, so I decided to make the best of it.

(more…)

Continue ReadingGetting a ZG-204W WiFi PIR sensor working with tuya-local and Home Assistant

When

  • Post author:
  • Post published:
  • Post category:Book

When
Daniel H. Pink
Time
Text Publishing Company
2018
256
★★★★☆

Whilst Daniel Pink’s “When” might have suffered a bit from the scientific replication crisis that plagues books of this era, I think it makes an interesting if slightly obvious point — work out what time of day you do your best work, and then work out how to ensure that time is when you do work. I think that perhaps the general trend towards working from home makes this a bit more possible than it would otherwise be, but it’s certainly true that employers of even remote employees do love to impose a schedule based largely on ideas from a different century. Ironically, I say this as someone who naturally gets up early and is pretty smashed by about 9pm. That is, the traditional work day works quite well for me.

(more…)

Continue ReadingWhen

Beacon 23

  • Post author:
  • Post published:
  • Post category:Book

This is a science fiction novel set in the cramped confines of a navigational beacon in interstellar space. The solo operator of the beacon is a bit... messed up by his military service and needs to think some stuff through. The book could be depressing, but it is not. Its funny and serious and an entertaining read all at once. I enjoyed it. It was also quite different from the TV show that is based on it by the way.

Continue ReadingBeacon 23

Robot Dreams (again)

  • Post author:
  • Post published:
  • Post category:Book

I think its interesting how my perspective on these older science fiction books changes a bit each time I read them. Last time I read this book I was annoyed by how few were robot stories, whereas this time I really dug The Martian Way, because I think the premise feels much more possible that it did a few years ago -- let alone in 2008! I enjoyed this book, again.

Continue ReadingRobot Dreams (again)

Michael’s unifying theories: when you grew up seems to really affect your attitude towards information

When I was a teenager one of my favorite series of books was Inside Macintosh. Sure I liked lots of fiction stuff as well, but in terms of technical books that really changed how I thought about things in high school, this was it. The design of the early Macintoshes was elegant, whilst also having to deal with limitations of the time — the library routines for much of the operating system were baked into ROM for example, but there was a method to cowboy patch them as required. The books were comprehensive, readable to a mildly talented hobbyist, and best of all were sitting on the shelf of my local library.

(more…)

Continue ReadingMichael’s unifying theories: when you grew up seems to really affect your attitude towards information

On resistance to change in computer science

Irving Ziller, one of the original members of the FORTRAN team, describing the resistance of early programmers to the introduction of a compiler: "And in the background was the scepticism, the entrenchment of many of the people who did programming in this way at that time; what was called 'hand-to-hand combat' with the machine." From https://www.cs.man.ac.uk/CCS/res/res41.htm

Continue ReadingOn resistance to change in computer science

Stuff the British Stole

  • Post author:
  • Post published:
  • Post category:Book

Stuff the British Stole Book Cover Stuff the British Stole
Marc Fennell
Penguin Random House NZ
★★★☆☆

This book is interesting and easy to read, but I can’t help but feel like sometimes it lacks depth of analysis. It certainly lacks any form of supporting references, which I have come to expect in books of this type.

(more…)

Continue ReadingStuff the British Stole

Michael’s unifying theories: the way an organization thinks of itself really matters

A few times now I have worked for organizations that are basically IT shops — that is, their core business now depends on being very good at doing Computer Things. However, many of these places were pretty terrible at computers. Let’s keep picking on Telstra, because its an easier example.

(more…)

Continue ReadingMichael’s unifying theories: the way an organization thinks of itself really matters

End of content

No more pages to load