Well... After 24hrs still running.
i did some tests:
1/ Measured with the scope to do a next try to find power spikes
No matter what I tried -> I could not find power spikes
I played with the trigger towards any setting I could think of but it basically "did not work".
I had the feeling its simply did not find a valid trigger.
- positive/negative edge
- any y-sensitivity
- frequently starting the 1.5W consuming python script
2/ next I wrote a small stress program, code at the bottom of this post.
The cpu usage went form about 10% to 93%
power consumption went from 6.7W tot 7.3 W
I measured case temperature. It started at 36 degrees C; after 20 minutes 34C (I guess that is accuracy of infrared thermal gun)
To be honest:
- the stress program really does good job in raising cpu usage
- but python script I used last week added 1.5W, this only 0.6W any suggestions how I can drive higher power use? I do not want to write to flash to avoid wear, maybe I should read
With all that said... I feel it becomes time to close this thread and bring it to status [solved]
- my crash issue is not entirely solved, but I start to feel it's really hardware, not software.
Reasons:
- also crashes without usb-serial usage, without additional kext
- went from crashing to non-crashing by only extending nano sleep time from 0 to 3x100ms / second
- although somewhat repeatable also still very rare and unpredictable
- original problem did NOT show with TC-upgrade without recompile of application. That indicates non-linux issue, probably compiler issue, but consistent with "load issue".
- zero other users have this issue
All together I think the likelihood this is software is extremely low. A generic thing during all analysis is a load dependency. This more looks like thermal and/or power supply than like software.
With all that I think it's probably better to mark this [closed] because I did see at least one user was hesitant to upgrade because of this crash-risk.
My thoughts:
- see what happens in next 24hrs
- allow me to write a final post
- I will start a followup thread in "general TC talk" or "off topic TC lounge", I really would appreciate to do that as I get valuable information here.
- some mod (Rich? you can?) to update title with [solved] label.
makes sense?
int Stress()
{ int i;
float d1[200], d2[200];
while (1)
{ for (i=0; i<100; i++)
{ d1[i] = 1.111*i; }
for (i=0; i<100; i++)
{ d2[i] = d1[i]/ 1.111; }
for (i=0; i<100; i++)
{ d1[i] = d2[i] * 1.111; }
}
return 1;
}