Timeout problems with "blkid" applet

Alexander Griesser alexander.griesser at lkh-vil.or.at
Wed Feb 18 08:58:20 UTC 2009


Denys Vlasenko wrote:
>> BTDT, not getting better.
> 
> So it still takes 4m 30s?

Oh, sorry, well, it actually got better.
It now takes about 2mins to complete.

> Please add -tt options to make strace timestamp the log.

Done, please find the timestamped strace output attached.

> I don't understand. Is new code running as slow as old? How is
> this possible?

It's about twice as fast as the old code, but still takes two minutes
to complete so there's still enough room for improvements :)

Actually, the problem seems to be in the close() and open() calls
for the floppy drive. open takes about 40 seconds and close takes a bit
more than a minute.

1879  09:52:08.159816 open("/dev/fd0", O_RDONLY) = 4
1879  09:52:46.408532 ioctl(4, BLKGETSIZE64, 0xbfa04e88) = 0
1879  09:52:46.408718 lseek(4, 0, SEEK_SET) = 0
1879  09:52:46.408835 read(4, 0x85031e0, 512) = -1 EIO (Input/output error)
1879  09:54:02.874887 close(4)          = 0

The whole strace output is attached.

ciao,
-- 
Alexander Griesser (Netzwerkadministration)
E-Mail: alexander.griesser at lkh-vil.or.at | Web: http://www.lkh-vil.or.at
KABEG LKH Villach | Nikolaigasse 43 | 9500 Villach
Tel.:   +43 4242 208 3061 | Fax.:   +43 4242 208 971 2061
-------------- next part --------------
A non-text attachment was scrubbed...
Name: blkid-trace-tt.out.gz
Type: application/x-gzip
Size: 8944 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090218/2247f389/attachment-0001.bin>


More information about the busybox mailing list