Le 05/04/2013 23:58, Bruce Dubbs a écrit : > > > I suppose it could be a problem with kvm or vmstat. > > Checking with qemu-1.4: > > ARGS="-enable-kvm -hda lfs73.img" > MEM="-m 2G" > CDROM="-cdrom lfslivecd-x86_64-6.3-r2160-updated-nosrc.iso" > NIC="-net nic -net tap" > sudo qemu $ARGS $CDROM $NIC $MEM $DRIVE2 $REMOTE > > I get: > > $ cat /proc/diskstats > 7 0 loop0 0 0 0 0 0 0 0 0 0 0 0 > 7 1 loop1 0 0 0 0 0 0 0 0 0 0 0 > 8 0 sda 1307 2686 42824 8102 141 176 2626 5559 0 5786 13658 > 8 1 sda1 21 0 168 26 0 0 0 0 0 26 26 > 8 2 sda2 246 50 2152 325 1 0 2 0 0 323 325 > 8 3 sda3 621 766 36918 6794 137 176 2624 5426 0 5294 12217 > 8 4 sda4 165 1386 1558 331 0 0 0 0 0 320 331 > 8 5 sda5 167 484 1332 357 0 0 0 0 0 357 357 > 11 0 sr0 33 0 264 123 0 0 0 0 0 123 123 > > Note that sr0 is last. In any case, sr0 and loop? and sda are not > partitions. It still looks like a race condition (what is the order of > entries in /proc/diskstats) or just a logic error in the test to me. > Usually, I get the same as you (except loop is always at the end). It happened only twice during the last week, that the sr0 line was before the sda ones, while I think I have rebooted that machine at least 10 times.
It looks like a race condition at boot time: /proc/diskstats always return the same order as long as I do not shutdown the machine. The original test only selects names with a digit at the end, followed in the next field by a number with at least 2 digits. This excludes any line with less than ten reads, so the loop? lines are excluded. But sr0 with more than 10 reads is not, if it happens to be before the sda? lines. Using: sed -i -r 's|(a-z\\])\+|\1\\{3\\}|' testsuite/vmstat.test/vmstat.exp should be OK, even if it happens that a loop? is mounted and has more than ten reads. Now, I have a new test failure in pmap: FAIL: pmap extra extended output (footer) :-( Needs more testing, but the behavior seems to be different when running in jhalfs and by hand... Pierre -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page