Deleting files and directories is slow in a UFS filesystem (Doc ID 1017512.1)

Last updated on SEPTEMBER 18, 2014

Applies to:

Solaris SPARC Operating System - Version 8.0 and later
All Platforms

Symptoms

Running truss on a process thus affected, will show the system call unlink(2) taking tens to hundreds of milliseconds.

This time varies, depending on the size of the file being unlinked.

   $ truss -D rm testfile
...
0.4962     unlink("testfile")                              = 0
...

The problem is exacerbated when doing removals of hierarchies of large files.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms