Better HN
topnewbestaskshowjobs
Log inSign up

attilaolah

11 karma · joined Aug 12, 2013 (13y ago) · 10 submissions

https://attilaolah.eu
Submissions

comment 4w ago · link · parent

I was running a similar experiment but on bare metal, and my bottleneck was disk not RAM, so trimming the firmware and modules yield the biggest win. And I compile on a different host and just push binaries to the resulting systems.

One thing I was wondering is, whether switching some leaf packages to Musk would help. Rebuilding the whole system for Musl seems broken most of the time, but many leaf packages can still be cross-compiled. So e.g. I'd get a Caddy or OpenBao binaries, etc.

comment 1mo ago · link · parent

To be clear, it will shut down Jellyfin after 20 minutes of inactivity on the socket. It may as well be that Jellyfin is doing some background work like re-indexing videos, so it is not perfect, but it is the next best thing until Jellyfin supports first-class socket activation.

comment 1mo ago · link · parent

Yeah Clan does have some rough edges. And the website is indeed like that, especially the bits about disko / partitioning, etc.

comment 1mo ago · link · parent

No it doesn't support that, but systemd-socket-proxyd does. So my Systemd service exec line looks like this:

ExecStart = /path/to/systemd/lib/systemd/systemd-socket-proxyd --exit-idle-time=20min /path/to/jellyfin.socket;

https://github.com/attilaolah/dotfiles/blob/144d1711755d7a9e...

comment 1mo ago · link · parent

Or bwrap on linux, which is probably good-enough for most services' isolation needs.

comment 1mo ago · link · parent

I also used to run everything on K8s (hybrid Talos / Alpine+k0s on nodes too small for Talos). It is a fun exercise, but with many small nodes eventually I realised I was burning a quarter of my fleet's CPU on just monitoring and routing services.

Eventually I switched to Systemd only, Clan-managed NixOS instances on bare metal.

The killer feature for me is socket activation. It even works with Jellyfin, wrapped in systemd-socket-proxyd. I have Jellyfin listen on a UDS, and Systemd will activate it when my TV connects. The downside is a few more seconds of waiting when I open Jellyfin on the TV. The upside is, after 20 minutes of idling, it is fully powered down.

This allows packing even more services on smaller machines, provided you don't e.g. play Minecraft and watch Jellyfin at the same time.

comment 9mo ago · link · parent

I find it amazing that a title including the phrase "car wash" does not need to specify that "models" in fact do not refer to car manufacturers' models.

comment 11y ago · link · parent

> Whaaaaa? I can't find this, but it seems like such a weird operation. Got a link?

https://wwwx.cs.unc.edu/~duozhao/entry/2014/12/binary-tree-u...

comment 11y ago · link · parent

Oddly enough, Google shows me interview questions where "inverting a binary tree" means something quite different — for example, flipping it upside down, and making the left leaf the root, the right leaf the left leaf and the root the right leaf.

If this was really about "reversing" the tree, as you mention, the question seems more likely to address how the candidate approaches the situation. Like, he should start by making sure they both agree on what the question actually means.

Once that's out of the way, it seems relatively easy to come up with a naive solution, without having memorised any algorithms. It seems more like a case of brainfreeze to me, which can be sort-of fixed with practice (which in turn many candidates refuse to do: the dreaded "If I have to cram for the interview, I don't want the job" statement.)

So maybe he really wasn't a good fit for Google, despite apparently being a rockstar developer. Hey, startups need rockstar devs too.

10.

Show HN: Dnsp – a lightweight DNS proxy with community blacklist support(github.com ↗)

2 points · by attilaolah · 11y ago · discuss