Deleting files and directories is slow in a UFS filesystem
Last updated on SEPTEMBER 18, 2014
Applies to:Solaris SPARC Operating System - Version 8.0 and later
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.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms