• provectus@lemmy.ml
    link
    fedilink
    English
    arrow-up
    5
    ·
    14 hours ago

    Did you know openBSD does not have this folder? I think the BSD’s do not use /proc. I do not know why though.

    • [object Object]@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      5 hours ago

      That raises the question of how their ps, top, lsof and such work, since afaik in Linux they read from /proc.

      P.S. Looks like BSDs tug at the kernel via syscalls, namely sysctl and also the ‘kvm interface’ in the case of MacOS (not sure what ‘kvm’ thing is meant here). Seems vaguely reasonable, since procfs also queries the kernel for the info, so about the same resources would be used, perhaps even with the overhead of filesystem traversal and string-numbers conversion.