Filesystem statistics for `*Route show` with Internet 6

by gerph
macOS ◆ xterm-256color ◆ fish 535 views

The recording shows a test of loading Internet and Resolver, then running ifconfig lo0 127.0.0.1 and then *Route Show to see what routes have been configured.

The execution has a lot of debug enabled, to try to tease out what’s being done and what might be a problem. The new option that has been added for this example is that of filesystem statistics, which shows information about which filesystem operations have been performed on files through the execution of the system. This was created because it seemed that Resolver (or maybe *Route itself) was parsing files more often than seemed reasonable.

At the end of the log (and in the thumbnail) it is possible to see the statistics for different accesses for certain files. In particular the services file is opened and read 8 times, where you might assume that the parsed content was retained rather than being re-read.