Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - QNX with SMP kernel is unstable (copied from General forum): (17 Items)
   
QNX with SMP kernel is unstable (copied from General forum)  
QNX with SMP kernel is unstable

QNX with SMP kernel is unstable. For example, QNX hangs during QNX Momentics IDE 4.0.1 start: mouse and keyboard are 
frozen. It works normally with uniprocessor kernel (with/without DMA).
Configuration (pidin/qconfig):
CPU:X86 Release:6.3.2  FreeMem:813Mb/990Mb BootTime:Mar 10 04:52:37 MSK 2008 
Processor1: 263730 AMD ?86 F15M11S2 2213MHz FPU 
Processor2: 263730 AMD ?86 F15M11S2 2213MHz FPU 
QNX Installations 

  Installation Name: QNX Momentics Development Suite 6.3.2
            Version: 6.3.2 x86-only
     Base Directory: /usr/qnx632/
           QNX_HOST: /usr/qnx632/host/qnx6/x86/
         QNX_TARGET: /usr/qnx632/target/qnx6/

Any ideas (except to work with uniprocessor kernel :-) ?
Is there anybody here who normally works with SMP kernel and at least two processors?
Thanks,
Vladimir

Re: QNX with SMP kernel is unstable (copied from General forum)  
Can you try starting the IDE bound to one cpu (ie

on -C0 qde

and see if the problem exists?  It may be a java issue rather than a kernel problem.

Colin

Vladimir Faisulaev wrote:
> QNX with SMP kernel is unstable
> 
> QNX with SMP kernel is unstable. For example, QNX hangs during QNX 
> Momentics IDE 4.0.1 start: mouse and keyboard are frozen. It works 
> normally with uniprocessor kernel (with/without DMA).
> 
> Configuration (pidin/qconfig):
> CPU:X86 Release:6.3.2  FreeMem:813Mb/990Mb BootTime:Mar 10 04:52:37 MSK 
> 2008
> Processor1: 263730 AMD ?86 F15M11S2 2213MHz FPU
> Processor2: 263730 AMD ?86 F15M11S2 2213MHz FPU
> QNX Installations
> 
>   Installation Name: QNX Momentics Development Suite 6.3.2
>             Version: 6.3.2 x86-only
>      Base Directory: /usr/qnx632/
>            QNX_HOST: /usr/qnx632/host/qnx6/x86/
>          QNX_TARGET: /usr/qnx632/target/qnx6/
> 
> Any ideas (except to work with uniprocessor kernel :-) ?
> Is there anybody here who normally works with SMP kernel and at least 
> two processors?
> Thanks,
> Vladimir
> 
> 
> 
> _______________________________________________
> OSTech
> http://community.qnx.com/sf/go/post5760
> 

-- 
cburgess@qnx.com
Re: QNX with SMP kernel is unstable (copied from General forum)  
Thank you for the suggestion. I already tried it without success.
BTW: Photon works stable after "on -C 0 ph".
I tried also to rebuild SMP kernel with mkifs and [CPU=1] for the drivers in the build file. But mkifs doesn't accept 
this attribute.
Best regards,
Vladimir
Re: QNX with SMP kernel is unstable (copied from General forum)  
Vladimir Faisulaev wrote:
> Thank you for the suggestion. I already tried it without success.
> BTW: Photon works stable after "on -C 0 ph".

Hmmm, so Photon is unstable normally?

The next step is to check for a kernel crash.  Try redirecting the kernel
debug output to ser1 or ser2, by adding -K3f8.9600 or -K2f8.9600 as arguments
to startup-bios in your build file.

Also please add [+keeplinked] on the same line as procnto-smp - this will
leave a relocated procnto-smp.sym in your working directory.

Colin

> I tried also to rebuild SMP kernel with mkifs and [CPU=1] for the 
> drivers in the build file. But mkifs doesn't accept this attribute.
> 
> Best regards,
> Vladimir
> 
> 
> _______________________________________________
> OSTech
> http://community.qnx.com/sf/go/post5879
> 

-- 
cburgess@qnx.com
Re: QNX with SMP kernel is unstable (copied from General forum)  
1) Normally Photon is unstable: when I create a terminal window and drag it then a tail is created on the screen and QNX
 hangs (no mouse/keyboard reaction). See attachment.
2) Unfortunatelly, I can try to implement your debug suggestions only in weekend. Too much work on my original work.
Best regards,
Vladimir
Attachment: Image P1010113.JPG 605.03 KB
Re: QNX with SMP kernel is unstable (copied from General forum)  
I rebuild SMP kernel with your recommendations: -K3f8.9600 and +keeplinked. What are the next steps?
Thank you in advance,
Vladimir
P.S. As I understand /dev/ser1 is used to output kernel debug messages (?).
P.P.S. I'm not a professional in *nix world. Sorry for the silly questions.
Re: QNX with SMP kernel is unstable (copied from General forum)  
> I rebuilded SMP kernel with your recommendations: -K3f8.9600 and +keeplinked. 
> What are the next steps?
> Thank you in advance,
> Vladimir
> P.S. As I understand /dev/ser1 is used to output kernel debug messages (?).
> P.P.S. I'm not a professional in *nix world. Sorry for the silly questions.


RE: QNX with SMP kernel is unstable (copied from General forum)  
Next time the kernel crashes it will spit out a load of debug info.  You can
post
that (and the procnto-smp.sym) to this forum, and we can take a peek at what
might
have gone wrong.
 
Cheers,
 
Colin

  _____  

From: Vladimir Faisulaev [mailto:vfaisulaev@luxoft.com]
Sent: Sat 22/03/2008 5:01 PM
To: ostech-core_os
Subject: Re: QNX with SMP kernel is unstable (copied from General forum)



I rebuild SMP kernel with your recommendations: -K3f8.9600 and +keeplinked.
What are the next steps? 
Thank you in advance, 
Vladimir 
P.S. As I understand /dev/ser1 is used to output kernel debug messages (?). 
P.P.S. I'm not a professional in *nix world. Sorry for the silly questions. 

_______________________________________________ 
OSTech 
http://community.qnx.com/sf/go/post6038
<http://community.qnx.com/sf/go/post6038>;  

Re: RE: QNX with SMP kernel is unstable (copied from General forum)  
Sorry but I still don't understand how/where I will/should see "debug info."
Best regards,
Vladimir
Re: QNX with SMP kernel is unstable (copied from General forum)  
You will see a QNX kernel dump come out the serial port.

It should look something like this...

Crash[0,0] at kerext_process line 253

or

Shutdown[0,0] S/C/F=11/1/11 C/D=f001517d/f00571ac state(c0)= now lock
[0]PID-TID= 1-1? P/T FL=00019001/08800000 "proc/boot/procnto-instr"
[0]ASPACE PID=7 PF=00001010 "proc/boot/devb-eide"
x86 context[efffcc28]:
0000: 08088cc8 b0359320 efff2c3c efffcc48 b0357f14 08088d10 efff2c10 000000f8
0020: b0323948 0000001d 00011296 efff2c24 00000099
instruction[b0323948]:
ff 08 75 0e 8b 02 83 c4 f4 83 c0 08 50 e8 8e f5 fe ff 8b 5d e8 c9 c3 90 55 89
stack[efff2c24]:
0000: b0357f14 00000003 08088cc8 b0317d3d b0357f14 b0359320 efff2c6c b033f692
0000: 8088d10 b033f49c efff2c5c b033f678 b0357f14 00000003 00100102 00000003

You can get more information on the format here - http://www.qnx.com/developers/docs/6.3.2/neutrino/technotes/proc_dump.
html

Vladimir Faisulaev wrote:
> Sorry but I still don't understand how/where I will/should see "debug 
> info."
> Best regards,
> Vladimir
> 
> 
> _______________________________________________
> OSTech
> http://community.qnx.com/sf/go/post6041
> 

-- 
cburgess@qnx.com
Re: QNX with SMP kernel is unstable (copied from General forum)  
The output on /dev/ser1 contains only timestamps. Something like that:
...
<20080326234802.843>
<20080326234805.015>
<20080326234834.140>
<20080326234837.015>
...
Nothing more.
Best regards,
Vladimir
Re: QNX with SMP kernel is unstable (copied from General forum)  
This isn't something that our kernel emits.  Does any application have /dev/ser1 open?

Vladimir Faisulaev wrote:
> The output on /dev/ser1 contains only timestamps. Something like that:
> ...
> <20080326234802.843>
> <20080326234805.015>
> <20080326234834.140>
> <20080326234837.015>
> ...
> Nothing more.
> Best regards,
> Vladimir
> 
> 
> _______________________________________________
> OSTech
> http://community.qnx.com/sf/go/post6175
> 

-- 
cburgess@qnx.com
Re: QNX with SMP kernel is unstable (copied from General forum)  
I commented devc drivers start in /etc/system/enum/devices/char .
No special apps is running (only Photon).
Best regards,
Vladimir
Re: QNX with SMP kernel is unstable (copied from General forum)  
Sorry, only <EOT> is coming. Timestamp is from the tool that traps COM1 in Windows (QNX and Windows is connected via 
null modem COM1<->COM1).
Best regards,
Vladimir
Re: QNX with SMP kernel is unstable (copied from General forum)  
Any new suggestions to find/bypass SMP kernel instability are appreciated.
Best regards,
Vladimir
Re: QNX with SMP kernel is unstable (copied from General forum)  
Good news: I found the source of QNX (Photon, QDE, etc.) with SMP kernel instability. After I switched from vesa to svga
 driver all above works stable.
Thanks all for the help,
Vladimir
Re: QNX with SMP kernel is unstable (copied from General forum)  
Interesting - I'll forward this to the Photon graphics guys.

Thanks for your perseverance!

Colin

Vladimir Faisulaev wrote:
> Good news: I found the source of QNX (Photon, QDE, etc.) with SMP kernel 
> instability. After I switched from vesa to svga driver all above works 
> stable.
> 
> Thanks all for the help,
> Vladimir
> 
> 
> _______________________________________________
> OSTech
> http://community.qnx.com/sf/go/post6273
> 

-- 
cburgess@qnx.com