Skip to contentSkip to conversation

slow directory listing

DISCUSSION Bodo Eggert 3 participants 3 messages Jun 10, 2005 – Jun 15, 2005 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 9 lines · Ron Peterson
Quoted 6 lines · rpeterso

I'm setting up a new mail server, and am testing/tweaking IO. I have two directories: /test/a which contains 750 mbox files totalling 8GB, and /test/a2, which contains the exact same number of files, same names, all zero length.
...
The times taken to do a directory listing are significantly different.

Quoted 4 lines

I've become more confused, if that's possible. I was just editing some test script in emacs. As part of the script creation process I used the M-! command to pipe the output of 'ls /test/a' into a buffer. It snapped back almost instantly.

Try ls|cat and take a look at $LS_OPTIONS and $LS_COLORS. I suspect your ls tries to use some magic on the files to determine the color.

Signature · 2 lines
Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF
verbreiteten Lügen zu sabotieren.
#3 lore raw
Quoted 10 lines · Bodo Eggert
Quoted 9 lines · Ron Peterson
Quoted 6 lines · rpeterso

I'm setting up a new mail server, and am testing/tweaking IO. I have two directories: /test/a which contains 750 mbox files totalling 8GB, and /test/a2, which contains the exact same number of files, same names, all zero length.
...
The times taken to do a directory listing are significantly different.

Quoted 7 lines
Quoted 4 lines

I've become more confused, if that's possible. I was just editing some test script in emacs. As part of the script creation process I used the M-! command to pipe the output of 'ls /test/a' into a buffer. It snapped back almost instantly.

Try ls|cat and take a look at $LS_OPTIONS and $LS_COLORS. I suspect your ls tries to use some magic on the files to determine the color.

ls was aliased to 'ls -F', it just took me a while to notice...

Signature · 4 lines
Ron Peterson
Network & Systems Manager
Mount Holyoke College
http://www.mtholyoke.edu/~rpeterso
#4 lore raw

Hello

Quoted 11 lines · Ron Peterson
Quoted 10 lines · Bodo Eggert
Quoted 9 lines · Ron Peterson
Quoted 6 lines · rpeterso

I'm setting up a new mail server, and am testing/tweaking IO. I have two directories: /test/a which contains 750 mbox files totalling 8GB, and /test/a2, which contains the exact same number of files, same names, all zero length.
...
The times taken to do a directory listing are significantly different.

Which filesystem is used for /test?

Quoted 9 lines
Quoted 7 lines
Quoted 4 lines

I've become more confused, if that's possible. I was just editing some test script in emacs. As part of the script creation process I used the M-! command to pipe the output of 'ls /test/a' into a buffer. It snapped back almost instantly.

Try ls|cat and take a look at $LS_OPTIONS and $LS_COLORS. I suspect your ls tries to use some magic on the files to determine the color.

ls was aliased to 'ls -F', it just took me a while to notice...