The Road to Building a real-time (RT) kernel for my favorite OS, Ubuntu 18.04.4

More
29 Mar 2020 16:14 #161988 by andypugh

Dmesg output attached.)


Are you starting LinuxCNC?

I see:
[ 1698.205948] stepconf[3274]: segfault at 0 ip 00007f6da42c3ff9 sp 00007ffcbc7bac50 error 4 in libgtk-3.so.0.2200.30[7f6da3fe0000+6f1000]

Which is a stepconf crash.
Whereas the stdio log looked like a LinuxCNC startup.

Please Log in or Create an account to join the conversation.

More
29 Mar 2020 16:21 #161990 by BeagleBrainz
She’ll be right mate, I just through that in to differentiate between the bios only and UEFI & BIOS bootable ones.

Please Log in or Create an account to join the conversation.

More
29 Mar 2020 16:23 #161991 by clunc
@BeagleBrainz
> Could you try running one of the sims say axis and see how long it takes to load up?
I tried it [attch1], but I don't get that far [attch2]

If I kill -HUP linuxcnc [attch3] is what I see: can't insmod.

> Did you try a latency test to see what figures you got ?
I didn't. I figured to fire up LinuxCNC with my last ubuntu 12.04 settings and see how it (mis)behaves.
Attachments:

Please Log in or Create an account to join the conversation.

More
29 Mar 2020 16:24 #161993 by andypugh
Once LinuxCNC has crashed and left RTAI modules installed the only way to clean up is a reboot.

Please Log in or Create an account to join the conversation.

More
29 Mar 2020 16:25 #161994 by clunc
> Are you starting LinuxCNC?

Stand by. I must've grabbed dmesg at the wrong time. I'll get another. (requires a reboot because no way to unload linuxcnc after trying it, which I just did to try to run an axis sim)

Please Log in or Create an account to join the conversation.

More
29 Mar 2020 16:27 - 29 Mar 2020 16:49 #161995 by clunc

Once LinuxCNC has crashed and left RTAI modules installed the only way to clean up is a reboot.


Not only that, Ubuntu with the rtai kernel seems to take a Lot longer to shutdown than ordinary. [over 2 min when I walked away, but it had finally rebooted when I returned 5 or so min later; compare to non-RTAI 18.04: ~3 sec, although nothing had been run so there was nothing to "clean up"]
Last edit: 29 Mar 2020 16:49 by clunc.

Please Log in or Create an account to join the conversation.

More
29 Mar 2020 16:29 #161997 by BeagleBrainz
I’d reboot and then try running the sims, that should clear up the kernel module issue. Just let it run it’s course, it just maybe that it takes more than 5 seconds to load, how much memory and swap do you have ?

Please Log in or Create an account to join the conversation.

More
29 Mar 2020 16:43 - 29 Mar 2020 16:44 #162000 by clunc
> Just let it run it’s course, it just maybe that it takes more than 5 seconds to load

I've waited on it 5 minutes seeing only "Starting LinuxCNC" in the console. [At that point I give up and try to Ctrl-C (nothing) and finally kill -HUP the process.]

> How much memory and swap?

2GB ram, 2GB swapfile.

Dmesg output before and after linuxcnc startup are attached.
Attachments:
Last edit: 29 Mar 2020 16:44 by clunc. Reason: add a line

Please Log in or Create an account to join the conversation.

More
29 Mar 2020 16:54 #162002 by BeagleBrainz
IMHO you really need to try running a latency test.
Otherwise you could just be barking up the wrong tree.
That’s why it’s been suggested trying one of the Mint images and running the latency test prior to installing. You’ll get a feel if you have the right machine. Or Debian wheezy might be the best solution.

Please Log in or Create an account to join the conversation.

More
29 Mar 2020 17:28 #162006 by clunc
I ran 'latency-test' and the result is interesting only in the sense that it shows the identical behavior to linuxcnc when run: it does not open a window!

I suspect now that the apps are running fine but that something is wrong with my windowing. Other apps (firefox, etc.) open fine.

Please Log in or Create an account to join the conversation.

Time to create page: 0.103 seconds
Powered by Kunena Forum