7.1. Kernel Parameters Run Amok

Let’s consider a real-life example. The Solaris operating system from Sun Microsystems contains a kernel table called the Directory Name Lookup Cache (DNLC). The DNLC is a kernel cache that matches the name of a recently accessed file with its vnode (a virtual inode, an extra level of abstraction that makes writing interfaces to filesystems easier and more portable) if the file name isn’t too long. Keeping this table in memory means that if a file is opened once by a process, and then opened again within a short period of time, the second open() won’t require a directory lookup to retrieve the file’s inode. If many of the open()s performed by the system operate on the same files over and over, this strategy could ...

Get sendmail Performance Tuning now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.