could not insert module : rtai_smi.ko: No such dev
27 Apr 2015 15:35 - 27 Apr 2015 15:55 #58149
by telson
could not insert module : rtai_smi.ko: No such dev was created by telson
bonjour,
j'essaie d'optimiser au maximum mon test de latence et aussi éliminer des pics furtifs durant les tests.....
Voici ma config :
ordinateur : HP compad dx2200, Pentum 4 , single-core
carte graphique : radeon rs200
OS : LinuxCNC 2.6 (Debian Wheezy); source : www.linuxcnc.org/index.php/english/download
Latency test : 25000
j'essaie de faire un test avec la commande : insmod /usr/realtime-3.4-9-rtai-686-pae/modules/rtai_smi.ko
J'ai la réponse suivante : could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/rtai_smi.ko: No such device
Je modifie mon fichier : etc/linuxcnc/rtapi.conf
# DO NOT EDIT THIS FILE !
#
# ../scripts/rtapi.conf. Generated from rtapi.conf.in by configure.
# on Sat Feb 21 18:17:33 UTC 2015
#
# A few parameters from emc2/Makefile.inc
EMC2_HOME=/usr
KERNELDIR=/usr/src/linux-headers-3.4-9-rtai-686-pae
RTLIB_DIR=/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc
MODULE_EXT=.ko
RTPREFIX=rtai
KERNEL_VERS=3.4-9-rtai-686-pae
# Sets the default DEBUG level
DEBUG='1'
# Path to the realtime kernel modules
MODPATH=/usr/realtime-3.4-9-rtai-686-pae/modules
# List of realtime kernel modules to be loaded
if [ "3" = "3" ] ; then \
MODULES="adeos rtai_hal rtai_ksched rtai_fifos rtai_shm rtai_sem rtai_math"
RTAI=3
MODPATH_adeos=
MODPATH_rtai_hal=/usr/realtime-$(uname -r)/modules/rtai_hal.ko
MODPATH_rtai_ksched=/usr/realtime-$(uname -r)/modules/rtai_ksched.ko
MODPATH_rtai_fifos=
MODPATH_rtai_shm=
MODPATH_rtai_sem=
MODPATH_rtai_math=/usr/realtime-$(uname -r)/modules/rtai_math.ko
comme ceci :
# List of realtime kernel modules to be loaded
if [ "3" = "3" ] ; then \
MODULES="adeos rtai_hal rtai_ksched rtai_fifos rtai_shm rtai_sem rtai_math rtai_smi"
RTAI=3
MODPATH_adeos=
MODPATH_rtai_smi=/usr/realtime-$(uname -r)/modules/rtai_smi.ko
MODPATH_rtai_hal=/usr/realtime-$(uname -r)/modules/rtai_hal.ko
MODPATH_rtai_ksched=/usr/realtime-$(uname -r)/modules/rtai_ksched.ko
MODPATH_rtai_fifos=
MODPATH_rtai_shm=
MODPATH_rtai_sem=
MODPATH_rtai_math=/usr/realtime-$(uname -r)/modules/rtai_math.ko
Mais lorsque je fais ces changements :
le latency test ne fonctionne plus
quand j'exécute linuxcnc, il plante et j'ai dans la fenêtre de LinuxCNC errors les informations suivantes
starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Realtime system did not load
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=6616
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
Error: could not load module /usr/realtime-3.4-9-rtai-686-pae/modules/rtai_fifos.ko: No such file or directory
6616
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Error: Module hal_lib is not currently loaded
Error: Module rtapi is not currently loaded
Error: Module rtai_smi is not currently loaded
Error: Module rtai_math is not currently loaded
Error: Module rtai_sem is not currently loaded
Error: Module rtai_shm is not currently loaded
Error: Module rtai_fifos is not currently loaded
Je regarde dans le répertoire : /usr/realtime-3.4-9-rtai-686-pae/modules/ et là ???!! Ces fichiers sont présents ???
Maintenant j'aimerais savoir si je peux utiliser cette config sur debian weezy ......D'ailleurs voici mes derniers tests :
Avec le fichier rtapi.conf modifié, lorsque je fais :
root@debian:/etc/linuxcnc# insmod /usr/realtime-3.4-9-rtai-686-pae/modules/rtai_smi.ko
--> Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/rtai_smi.ko: No such device
root@debian:/etc/linuxcnc# /etc/init.d/realtime start
--> Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/rtai_hal.ko: File exists
Maintenant avec cette commande :
root@debian:/etc/linuxcnc# cd /usr/realtime*/testsuite/kern/latency; ./run
-->
RTAI Testsuite - KERNEL latency (all data in nanoseconds)
RTH| lat min| ovl min| lat avg| lat max| ovl max| overruns
RTD| -1421| -1472| 4457| 12744| 13674| 0
RTD| -1433| -1472| 4362| 46093| 46093| 0
RTD| -1379| -1472| 4449| 12752| 46093| 0
Un énorme pic à 46093 apparaît soudainement..........
Je remets le fichier rtapi.conf comme à l'origine et je fais :
root@debian:/etc/linuxcnc# cd /usr/realtime*/testsuite/kern/latency; ./run
-->
RTAI Testsuite - KERNEL latency (all data in nanoseconds)
RTH| lat min| ovl min| lat avg| lat max| ovl max| overruns
RTD| -1436| -1476| -1031| 16996| 16996| 0
RTD| -1446| -1476| -1047| 1472| 16996| 0
RTD| -1427| -1476| -1085| -769| 16996| 0
RTD| -1449| -1476| -1083| 4253| 16996| 0
RTD| -1452| -1476| -1133| 1738| 16996| 0
RTD| -1458| -1476| -1135| 20173| 20173| 0
RTD| -1440| -1476| -1177| 218| 20173| 0
RTD| -1456| -1476| -1104| 1740| 20173| 0
RTD| -1460| -1476| -1233| 1136| 20173| 0
RTD| -1466| -1476| -1279| 12151| 20173| 0
J'ai un pic à 20173 qui apparaît....Mais moins élévé quand même..........
je refais la même commande et j'attends plus longtemps :
-->
RTAI Testsuite - KERNEL latency (all data in nanoseconds)
RTH| lat min| ovl min| lat avg| lat max| ovl max| overruns
RTD| -1351| -1447| 4447| 12786| 13539| 0
RTD| -1383| -1447| 4453| 12771| 13539| 0
RTD| -1386| -1447| 4334| 32836| 32836| 0
RTD| -1412| -1447| 4448| 12723| 32836| 0
RTD| -1386| -1447| 4452| 12732| 32836| 0
RTD| -1459| -1459| 4360| 13396| 32836| 0
Cette fois c'est un pic à 32836.........Greeeeeee
Cependant avec le Latency Test de LinuxCNC j'obtiens entre 20 000 et 22 0000..........
Bon..............Chaud quand même LinuxCNC..........Pour information j'ai mis en place les solutions de ce post : www.linuxcnc.org/index.php/french/forum/46-francais/28461
(Ayant constater via - watch -n 1 cat /proc/interrupts - que les NMI s'incrémentaient toutes les 10 secondes ( au mieux ), j'ai décidé d'arrêter ce service complètement. Histoire de voir...
GRUB_CMDLINE_LINUX_DEFAULT="quiet isolcpus=1 lapic apm=off nmi_watchdog=0")
Merci par avance.
j'essaie d'optimiser au maximum mon test de latence et aussi éliminer des pics furtifs durant les tests.....
Voici ma config :
ordinateur : HP compad dx2200, Pentum 4 , single-core
carte graphique : radeon rs200
OS : LinuxCNC 2.6 (Debian Wheezy); source : www.linuxcnc.org/index.php/english/download
Latency test : 25000
j'essaie de faire un test avec la commande : insmod /usr/realtime-3.4-9-rtai-686-pae/modules/rtai_smi.ko
J'ai la réponse suivante : could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/rtai_smi.ko: No such device
Je modifie mon fichier : etc/linuxcnc/rtapi.conf
# DO NOT EDIT THIS FILE !
#
# ../scripts/rtapi.conf. Generated from rtapi.conf.in by configure.
# on Sat Feb 21 18:17:33 UTC 2015
#
# A few parameters from emc2/Makefile.inc
EMC2_HOME=/usr
KERNELDIR=/usr/src/linux-headers-3.4-9-rtai-686-pae
RTLIB_DIR=/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc
MODULE_EXT=.ko
RTPREFIX=rtai
KERNEL_VERS=3.4-9-rtai-686-pae
# Sets the default DEBUG level
DEBUG='1'
# Path to the realtime kernel modules
MODPATH=/usr/realtime-3.4-9-rtai-686-pae/modules
# List of realtime kernel modules to be loaded
if [ "3" = "3" ] ; then \
MODULES="adeos rtai_hal rtai_ksched rtai_fifos rtai_shm rtai_sem rtai_math"
RTAI=3
MODPATH_adeos=
MODPATH_rtai_hal=/usr/realtime-$(uname -r)/modules/rtai_hal.ko
MODPATH_rtai_ksched=/usr/realtime-$(uname -r)/modules/rtai_ksched.ko
MODPATH_rtai_fifos=
MODPATH_rtai_shm=
MODPATH_rtai_sem=
MODPATH_rtai_math=/usr/realtime-$(uname -r)/modules/rtai_math.ko
comme ceci :
# List of realtime kernel modules to be loaded
if [ "3" = "3" ] ; then \
MODULES="adeos rtai_hal rtai_ksched rtai_fifos rtai_shm rtai_sem rtai_math rtai_smi"
RTAI=3
MODPATH_adeos=
MODPATH_rtai_smi=/usr/realtime-$(uname -r)/modules/rtai_smi.ko
MODPATH_rtai_hal=/usr/realtime-$(uname -r)/modules/rtai_hal.ko
MODPATH_rtai_ksched=/usr/realtime-$(uname -r)/modules/rtai_ksched.ko
MODPATH_rtai_fifos=
MODPATH_rtai_shm=
MODPATH_rtai_sem=
MODPATH_rtai_math=/usr/realtime-$(uname -r)/modules/rtai_math.ko
Mais lorsque je fais ces changements :
le latency test ne fonctionne plus
quand j'exécute linuxcnc, il plante et j'ai dans la fenêtre de LinuxCNC errors les informations suivantes
starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Realtime system did not load
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=6616
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
Error: could not load module /usr/realtime-3.4-9-rtai-686-pae/modules/rtai_fifos.ko: No such file or directory
6616
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Error: Module hal_lib is not currently loaded
Error: Module rtapi is not currently loaded
Error: Module rtai_smi is not currently loaded
Error: Module rtai_math is not currently loaded
Error: Module rtai_sem is not currently loaded
Error: Module rtai_shm is not currently loaded
Error: Module rtai_fifos is not currently loaded
Je regarde dans le répertoire : /usr/realtime-3.4-9-rtai-686-pae/modules/ et là ???!! Ces fichiers sont présents ???
Maintenant j'aimerais savoir si je peux utiliser cette config sur debian weezy ......D'ailleurs voici mes derniers tests :
Avec le fichier rtapi.conf modifié, lorsque je fais :
root@debian:/etc/linuxcnc# insmod /usr/realtime-3.4-9-rtai-686-pae/modules/rtai_smi.ko
--> Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/rtai_smi.ko: No such device
root@debian:/etc/linuxcnc# /etc/init.d/realtime start
--> Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/rtai_hal.ko: File exists
Maintenant avec cette commande :
root@debian:/etc/linuxcnc# cd /usr/realtime*/testsuite/kern/latency; ./run
-->
RTAI Testsuite - KERNEL latency (all data in nanoseconds)
RTH| lat min| ovl min| lat avg| lat max| ovl max| overruns
RTD| -1421| -1472| 4457| 12744| 13674| 0
RTD| -1433| -1472| 4362| 46093| 46093| 0
RTD| -1379| -1472| 4449| 12752| 46093| 0
Un énorme pic à 46093 apparaît soudainement..........
Je remets le fichier rtapi.conf comme à l'origine et je fais :
root@debian:/etc/linuxcnc# cd /usr/realtime*/testsuite/kern/latency; ./run
-->
RTAI Testsuite - KERNEL latency (all data in nanoseconds)
RTH| lat min| ovl min| lat avg| lat max| ovl max| overruns
RTD| -1436| -1476| -1031| 16996| 16996| 0
RTD| -1446| -1476| -1047| 1472| 16996| 0
RTD| -1427| -1476| -1085| -769| 16996| 0
RTD| -1449| -1476| -1083| 4253| 16996| 0
RTD| -1452| -1476| -1133| 1738| 16996| 0
RTD| -1458| -1476| -1135| 20173| 20173| 0
RTD| -1440| -1476| -1177| 218| 20173| 0
RTD| -1456| -1476| -1104| 1740| 20173| 0
RTD| -1460| -1476| -1233| 1136| 20173| 0
RTD| -1466| -1476| -1279| 12151| 20173| 0
J'ai un pic à 20173 qui apparaît....Mais moins élévé quand même..........
je refais la même commande et j'attends plus longtemps :
-->
RTAI Testsuite - KERNEL latency (all data in nanoseconds)
RTH| lat min| ovl min| lat avg| lat max| ovl max| overruns
RTD| -1351| -1447| 4447| 12786| 13539| 0
RTD| -1383| -1447| 4453| 12771| 13539| 0
RTD| -1386| -1447| 4334| 32836| 32836| 0
RTD| -1412| -1447| 4448| 12723| 32836| 0
RTD| -1386| -1447| 4452| 12732| 32836| 0
RTD| -1459| -1459| 4360| 13396| 32836| 0
Cette fois c'est un pic à 32836.........Greeeeeee
Cependant avec le Latency Test de LinuxCNC j'obtiens entre 20 000 et 22 0000..........
Bon..............Chaud quand même LinuxCNC..........Pour information j'ai mis en place les solutions de ce post : www.linuxcnc.org/index.php/french/forum/46-francais/28461
(Ayant constater via - watch -n 1 cat /proc/interrupts - que les NMI s'incrémentaient toutes les 10 secondes ( au mieux ), j'ai décidé d'arrêter ce service complètement. Histoire de voir...
GRUB_CMDLINE_LINUX_DEFAULT="quiet isolcpus=1 lapic apm=off nmi_watchdog=0")
Merci par avance.
Last edit: 27 Apr 2015 15:55 by telson.
Please Log in or Create an account to join the conversation.
27 Apr 2015 19:07 #58160
by andypugh
The smi patch only works on motherboards with SMI.
If you run dmesg after trying to run LinuxCNC you might find a more informative message. It is possible that the smi module is not relevant to your hardware.
You do not seem to have an SMI problem. SMI tends to increase latency to > 100,000 every 60 seconds.
Replied by andypugh on topic could not insert module : rtai_smi.ko: No such dev
--> Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/rtai_smi.ko: No such device.
The smi patch only works on motherboards with SMI.
If you run dmesg after trying to run LinuxCNC you might find a more informative message. It is possible that the smi module is not relevant to your hardware.
You do not seem to have an SMI problem. SMI tends to increase latency to > 100,000 every 60 seconds.
Please Log in or Create an account to join the conversation.
29 Apr 2015 18:48 - 29 Apr 2015 18:51 #58222
by telson
Replied by telson on topic could not insert module : rtai_smi.ko: No such dev
Ok......... modul rtai_smi.ko wasn't a good idea because the device is not on my pc.......
so, after with cd /usr/realtime*/testsuite/kern/latency; ./run, i wish see my latency time.
I had this last results :
RTAI Testsuite - KERNEL latency (all data in nanoseconds)
RTH| lat min| ovl min| lat avg| lat max| ovl max| overruns
RTD| -1351| -1447| 4447| 12786| 13539| 0
RTD| -1383| -1447| 4453| 12771| 13539| 0
RTD| -1386| -1447| 4334| 32836| 32836| 0
RTD| -1412| -1447| 4448| 12723| 32836| 0
RTD| -1386| -1447| 4452| 12732| 32836| 0
RTD| -1459| -1459| 4360| 13396| 32836| 0
After read this post : wiki.debian.org/AtiHowTo
i do :
Add "contrib" and "non-free" components to /etc/apt/sources.list, for example:
# Debian 8 "Jessie"
deb http.debian.net/debian/ jessie main contrib non-free
Update the list of available packages:
# apt-get update
Install the firmware-linux-nonfree, libgl1-mesa-dri and xserver-xorg-video-ati packages:
# apt-get install firmware-linux-nonfree libgl1-mesa-dri xserver-xorg-video-ati
i not sure of my choise .......(peurhaps : wiki.debian.org/fr/ATIProprietary#Debian_7_.22Wheezy.22).....but i test .
finally, always with : cd /usr/realtime*/testsuite/kern/latency; ./run, I have :
RTH| lat min| ovl min| lat avg| lat max| ovl max| overruns
RTD| -1431| -1462| 4214| 5297| 5297| 0
RTD| -1426| -1462| 4222| 5364| 5364| 0
RTD| -1400| -1462| 4225| 5303| 5364| 0
RTD| -1436| -1462| 4219| 5060| 5364| 0
RTD| -1417| -1462| 4221| 5311| 5364| 0
RTD| -1398| -1462| 4221| 5827| 5827| 0
RTD| -1424| -1462| 4223| 11985| 11985| 0
RTD| -1398| -1462| 4221| 11980| 11985| 0
RTD| -1432| -1462| 4213| 18283| 18283| 0
RTD| -1436| -1462| 4219| 5060| 18283| 0
RTD| -1417| -1462| 4221| 5311| 18283| 0
RTD| -1398| -1462| 4221| 5827| 18283| 0
it's better no............But some pics again 12000 --> 18000.
It's normal...I think that i should have a stability in the results......no?
(I speak so well english............... )
so, after with cd /usr/realtime*/testsuite/kern/latency; ./run, i wish see my latency time.
I had this last results :
RTAI Testsuite - KERNEL latency (all data in nanoseconds)
RTH| lat min| ovl min| lat avg| lat max| ovl max| overruns
RTD| -1351| -1447| 4447| 12786| 13539| 0
RTD| -1383| -1447| 4453| 12771| 13539| 0
RTD| -1386| -1447| 4334| 32836| 32836| 0
RTD| -1412| -1447| 4448| 12723| 32836| 0
RTD| -1386| -1447| 4452| 12732| 32836| 0
RTD| -1459| -1459| 4360| 13396| 32836| 0
After read this post : wiki.debian.org/AtiHowTo
i do :
Add "contrib" and "non-free" components to /etc/apt/sources.list, for example:
# Debian 8 "Jessie"
deb http.debian.net/debian/ jessie main contrib non-free
Update the list of available packages:
# apt-get update
Install the firmware-linux-nonfree, libgl1-mesa-dri and xserver-xorg-video-ati packages:
# apt-get install firmware-linux-nonfree libgl1-mesa-dri xserver-xorg-video-ati
i not sure of my choise .......(peurhaps : wiki.debian.org/fr/ATIProprietary#Debian_7_.22Wheezy.22).....but i test .
finally, always with : cd /usr/realtime*/testsuite/kern/latency; ./run, I have :
RTH| lat min| ovl min| lat avg| lat max| ovl max| overruns
RTD| -1431| -1462| 4214| 5297| 5297| 0
RTD| -1426| -1462| 4222| 5364| 5364| 0
RTD| -1400| -1462| 4225| 5303| 5364| 0
RTD| -1436| -1462| 4219| 5060| 5364| 0
RTD| -1417| -1462| 4221| 5311| 5364| 0
RTD| -1398| -1462| 4221| 5827| 5827| 0
RTD| -1424| -1462| 4223| 11985| 11985| 0
RTD| -1398| -1462| 4221| 11980| 11985| 0
RTD| -1432| -1462| 4213| 18283| 18283| 0
RTD| -1436| -1462| 4219| 5060| 18283| 0
RTD| -1417| -1462| 4221| 5311| 18283| 0
RTD| -1398| -1462| 4221| 5827| 18283| 0
it's better no............But some pics again 12000 --> 18000.
It's normal...I think that i should have a stability in the results......no?
(I speak so well english............... )
Last edit: 29 Apr 2015 18:51 by telson.
Please Log in or Create an account to join the conversation.
29 Apr 2015 19:04 #58224
by andypugh
Don't worry about it. 18000 is fine.
(30000 is fine for many systems too)
Unless you are software stepping or trying to read encoders in software you don't need < 50000
Replied by andypugh on topic could not insert module : rtai_smi.ko: No such dev
it's better no............But some pics again 12000 --> 18000.
Don't worry about it. 18000 is fine.
(30000 is fine for many systems too)
Unless you are software stepping or trying to read encoders in software you don't need < 50000
The following user(s) said Thank You: telson
Please Log in or Create an account to join the conversation.
29 Apr 2015 19:23 #58225
by telson
Replied by telson on topic could not insert module : rtai_smi.ko: No such dev
thanks a lot.
Please Log in or Create an account to join the conversation.
Moderators: darty367
Time to create page: 0.145 seconds