Login
You're viewing the social.tinygo.org public feed.
  • Oct 24, 2026, 11:47 AM

    Today I'm getting into cgroups for my next article.

    One thing that is kinda surprising is how you interact with cgroups, through the filesystem, generating a new cgroup is as easy as running a "mkdir" command. And limiting the number of processes just an "echo" command.

    I'll publish it on Monday.

    💬 1🔄 1⭐ 2

Replies

  • Oct 24, 2026, 11:53 AM

    @jespino
    Random trivia tangential to the cgroups interface:

    Same pattern - mkdirs and writes to files in a virtual filesystem - is how configfs works. It's used, eg. to configure Linux's USB gadget functiinality - making Linux act as a USB device.

    But AFAIK the pattern is much older and comes from Plan 9, which is an OS that Unix authors made when they realized that Unix doesn't take the "everything is a file" mantra far enough.

    💬 0🔄 0⭐ 0