Menu

#8 Test failures on Debian system

v0.6.1
open
5
2012-11-03
2011-05-14
No

When building libsysactivity on a Debian machine, the disk test (test_disk.c) now fails with a simple "IO error". I have not really debugged it.

Furthermore the process test (test_process.c) fails non-deterministically - sometimes it succeeds 3 times in a row, other times it fails (some times even repeatedly) due to the sys_time of the "process self" not increasing.

~Niels

Discussion

  • Carlos Olmedo Escobar

    Oops, i will need the full log of the IO error. Does it always happen?

    The sys_time error is due to the kernel not refreshing the stats quickly enough so i will just remove the test.

     
  • Niels Thykier

    Niels Thykier - 2011-06-09

    I learned that the swap test fails on one of my machines, but it as I recall I did not bother putting any swap on it. The actual error is:

    test_swap.c:98 ERROR: sa_get_swap(): No such device

    As for the disk test, all I get is:

    test_disk.c:109 ERROR: sa_open_disk(): Input/output error
    2/5 Test #2: disk ...... *** Failed 0.00 sec

    Finally, I noticed a new error in the CPU test (using a different machine this time). On this I get:
    test_cpu.c:109 ERROR: Summatory of all cpu times is lower than 90.0: 0.000000

    The full log is available at:
    http://people.debian.org/~nthykier/libsysactivity.log

    ~Niels

     
  • Carlos Olmedo Escobar

    Hi!

    Ok, in [1] you can find a patch that hopefully fixes the swap problem.

    About the disk failure, can your user open the /sys/block/ directory?

    And the cpu test failure is confusing me. Can i have a copy of your /proc/stat file? (from the machine with 8 processors)

    Cheers

    [1] http://pastebin.com/raw.php?i=KfrU4Tz4

     
  • Carlos Olmedo Escobar

    hi?

     
  • Niels Thykier

    Niels Thykier - 2011-07-01

    Hi,

    Sorry for the late reply; the swap patch works file, so I will use that for now.

    I suspect that the issue with disk failure is that /sys/ is not mounted in our build chroots, so I can just skip that.

    Finally the stat file (and cpuinfo, should you need it) of my 8 cpu machine is available from[1] (and [2]).

    ~Niels

    [1] http://people.debian.org/~nthykier/stat.txt

    [2] http://people.debian.org/~nthykier/cpuinfo.txt

     
  • Niels Thykier

    Niels Thykier - 2011-07-02

    Hi,

    On my 8 CPU machine, the cpu test still fail[1]. As far as I can tell, the issue is that the test considers "100.000008" for "out of range". Though I suspect this is a rounding issue of double / floating point numbers itself[2] and not an issue in libsysactivity or my system.
    Perhaps rounding it to 2 numbers after the decimal point (e.g. in this case to 100.00) would be in order to avoid false-positives.

    ~Niels

    [1] http://people.debian.org/~nthykier/cpu-fail.log

    [2] http://en.wikipedia.org/wiki/Floating_point#Accuracy_problems

     
  • Niels Thykier

    Niels Thykier - 2011-07-02

    Patch to give test_cpu a little error margin for floating point numbers

     
  • Carlos Olmedo Escobar

    I hope this patch fixes the problem [1]. The floating point numbers will be rounded to the nearest integer. It should be enough if they are ok.

    [1] http://pastebin.com/raw.php?i=9gxmiyt5

     
  • Carlos Olmedo Escobar

    Oh, there is an error on the patch, please used this one [1].

    [1] http://pastebin.com/raw.php?i=X4dnUuJ3

     

Log in to post a comment.