Skip to contentSkip to conversation

mem usage and other application

Xenomai-help Gilles Chanteperdrix 2 participants 6 messages Mar 15, 2007 – Mar 19, 2007 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 10 lines · Maksym Veremeyenko

Gilles Chanteperdrix ~~~~~:

Quoted 5 lines

Well, it really looks like an FPU bug. Could you try to:
- upgrade your trunk to latest revision, then test
- then apply the attached patch to your up-to-date trunk, then test again ?

Quoted 7 lines

I used configuration 2.6.17.14, xenomai-r2299

Before patching xenomai result was the same and more faulty after decreasing RAM size down to 256M.

After applying patch situation become worth, i got "Bad pte" messages, sometimes "Soft lockup detected", and kernel dump:

Why changing the RAM size ? Could you double-check with your RAM size normally set ? Do you observe the "Bad pte" message with latency or switchbench running, or with your RT application ?

Signature · 1 line
                                                 Gilles Chanteperdrix
#2 lore raw

Gilles Chanteperdrix пишет:

Quoted 1 line

Why changing the RAM size ?

i added RAM before to check if it could help running other non-RT application.

Quoted 3 lines

Could you double-check with your RAM size
normally set ? Do you observe the "Bad pte" message with latency or switchbench running, or with your RT application ?

I started 'latency' and then start any perl script. It behavior depends on configurations:
Problematic configuration are:
1. Kernel 2.6.17.14, Xenomai 2.3.0... r2299, Adeos 1.5-02
2. Kernel 2.6.19.2, Xenomai r2299, Adeos 1.7-01

No problems with:
3. Kernel 2.6.19.2, Xenomai 2.3.0, Adeos 1.7-01
4. kernel 2.6.17.14, xenomai 2.2.4, Adeos 1.5-00

After applying your patch to configuration #1 or #2 situation become worth:
1) i still get errors,
2) i also get a "Bad pte" with 'process' points to non-RT application caused fault
3) sometime perl script "core dumped":
Core was generated by `/usr/bin/perl ./m1.meta.pl U0002323'.
Program terminated with signal 11, Segmentation fault.
#0 0x42a56004 in ?? ()
(gdb) bt

#0  0x42a56004 in ?? ()
#1  0x42a547a7 in ?? ()
#2  0x0804bc0a in ?? ()
#3  0x00000000 in ?? ()

________________________________________
Maksym Veremeyenko

#3 lore raw
Quoted 6 lines · Maksym Veremeyenko

Gilles Chanteperdrix ~~~~~:

Quoted 1 line

Why changing the RAM size ?

i added RAM before to check if it could help running other non-RT application.

Quoted 8 lines
Quoted 3 lines

Could you double-check with your RAM size
normally set ? Do you observe the "Bad pte" message with latency or switchbench running, or with your RT application ?

I started 'latency' and then start any perl script. It behavior depends on configurations:
Problematic configuration are:
1. Kernel 2.6.17.14, Xenomai 2.3.0... r2299, Adeos 1.5-02

Here, I assume you mean Xenomai branch v2.3.x revision 2299

Quoted 1 line

2. Kernel 2.6.19.2, Xenomai r2299, Adeos 1.7-01

Here, I assume you mean Xenomai trunk revision 2299

The problem is that if there is no difference with regard to FPU context management between release 2.3.0 and latest revision of branch v2.3.x. So, the difference must be somewhere else.

Could you send me your .config ?

Also, is it possible for you to try bisecting in v2.3.x branch ? v2.3.0 release is revision 2004, and you know that revision 2299 does not work for you, so you would be able to tell us exactly which revision is the cause of your problem.

Signature · 1 line
					    Gilles Chanteperdrix.
#4 lore raw

Gilles Chanteperdrix пишет:

Quoted 2 lines
Quoted 1 line

1. Kernel 2.6.17.14, Xenomai 2.3.0... r2299, Adeos 1.5-02

Here, I assume you mean Xenomai branch v2.3.x revision 2299

release 2.3.0 and branch v2.3.x revision 2299 - both

Quoted 2 lines
Quoted 1 line

2. Kernel 2.6.19.2, Xenomai r2299, Adeos 1.7-01

Here, I assume you mean Xenomai trunk revision 2299

yes

Quoted 3 lines

The problem is that if there is no difference with regard to FPU context management between release 2.3.0 and latest revision of branch v2.3.x. So, the difference must be somewhere else.

What is recommended configuration and version of kernel and Xenomai? In my case
2.6.20.3 upgrade failed due to Xenomai compilation, 2.6.19 fault gdb to work properly,
2.6.18 fail due to absent adeos-ipipe version.
I have to use 2.6.17.14 .....

Quoted 1 line

Could you send me your .config ?

attached

Quoted 4 lines

Also, is it possible for you to try bisecting in v2.3.x branch ? v2.3.0 release is revision 2004, and you know that revision 2299 does not work for you, so you would be able to tell us exactly which revision is the cause of your problem.

What trunk revisions should be tried?

Signature · 2 lines
________________________________________
Maksym Veremeyenko
#5 lore raw
Quoted 13 lines · Maksym Veremeyenko

Gilles Chanteperdrix ~~~~~:

Quoted 2 lines
Quoted 1 line

1. Kernel 2.6.17.14, Xenomai 2.3.0... r2299, Adeos 1.5-02

Here, I assume you mean Xenomai branch v2.3.x revision 2299

release 2.3.0 and branch v2.3.x revision 2299 - both

Quoted 2 lines
Quoted 1 line

2. Kernel 2.6.19.2, Xenomai r2299, Adeos 1.7-01

Here, I assume you mean Xenomai trunk revision 2299

yes

Quoted 3 lines

The problem is that if there is no difference with regard to FPU context management between release 2.3.0 and latest revision of branch v2.3.x. So, the difference must be somewhere else.

Quoted 6 lines

What is recommended configuration and version of kernel and Xenomai? In my case
2.6.20.3 upgrade failed due to Xenomai compilation, 2.6.19 fault gdb to work properly,
2.6.18 fail due to absent adeos-ipipe version.
I have to use 2.6.17.14 .....

As far as I understood, Adeos version does not matter for your bug, what matters is xenomai revision. So, during your tests, you should keep the same Adeos version and only change Xenomai version.

However, if you have difficulties with some versions of Adeos, you should report the errors here. We are interested in getting them solved.

Quoted 3 lines
Quoted 2 lines

Could you send me your .config ?

attached

I see that you you have selected the K7 processor. Be sure to use an Adeos version greater than 1.5-02, or select a processor that does not support 3DNow (I think K6 should do).

Quoted 7 lines
Quoted 6 lines

Also, is it possible for you to try bisecting in v2.3.x branch ? v2.3.0 release is revision 2004, and you know that revision 2299 does not work for you, so you would be able to tell us exactly which revision is the cause of your problem.

What trunk revisions should be tried?

If revision 2299 of branch v2.3.x fails, you should stay in branch v2.3.x. Try revision 2150, if it fails, try revision 2075, if revision 2150 works, try revision 2225, etc... Do not forget to rebuild kernel and reboot between tests. And tell us when you have found that revision n works and revision n+1 does not work.

Signature · 1 line
					    Gilles Chanteperdrix.
#6 lore raw

Gilles Chanteperdrix пишет:

Quoted 6 lines
Quoted 2 lines
Quoted 1 line

Could you send me your .config ?

attached

I see that you you have selected the K7 processor. Be sure to use an Adeos version greater than 1.5-02, or select a processor that does not support 3DNow (I think K6 should do).

Yes! Master!
Shame on me - that is a problem.
I changed to P3 and problem gone.

Signature · 2 lines
________________________________________
Maksym Veremeyenko