On Thursday 10 March 2011, Philippe De Muyter wrote:
I have tried twice with your fix. Of course it works better, but it still terminates abnormally, after a long run time and in a different way :
tmp179:~ # ./flashbench -s --scatter-span=3 --scatter-order=14 --blocksize=8192 --count=100 /dev/sdb -o /tmp/output.plot sched_setscheduler: Operation not permitted try_scatter_io: Unknown error 153651144 tmp179:~ # ls -l /tmp/output.plot -rw-r--r-- 1 root root 0 Mar 9 22:52 /tmp/output.plot tmp179:~ # ./flashbench -s --scatter-span=3 --scatter-order=14 --blocksize=8192 --count=100 /dev/sdb -o /tmp/output.plot sched_setscheduler: Operation not permitted try_scatter_io: Unknown error 152931315 tmp179:~ # ls -l /tmp/output.plot -rw-r--r-- 1 root root 0 Mar 9 23:00 /tmp/output.plot tmp179:~ #
I can't reproduce this here, and have no real explanation either. The code checks if the number is below zero after a conversion to 32 bit int, which is clearly is not.
Does it work with a smaller count= number?
Arnd