Skip to contentSkip to conversation

32-bit regression tests: CLOCK_REALTIME wonkiness

Xenomai John Morris 2 participants 12 messages Jan 19, 2013 – Jan 20, 2013

lore
Share & tools
lore
#0 lore raw

Hi list,

These are the final tests on 32-bit before the initial RedHat packages can be released for wider testing.

On this host, a Dell Celeron with ICH5 chipset, the CLOCK_REALTIME numbers look funny. All other tests run correctly.

++ /usr/lib/xenomai/clocktest -T 30
== Tested clock: 0 (CLOCK_REALTIME)
CPU ToD offset [us] ToD drift [us/s] warps max delta [us]
--- -------------------- ---------------- ---------- --------------
0 0.0 0.000 0 0.0

^[[1A  0           -1074721.3           39.245          0            0.0
^[[1A  0           -1074711.5           39.172          0            0.0
^[[1A  0           -1074701.8           39.096          0            0.0
^[[1A  0           -1074691.9           39.184          0            0.0

This is Gilles's i-pipe dev tree and xenomai master pulled yesterday, kernel 3.5.7.

John

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test-32-bit/config-3.5.7.txt

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test-32-bit/dmesg.log

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test-32-bit/xeno-regression-test.log

#1 lore raw
Quoted 13 lines · John Morris

Hi list,

These are the final tests on 32-bit before the initial RedHat packages can be released for wider testing.

On this host, a Dell Celeron with ICH5 chipset, the CLOCK_REALTIME numbers look funny. All other tests run correctly.

++ /usr/lib/xenomai/clocktest -T 30
== Tested clock: 0 (CLOCK_REALTIME)
CPU ToD offset [us] ToD drift [us/s] warps max delta [us]
--- -------------------- ---------------- ---------- --------------
0 0.0 0.000 0 0.0

Quoted 8 lines
^[[1A  0           -1074721.3           39.245          0            0.0
^[[1A  0           -1074711.5           39.172          0            0.0
^[[1A  0           -1074701.8           39.096          0            0.0
^[[1A  0           -1074691.9           39.184          0            0.0

This is Gilles's i-pipe dev tree and xenomai master pulled yesterday,

kernel 3.5.7.

Nothing really wrong here, the ToD offset is due to the fact that the realtime clock was changed between the time Xenomai read it to set its own realt-ime clock, and the time clocktest is run, and the drift is due to the tsc frequency adjustments made by Linux after Xenomai is started.

Signature · 1 line
                                                                Gilles.
#2 lore raw
Quoted 7 lines · Gilles Chanteperdrix
Quoted 5 lines · John Morris

Hi list,

These are the final tests on 32-bit before the initial RedHat packages can be released for wider testing.

Quoted 8 lines
Quoted 2 lines

On this host, a Dell Celeron with ICH5 chipset, the CLOCK_REALTIME numbers look funny. All other tests run correctly.

Nothing really wrong here, the ToD offset is due to the fact that the realtime clock was changed between the time Xenomai read it to set its own realt-ime clock, and the time clocktest is run, and the drift is due to the tsc frequency adjustments made by Linux after Xenomai is started.

Woo hoo! That means it's time to start working on the package repos. I'll report back soon. Thanks for all the help.

John

#3 lore raw
Quoted 13 lines · John Morris
Quoted 9 lines · Gilles Chanteperdrix
Quoted 7 lines · John Morris

Hi list,

These are the final tests on 32-bit before the initial RedHat packages can be released for wider testing.

On this host, a Dell Celeron with ICH5 chipset, the CLOCK_REALTIME numbers look funny. All other tests run correctly.

Quoted 8 lines
Quoted 5 lines

Nothing really wrong here, the ToD offset is due to the fact that the realtime clock was changed between the time Xenomai read it to set its own realt-ime clock, and the time clocktest is run, and the drift is due to the tsc frequency adjustments made by Linux after Xenomai is started.

Woo hoo! That means it's time to start working on the package repos. I'll report back soon. Thanks for all the help.

It would make sense to wait for Jan's results on monday.

Signature · 1 line
                                                                Gilles.
#4 lore raw
In reply to John Morris
Quoted 7 lines · John Morris

Hi list,

These are the final tests on 32-bit before the initial RedHat packages can be released for wider testing.

On this host, a Dell Celeron with ICH5 chipset, the CLOCK_REALTIME numbers look funny. All other tests run correctly.

Whoops, how embarrassing, I reported the wrong thing: it's the native/tsc numbers that look funny.

++ /usr/lib/xenomai/regression/native/tsc
Checking tsc for 1 minute(s)
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
[...]
min: 4294967295, max: 0, avg: -nan -> -nan us

John

Quoted 5 lines

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test-32-bit/config-3.5.7.txt

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test-32-bit/dmesg.log

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test-32-bit/xeno-regression-test.log

#5 lore raw
Quoted 12 lines · John Morris
Quoted 7 lines · John Morris

Hi list,

These are the final tests on 32-bit before the initial RedHat packages can be released for wider testing.

On this host, a Dell Celeron with ICH5 chipset, the CLOCK_REALTIME numbers look funny. All other tests run correctly.

Whoops, how embarrassing, I reported the wrong thing: it's the native/tsc numbers that look funny.

Quoted 10 lines

++ /usr/lib/xenomai/regression/native/tsc
Checking tsc for 1 minute(s)
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
[...]
min: 4294967295, max: 0, avg: -nan -> -nan us

You are probably missing --enable-x86-tsc on configure command line.

Signature · 1 line
                                                                Gilles.
#6 lore raw
Quoted 26 lines · Gilles Chanteperdrix
Quoted 12 lines · John Morris
Quoted 7 lines · John Morris

Hi list,

These are the final tests on 32-bit before the initial RedHat packages can be released for wider testing.

On this host, a Dell Celeron with ICH5 chipset, the CLOCK_REALTIME numbers look funny. All other tests run correctly.

Whoops, how embarrassing, I reported the wrong thing: it's the native/tsc numbers that look funny.

Quoted 10 lines

++ /usr/lib/xenomai/regression/native/tsc
Checking tsc for 1 minute(s)
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
[...]
min: 4294967295, max: 0, avg: -nan -> -nan us

Quoted 2 lines

You are probably missing --enable-x86-tsc on configure command line.

(or rather have passed --disable-x86-tsc as --enable-x86-tsc should be the default).

Signature · 1 line
                                                                Gilles.
#7 lore raw
Quoted 28 lines · Gilles Chanteperdrix
Quoted 26 lines · Gilles Chanteperdrix
Quoted 22 lines · John Morris
Quoted 7 lines · John Morris

Hi list,

These are the final tests on 32-bit before the initial RedHat packages can be released for wider testing.

On this host, a Dell Celeron with ICH5 chipset, the CLOCK_REALTIME numbers look funny. All other tests run correctly.

Whoops, how embarrassing, I reported the wrong thing: it's the native/tsc numbers that look funny.

++ /usr/lib/xenomai/regression/native/tsc
Checking tsc for 1 minute(s)
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
[...]
min: 4294967295, max: 0, avg: -nan -> -nan us

Quoted 6 lines
Quoted 2 lines

You are probably missing --enable-x86-tsc on configure command line.

(or rather have passed --disable-x86-tsc as --enable-x86-tsc should be the default).

--enable-x86-tsc is in there, and configure finds TSC support:

+ ./configure --build=i686-koji-linux-gnu --host=i686-koji-linux-gnu --target=i686-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include/xenomai/ --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-x86-tsc --enable-dlopen-skins --with-testdir=/usr/lib/xenomai
[...]
checking for x86 TSC support... y

Build log follows. What else can I check?

John

Build log:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test-32-bit/xenomai-build.log

Quoted 1 line

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test-32-bit/config-3.5.7.txt

Quoted 4 lines

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test-32-bit/dmesg.log

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test-32-bit/xeno-regression-test.log

#8 lore raw
Quoted 51 lines · John Morris
Quoted 28 lines · Gilles Chanteperdrix
Quoted 26 lines · Gilles Chanteperdrix
Quoted 22 lines · John Morris
Quoted 7 lines · John Morris

Hi list,

These are the final tests on 32-bit before the initial RedHat packages can be released for wider testing.

On this host, a Dell Celeron with ICH5 chipset, the CLOCK_REALTIME numbers look funny. All other tests run correctly.

Whoops, how embarrassing, I reported the wrong thing: it's the native/tsc numbers that look funny.

++ /usr/lib/xenomai/regression/native/tsc
Checking tsc for 1 minute(s)
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
[...]
min: 4294967295, max: 0, avg: -nan -> -nan us

Quoted 6 lines
Quoted 2 lines

You are probably missing --enable-x86-tsc on configure command line.

(or rather have passed --disable-x86-tsc as --enable-x86-tsc should be the default).

--enable-x86-tsc is in there, and configure finds TSC support:

+ ./configure --build=i686-koji-linux-gnu --host=i686-koji-linux-gnu --target=i686-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include/xenomai/ --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-x86-tsc --enable-dlopen-skins --with-testdir=/usr/lib/xenomai
[...]
checking for x86 TSC support... y

Quoted 1 line

Build log follows. What else can I check?

Could you send me the "tsc" program?

Signature · 1 line
                                                                Gilles.
#9 lore raw
Quoted 53 lines · Gilles Chanteperdrix
Quoted 51 lines · John Morris
Quoted 28 lines · Gilles Chanteperdrix
Quoted 26 lines · Gilles Chanteperdrix
Quoted 22 lines · John Morris
Quoted 7 lines · John Morris

Hi list,

These are the final tests on 32-bit before the initial RedHat packages can be released for wider testing.

On this host, a Dell Celeron with ICH5 chipset, the CLOCK_REALTIME numbers look funny. All other tests run correctly.

Whoops, how embarrassing, I reported the wrong thing: it's the native/tsc numbers that look funny.

++ /usr/lib/xenomai/regression/native/tsc
Checking tsc for 1 minute(s)
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
[...]
min: 4294967295, max: 0, avg: -nan -> -nan us

Quoted 6 lines
Quoted 2 lines

You are probably missing --enable-x86-tsc on configure command line.

(or rather have passed --disable-x86-tsc as --enable-x86-tsc should be the default).

--enable-x86-tsc is in there, and configure finds TSC support:

+ ./configure --build=i686-koji-linux-gnu --host=i686-koji-linux-gnu --target=i686-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include/xenomai/ --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-x86-tsc --enable-dlopen-skins --with-testdir=/usr/lib/xenomai
[...]
checking for x86 TSC support... y

Quoted 5 lines
Quoted 1 line

Build log follows. What else can I check?

Could you send me the "tsc" program?

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test-32-bit/tsc.gz

John

#10 lore raw
Quoted 54 lines · John Morris
Quoted 53 lines · Gilles Chanteperdrix
Quoted 51 lines · John Morris
Quoted 28 lines · Gilles Chanteperdrix
Quoted 26 lines · Gilles Chanteperdrix
Quoted 22 lines · John Morris
Quoted 7 lines · John Morris

Hi list,

These are the final tests on 32-bit before the initial RedHat packages can be released for wider testing.

On this host, a Dell Celeron with ICH5 chipset, the CLOCK_REALTIME numbers look funny. All other tests run correctly.

Whoops, how embarrassing, I reported the wrong thing: it's the native/tsc numbers that look funny.

++ /usr/lib/xenomai/regression/native/tsc
Checking tsc for 1 minute(s)
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
[...]
min: 4294967295, max: 0, avg: -nan -> -nan us

Quoted 6 lines
Quoted 2 lines

You are probably missing --enable-x86-tsc on configure command line.

(or rather have passed --disable-x86-tsc as --enable-x86-tsc should be the default).

--enable-x86-tsc is in there, and configure finds TSC support:

+ ./configure --build=i686-koji-linux-gnu --host=i686-koji-linux-gnu --target=i686-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include/xenomai/ --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-x86-tsc --enable-dlopen-skins --with-testdir=/usr/lib/xenomai
[...]
checking for x86 TSC support... y

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Build log follows. What else can I check?

Could you send me the "tsc" program?

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test-32-bit/tsc.gz

Ok, this program is compiled correctly, the error you have suggests that on your machine reading the tsc takes systematically more than 80 cycles, a hardcoded value that is well, a bit too arbitrary.

Signature · 1 line
                                                                Gilles.
#11 lore raw
Quoted 62 lines · Gilles Chanteperdrix
Quoted 60 lines · John Morris
Quoted 58 lines · Gilles Chanteperdrix
Quoted 51 lines · John Morris
Quoted 28 lines · Gilles Chanteperdrix
Quoted 26 lines · Gilles Chanteperdrix
Quoted 22 lines · John Morris
Quoted 7 lines · John Morris

Hi list,

These are the final tests on 32-bit before the initial RedHat packages can be released for wider testing.

On this host, a Dell Celeron with ICH5 chipset, the CLOCK_REALTIME numbers look funny. All other tests run correctly.

Whoops, how embarrassing, I reported the wrong thing: it's the native/tsc numbers that look funny.

++ /usr/lib/xenomai/regression/native/tsc
Checking tsc for 1 minute(s)
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
min: 4294967295, max: 0, avg: -nan
[...]
min: 4294967295, max: 0, avg: -nan -> -nan us

Quoted 6 lines
Quoted 2 lines

You are probably missing --enable-x86-tsc on configure command line.

(or rather have passed --disable-x86-tsc as --enable-x86-tsc should be the default).

--enable-x86-tsc is in there, and configure finds TSC support:

+ ./configure --build=i686-koji-linux-gnu --host=i686-koji-linux-gnu --target=i686-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include/xenomai/ --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-x86-tsc --enable-dlopen-skins --with-testdir=/usr/lib/xenomai
[...]
checking for x86 TSC support... y

Quoted 1 line

Build log follows. What else can I check?

Could you send me the "tsc" program?

Quoted 6 lines
Quoted 1 line

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test-32-bit/tsc.gz

Ok, this program is compiled correctly, the error you have suggests that on your machine reading the tsc takes systematically more than 80 cycles, a hardcoded value that is well, a bit too arbitrary.

An arbitrary extra zero, raising max dt to 800, confirms your explanation.

John

$ ./tsc
Checking tsc for 1 minute(s)
min: 99, max: 666, avg: 100.002
min: 99, max: 711, avg: 100.002
min: 99, max: 630, avg: 100.002
min: 99, max: 720, avg: 100.003
min: 99, max: 657, avg: 100.003
min: 99, max: 729, avg: 100.002
min: 99, max: 603, avg: 100.002
min: 99, max: 693, avg: 100.002
min: 99, max: 657, avg: 100.001
min: 99, max: 693, avg: 100.002
min: 99, max: 675, avg: 100.003
min: 99, max: 675, avg: 100.001
min: 99, max: 756, avg: 100.001
min: 99, max: 720, avg: 100
min: 99, max: 342, avg: 100
min: 99, max: 414, avg: 100
min: 99, max: 666, avg: 100
min: 99, max: 756, avg: 100
min: 99, max: 234, avg: 100
min: 99, max: 387, avg: 100
min: 99, max: 270, avg: 100
min: 99, max: 576, avg: 100
min: 99, max: 612, avg: 100
min: 99, max: 369, avg: 100.001
min: 99, max: 369, avg: 100
min: 99, max: 576, avg: 100
min: 99, max: 729, avg: 100
min: 99, max: 513, avg: 100
min: 99, max: 450, avg: 100
min: 99, max: 495, avg: 100
min: 99, max: 441, avg: 100
min: 99, max: 351, avg: 100
min: 99, max: 738, avg: 100
min: 99, max: 567, avg: 100
min: 99, max: 468, avg: 100
min: 99, max: 567, avg: 100
min: 99, max: 513, avg: 100
min: 99, max: 585, avg: 100
min: 99, max: 441, avg: 100
min: 99, max: 261, avg: 100
min: 99, max: 405, avg: 100
min: 99, max: 225, avg: 100
min: 99, max: 459, avg: 100
min: 99, max: 279, avg: 100
min: 99, max: 378, avg: 100
min: 99, max: 558, avg: 100
min: 99, max: 504, avg: 100
min: 99, max: 720, avg: 100
min: 99, max: 378, avg: 100
min: 99, max: 387, avg: 100
min: 99, max: 225, avg: 100
min: 99, max: 333, avg: 100
min: 99, max: 333, avg: 100
min: 99, max: 342, avg: 100
min: 99, max: 648, avg: 100
min: 99, max: 432, avg: 100
min: 99, max: 288, avg: 100
min: 99, max: 414, avg: 100
min: 99, max: 603, avg: 100
min: 99, max: 513, avg: 100
min: 99, max: 756, avg: 100 -> 0.0417693 us