There were several reports (me including) that adding removable source
on supermounted CD without hdlist takes ages. The reason is, close()
takes absurdly long time (several seconds!) and you have to scan
possibly several thousands of files.

Here is strace -r of rpm -F * in RPMS dir of Mandrake distro. For some
reasons not every close() needs so much time. The same CD without
supermount is read OK so it not drive/media problem. Also I repeat - I
have seen several reports about being unable to add media - "it just
sits there doing nothing!"

-andrej

     0.000000 gettimeofday({1018372652, 273998}, NULL) = 0
     0.000212 gettimeofday({1018372652, 274065}, NULL) = 0
     0.000036 gettimeofday({1018372652, 274100}, NULL) = 0
     0.000261 pread(3, "\0\0\0\0\1\0\0\0\321\t\0\0\0\0\0\0c\5\0\0\1\0\346\17\0"..., 
4096, 10293248) = 4096
     0.033563 pread(3, "\0\0\0\0\1\0\0\0c\5\0\0\321\t\0\0S\1\0\0\1\0\346\17\0\7"..., 
4096, 5648384) = 4096
     0.026781 pread(3, "\0\0\0\0\1\0\0\0S\1\0\0c\5\0\0T\1\0\0\1\0\346\17\0\7oo"..., 
4096, 1388544) = 4096
     0.008878 pread(3, "\0\0\0\0\1\0\0\0T\1\0\0S\1\0\0\0\0\0\0\1\0\312\17\0\7P"..., 
4096, 1392640) = 4096
     0.000436 open("bonobo-1.0.19-3mdk.i586.rpm", O_RDONLY) = 5
...............
     0.000037 close(5)                  = 0
     4.827594 gettimeofday({1018372657, 312459}, NULL) = 0
     ^^^^^^^^ Oops!
     0.000042 gettimeofday({1018372657, 312501}, NULL) = 0
     0.000033 gettimeofday({1018372657, 312534}, NULL) = 0
     0.000212 pread(3, "\0\0\0\0\1\0\0\0L\r\0\0\0\0\0\0003\10\0\0\1\0\346\17\0"..., 
4096, 13942784) = 4096
     0.017034 pread(3, "\0\0\0\0\1\0\0\0003\10\0\0L\r\0\0004\10\0\0\1\0\346\17"..., 
4096, 8597504) = 4096
     0.009200 pread(3, "\0\0\0\0\1\0\0\0004\10\0\0003\10\0\0005\10\0\0\1\0\346"..., 
4096, 8601600) = 4096
     0.000157 pread(3, "\0\0\0\0\1\0\0\0005\10\0\0004\10\0\0006\10\0\0\1\0\346"..., 
4096, 8605696) = 4096
     0.000121 pread(3, "\0\0\0\0\1\0\0\0006\10\0\0005\10\0\0\0\0\0\0\1\0\374\16"..., 
4096, 8609792) = 4096
     0.001587 open("bonobo-conf-0.14-3mdk.i586.rpm", O_RDONLY) = 5
................
     0.000036 close(5)                  = 0
     0.000295 gettimeofday({1018372657, 347238}, NULL) = 0
     0.000040 gettimeofday({1018372657, 347279}, NULL) = 0
     0.000034 gettimeofday({1018372657, 347312}, NULL) = 0
     0.000307 pread(3, "\0\0\0\0\1\0\0\0\225\v\0\0\0\0\0\0\5\f\0\0\1\0\346\17\0"..., 
4096, 12144640) = 4096
     0.012527 pread(3, "\0\0\0\0\1\0\0\0\5\f\0\0\225\v\0\0\0\0\0\0\1\0\16\n\0\7"..., 
4096, 12603392) = 4096
     0.007961 open("bootsplash-1.3.10-1mdk.i586.rpm", O_RDONLY) = 5
..................
     0.000037 close(5)                  = 0
     0.000296 gettimeofday({1018372657, 374513}, NULL) = 0
     0.000038 gettimeofday({1018372657, 374551}, NULL) = 0
     0.000034 gettimeofday({1018372657, 374585}, NULL) = 0
     0.000226 pread(3, "\0\0\0\0\1\0\0\0\345\22\0\0\0\0\0\0\346\22\0\0\1\0\346"..., 
4096, 19812352) = 4096
     0.011695 pread(3, "\0\0\0\0\1\0\0\0\346\22\0\0\345\22\0\0\0\0\0\0\1\0f\r\0"..., 
4096, 19816448) = 4096
     0.000319 open("bug-buddy-2.0.8-6mdk.i586.rpm", O_RDONLY) = 5
..................
     0.000037 close(5)                  = 0
     4.914029 gettimeofday({1018372662, 313070}, NULL) = 0
     ^^^^^^^^ Oops!
     0.000053 gettimeofday({1018372662, 313120}, NULL) = 0
     0.000034 gettimeofday({1018372662, 313154}, NULL) = 0
     0.000261 pread(3, "\0\0\0\0\1\0\0\0\352\t\0\0\0\0\0\0\353\t\0\0\1\0\346\17"..., 
4096, 10395648) = 4096
     0.024698 pread(3, "\0\0\0\0\1\0\0\0\353\t\0\0\352\t\0\0\354\t\0\0\1\0\346"..., 
4096, 10399744) = 4096
     0.000158 pread(3, "\0\0\0\0\1\0\0\0\354\t\0\0\353\t\0\0\355\t\0\0\1\0\346"..., 
4096, 10403840) = 4096
     0.000116 pread(3, "\0\0\0\0\1\0\0\0\355\t\0\0\354\t\0\0\356\t\0\0\1\0\346"..., 
4096, 10407936) = 4096
     0.000930 pread(3, "\0\0\0\0\1\0\0\0\356\t\0\0\355\t\0\0\0\0\0\0\1\0\310\6"..., 
4096, 10412032) = 4096
     0.000480 open("bzip2-1.0.2-4mdk.i586.rpm", O_RDONLY) = 5
..................
     0.000036 close(5)                  = 0
     4.966027 gettimeofday({1018372667, 312194}, NULL) = 0
     ^^^^^^^^ Oops!
     0.000049 gettimeofday({1018372667, 312241}, NULL) = 0
     0.000034 gettimeofday({1018372667, 312275}, NULL) = 0
     0.000258 pread(3, "\0\0\0\0\1\0\0\0\220\10\0\0\0\0\0\0\221\10\0\0\1\0\346"..., 
4096, 8978432) = 4096
     0.021907 pread(3, "\0\0\0\0\1\0\0\0\221\10\0\0\220\10\0\0)\0\0\0\1\0\346\17"..., 
4096, 8982528) = 4096
     0.000170 pread(3, "\0\0\0\0\1\0\0\0)\0\0\0\221\10\0\0\0\0\0\0\1\0\24\3\0\7"..., 
4096, 167936) = 4096
     0.013389 open("caching-nameserver-8.1-2mdk.noarch.rpm", O_RDONLY) = 5
..................
     0.000036 close(5)                  = 0
     0.000295 gettimeofday({1018372667, 354566}, NULL) = 0
     0.000039 gettimeofday({1018372667, 354605}, NULL) = 0
     0.000034 gettimeofday({1018372667, 354638}, NULL) = 0
     0.000161 open("cdialog-0.9a-8mdk.i586.rpm", O_RDONLY) = 5
.................
     0.000036 close(5)                  = 0
     0.000315 gettimeofday({1018372667, 361246}, NULL) = 0
     0.000038 gettimeofday({1018372667, 361284}, NULL) = 0
     0.000034 gettimeofday({1018372667, 361318}, NULL) = 0
     0.000161 pread(3, "\0\0\0\0\1\0\0\0s\5\0\0\0\0\0\0t\5\0\0\1\0\346\17\0\7\0"..., 
4096, 5713920) = 4096
     0.021630 pread(3, "\0\0\0\0\1\0\0\0t\5\0\0s\5\0\0\0\0\0\0\1\0\6\r\0\7log-"..., 
4096, 5718016) = 4096
     0.000312 open("cdrecord-1.11-0.a15.2mdk.i586.rpm", O_RDONLY) = 5
...............
     0.000037 close(5 <unfinished ...>
     ^^^^^^^^ most probably several seconds again



Reply via email to