SSH - slow "ls -l"

Status
Not open for further replies.

DennisT

Cadet
Joined
Nov 1, 2012
Messages
8
Running FreeNAS-8.2.0-RELEASE-p1-x64 (r11950) on a Vmware ESXi 5.1 Host (dual X5660, 48GB RAM, 10GB, etc).

Logged in as root via SSH.

From the command line:
[root@freenas] /mnt/datastore# time ls Backups
.windows FILSRV1 ImageBackups SharedData
0.000u 0.001s 0:00.00 0.0% 0+0k 0+0io 0pf+0w
[root@freenas] /mnt/datastore# time ls -l Backups
total 11
-rw-r--r-- 1 root wheel 0 Nov 7 10:34 .windows
drwxrwxrwx+ 2 21664 20512 2 Feb 11 15:19 FILSRV1
drwxrwxrwx+ 4 21664 20512 4 Jan 31 09:28 ImageBackups
drwxrwx---+ 55 21108 20512 55 Feb 11 18:00 SharedData
0.000u 0.003s 1:22.85 0.0% 0+0k 0+0io 0pf+0w

Why does a long listing take over a minute on a folder that has 4 entries?
 

DennisT

Cadet
Joined
Nov 1, 2012
Messages
8
Ok, I think I see what's happening. BSD ls -l is quite different than normal unix/linux. It essentially does a du as part of the listing. Is there any way/options to make ls -l behave more like linux/unix ls -l command and not try to determine disk usage?
 

DennisT

Cadet
Joined
Nov 1, 2012
Messages
8
Got it working. gnuls gives the traditional results. I aliased ls to it and everything is "unicorns and rainbows".
 
Status
Not open for further replies.
Top