Hello!
As a part of my research I have to run macrobenchmarks on L4Linux and native Linux. I saw few papers related to performance testing of L4Linux, where this benchmark was used. The problem is that I'm not able to find (google) working version. Could somebody provide me tested (used,working) copy of this benchmark? Or are there any similar test that could be used instead of aim7?
Thank you,
Eduard Benes
Hi Eduard,
As a part of my research I have to run macrobenchmarks on L4Linux and native Linux. I saw few papers related to performance testing of L4Linux, where this benchmark was used. The problem is that I'm not able to find (google) working version. Could somebody provide me tested (used,working) copy of this benchmark? Or are there any similar test that could be used instead of aim7?
What exactly does not work for you?
I'm currently using AIM7 for benchmarking Linux and L4Linux und had to patch only one line (Patch by Adam, attached). A floating point comparison with 0.0 does not work, which results in an endless loop.
I also changed the whole time measurement internals to gettimeofday() and also use some performance counters etc. AIM7 originally used times() for measuring the single microbenchmarks. Times() usually has a resolution of 1-10 ms, so many microbenchmarks take only zero, one or two milliseconds as their iteration count is meant for machines ten years old.
Using gettimeofday(), I get a much better resolution. However, gettimeofday() does not give you the user / system time for the process and or its children. If you like I can send you my current patch.
I originally got the AIM 7 sources from sourceforge.
If I read the license correctly, you can not say you used the AIM-Benchmark if you modify AIM's source code in any way.
Cheers, Martin
--- aim7/num_fcns.c 2002-04-23 00:24:31.000000000 +0200 +++ src/aim7/num_fcns.c 2007-02-13 11:50:44.000000000 +0100 @@ -259,7 +259,8 @@ * Step 4: if |p - p0| < TOL then terminate successfully */ delta = fabs(p - p0); - if (delta == 0.0) + //if (delta == 0.0) + if (delta < 2e-15 && delta > -2e-15) break; /* * Step 5: i += 1
l4-hackers@os.inf.tu-dresden.de