|
|
When files are deleted or moved to subdirectories in EAFS, AFS and S51K filesystems, ``empty directory slots'' (or ``shadow files'') are left. These empty slots can affect system performance by slowing down directory searches.
To determine if a directory contains empty slots,
enter:
hd . | wc -l
l | wc -l
These commands display the number of inodes and number of files in the directory listing. If the number of inodes is significantly more than the number of files in the directory, your system performance might be affected.
To view empty directory slots, enter:
hd .
You see a listing like this:
0000 8c 17 2e 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0010 4e 1d 2e 2e 00 00 00 00 00 00 00 00 00 00 00 00 N............... 0020 00 00 54 4d 2e 32 33 35 37 35 2e 30 30 31 00 00 ..TM.23575.001.. 0030 00 00 44 2e 63 68 6f 72 2d 61 63 35 38 39 66 31 ..D.chor-ac589f1 0040 00 00 58 2e 63 68 6f 72 2d 75 73 41 61 63 35 38 ..X.chor-usAac58 0050 00 00 44 2e 63 68 6f 72 2d 61 63 35 36 34 39 35 ..D.chor-ac56495 0060 00 00 58 2e 63 68 6f 72 2d 75 73 41 61 63 35 36 ..X.chor-usAac56 0070 00 00 43 2e 63 68 6f 72 2d 75 73 4e 33 32 32 61 ..C.chor-usN322a 0080 00 00 41 2e 63 68 6f 72 2d 75 73 4e 33 32 32 39 ..A.chor-usN3229 0090The shadow files appear at the end of the list, and have null inode numbers; 00 and 00 appear in the first two columns of hex digits. In the example, all but the first two files are shadow files.
To remove these empty file slots from the directory:
This command copies the directory and all subdirectories to the backup directory, linking files instead of copying them where possible.
The output of this command should not list any files with null inode numbers (00 in the first two columns).
You can improve system performance by using this procedure on other working and spool directories.
See also: