From mboxrd@z Thu Jan 1 00:00:00 1970 From: random832@fastmail.com (Random832) Date: Sat, 23 Sep 2017 20:11:06 -0400 Subject: [TUHS] UNIX of choice these days? In-Reply-To: References: <20170923091704.GD10152@darioniedermann.it> <20170923100320.GE10152@darioniedermann.it> Message-ID: <1506211866.2464398.1116109544.0A61F234@webmail.messagingengine.com> On Sat, Sep 23, 2017, at 19:04, Dave Horsfall wrote: > On Sat, 23 Sep 2017, Dario Niedermann wrote: > > > But does the kernel put [/proc] to good use? > > Doesn't "ps" use it? Quicker than digging around /dev/kmem, surely? On OSX (which does not implement procfs or kmem), ps uses sysctl. It looks like FreeBSD uses something called libkvm, which certainly *sounds* like it digs around /dev/kmem, but looking at the code it looks like it *actually* uses sysctl for process-related purposes.