FileChooserDialog is slow over nfs with many files....



Hello,

Opening a gtk FileChooserDialog is painfully slow for me on some nfs directories containing many files. strace shows a lot of time calling "stat". About 5 times for each of the files in the directory.

Is there a way to switch off the calls to 'stat' and just show a list of filenames without modification time details etc?

Thanks for any advice, technical details are below,

Jon
===


Operating System: Redhat enterprise 4
$ uname -a
Linux fable1 2.6.9-42.0.8.ELsmp #1 SMP Tue Jan 23 12:49:51 EST 2007 x86_64 x86_64 x86_64 GNU/Linux

FileChooser is coming from:
/usr/lib64/libgtk-x11-2.0.so.0.400.13

Test script opens a FileChooserDialog - it takes 10 seconds to appear

$ strace -T -c test.py
Process 2055 detached
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 96.49    9.467916         126     75056      1240 stat
  1.35    0.132244          43      3054      1380 open
  0.89    0.087537          86      1022           getdents64
  0.51    0.050156          29      1750        42 read
  0.42    0.041455           3     12215           time
...


ls gives the filenames in the directory almost instantly:

$ strace -T -c ls /data/id11/inhouse/jon/old/grains/srcro4_layersiii | wc -l
Process 2657 detached
% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 80.30    0.025002        1087        23           getdents64
  5.67    0.001767          13       141        98 open
  5.48    0.001705         426         4           poll
  3.60    0.001121          11       103           write
  1.10    0.000343          10        36           read
14769



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]