Understanding z/OS UNIX System Services latch contention

This section is designed to help you understand the global resource serialization latches that the z/OS UNIX System Services logical file system (LFS) uses to provide serialization for file systems. It also contains procedure to help you diagnose and resolve mount latch contention and file system latch contention in this section. See Procedure: Diagnosing and resolving latch contention.

The z/OS UNIX System Services LFS uses three levels of global resource serialization latches to provide serialization for file systems:
In addition to these three levels, the LFS also uses a quiesce latch, which is assigned to any file system that is:

When a file system is quiesced, normal operations are suspended, and threads wait suspended for the file system's quiesce latch. The system may hold the quiesce latch for longer than the duration of a system call. Note that HSM does not use the quiesce latch for zFS file systems.

Use the DISPLAY OMVS,FILE command to look for quiesce latch contention on your system.

Diagnosing latch contention: You will know that you have a case of latch contention by symptoms such as the following: In general, the key to resolving latch contention lies in finding the latch holder. There are two kinds of z/OS UNIX System Services tasks that can hold a latch, potentially causing contention: