Skip to content

portability

1 post with the tag “portability”

Asking the Machine

Reading a host's own limits, on systems that each hide the answer somewhere different.

A long-running server should know its own limits: how many file descriptors it is burning against the cap, how much RAM the process holds, how much disk is left before writes start failing. None of those numbers has a portable source. The nineteenth familiar is the small, unglamorous library that asks each operating system for them in its own dialect, so the rest of the engine can just ask once.