10-08-2009
Rule of thumb:
Seriously consider never letting a given filesystem get above 80-85% full.
Filesystems under heavy I/O loads suffer from various kinds of latency issues
when free space becomes tight, file allocation times increase as well.
The other caveat:
Assuming loads of available free inodes, huge directory files (the directory file itself, not what is in the directory) are the result of adding lots of files to a single directory. As the directory file itself grows, system performance against it - ls, find, stat, etc. - becomes very poor.
This is because any operation that does a readdir, which is sequential, is really slow if it has to read thru 2 million entries to find one filename.
When files are deleted from the bloated directory, it does not shrink. You have to park the remaining files somewhere, delete the directory, recreate the directory, then move the files back into it. And you have a new, smaller size directory file. Having broader directory trees solves this problem in the first place.
9 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
Is the performance now very, very slow (pages take a very long time to load)? Or is it just me?
Neo (6 Replies)
Discussion started by: Neo
6 Replies
2. Shell Programming and Scripting
We have an egrep search in a while loop.
egrep -w "$key" ${PICKUP_DIR}/new_update >> ${PICKUP_DIR}/update_record_new
${PICKUP_DIR}/new_update is 210 MB file
In each iteration, the egrep on an average takes around 50-60 seconds to search. Ther'es nothing significant in the loop other... (7 Replies)
Discussion started by: hidnana
7 Replies
3. UNIX for Dummies Questions & Answers
hi guys
We are seeing weird issues on my Linux Suse 10, it has lotus 8.5
and 1 filesystem for OS and another for Lotus Database.
the issue is when the Lotus service starts wait on top is very high about 25% percent and in general CPU usage is very high
we found that when this happens if we... (0 Replies)
Discussion started by: kopper
0 Replies
4. Solaris
Dear All,
I have a hard disk in solaris on which the write performanc is too slow.
The CPU , RAM memory are absolutely fine.
What might be reason.
Kindly explain.
Rj (9 Replies)
Discussion started by: jegaraman
9 Replies
5. Shell Programming and Scripting
Please, I need help tuning my script. It works but it's too slow.
The code reads an acivity log file with 50.000 - 100.000 lines and filters error messages from it. The data in the actlog file look similar to this:
02/08/2011 00:25:01,ANR2034E QUERY MOUNT: No match found using this criteria.... (5 Replies)
Discussion started by: Miila
5 Replies
6. Infrastructure Monitoring
There is a big problem with the server (VPS based on OpenVZ, CentOS 5, 3GB RAM). The problem is the following. The first 15-20 minutes after starting the server is operating normally, the load average is less than or about 1.0, but then begins to increase sharply% wa, then hovers around 95-99%.... (2 Replies)
Discussion started by: draiphod
2 Replies
7. Red Hat
My code
Hi All,
I am having redhat linux 5.3 (Tikanga) with GFS file system and its very very slow for executing ls -ls command also.Please see the below for 2minits 12 second takes.
Please help me to fix the issue.
$ sudo time ls -la BadFiles |wc -l
0.01user 0.26system... (3 Replies)
Discussion started by: susindram
3 Replies
8. Solaris
I have identical M5000 machines that are needing to transfer very large amounts of data between them. These are fully loaded machines, and I've already checked IO, memory usage, etc... I get poor network performance even when the machines are idle or copying via loopback. The 10 GB NICs are... (7 Replies)
Discussion started by: christr
7 Replies
9. Filesystems, Disks and Memory
I have a lot of binary files I need to copy to a folder. The folder is already filled with files of the same name. Copying on top of the old files takes MUCH longer than if I were to delete the old files then copy the new files to the now-empty folder. This result is specific to one system -... (3 Replies)
Discussion started by: ces55
3 Replies
NWDIR(1) nwdir NWDIR(1)
NAME
nwdir - Lists files in directory
SYNOPSIS
nwdir [-h] [-v] [-l] [-t] [-d] [-e] [-f] [directory]
DESCRIPTION
nwdir lists files, directories and their attributes from the specified NetWare directory.
OPTIONS
-h
-h is used to print out a short help text.
-d
List directories like other files, rather than listing their contents.
-l
Show filename in all available namespaces.
-v
Verbose listing, display everything possible.
-e
Display OS/2 Extended Attributes.
-f
List connections using each file.
-t
Show all informations (rights, attributes, file inodes) also as hexadecimal numbers.
directory
You can specify the directory to list. Current working directory is used by default. You have to specify path in Linux format, not in
NetWare format.
EXAMPLES
nwdir -t -v /NetWare/server/sys
With this example, all files from directory /NetWare/server/sys are displayed.
AUTHORS
nwdir was written by Milan Vandrovec. See the Changes file of ncpfs for other contributors.
BUGS
Directory quotas are not displayed. User names are not taken from NDS, but only from bindery.
nwdir 4/2/1998 NWDIR(1)