⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 rtai-3.1-test3的源代码(Real-Time Application Interface )
💻
字号:
***** Various precise tunings of RTAI timing facilities *****=============================================================Please type "./calproc -h" to understand how to use it. A more detailedexplanation of the various available options follows below.8254 Calibration================Evaluates the time it takes to write two bytes to the 8254 timer. Such a time is required for programming the oneshot timer and sets the macro SETUP_TIME_8254 in rtai.h. It just calls an undocumented entry in rtai.c.APIC Frequency Calibration==========================Calibrates the APIC timer against the 8259 timer.In about twenty seconds the frequency value displayed on the console shouldconverge to the last significant digit. If you keep it running longer you can verify full convergence.We always use the most precise calibration obtainable by running it for an appropriate amount of time. The highest precision is needed for periodictimers, if you want to minimize the drift from real time.CPU Frequency Calibration=========================Calibrates the cpu clock against the 8259 timer.In about twenty seconds the frequency value displayed on the console shouldconverge to at least one part in ten million.  If you keep it runninglonger you can verify that more and more digits remain stable. In about aquarter of an hour you should get a precision to the least significantdigit. For a very precise and safe calibration let it run for an hour or so.Such a high precision is not strictly required for RTAI to workappropriately, in fact RTAI is enough with Linux calibration values ituses as defaults. However we (DIAPM) always use the most precise calibration obtainable by running it for an appropriate amount of time. The highest precision is needed for periodic timers, if you want to minimize the drift from real time.Latency Calibration===================Calibrates the scheduling latency of RTAI schedulers with oneshot timers, toallow a more precise of timed tasks. Chose the one (kernel/user space) moreappropriate to the scheduler you want to use.Interrupt Delays Caused by Bus Hardware Arbitrations and Locks==============================================================More and more motherboards are being sold with chipsets that have hardwareoptimizations allowing locking the bus, maybe up to few millisecs. Without judging if such a way of working is acceptable, maybe it makes it appear to improve overall average performances in general applications, it surely dooms real time usage.Often what RTAI users see are large scheduling jitters and they start hinting at bugs that likely do not exist.This check is aimed at helping in tracking such a problem. It measures interruptlatency by using the TSC on the timer interrupt, machines without TSCs are oldenough to have no optimising chipsets. Thus they do not have such a problem.The only module implied is rtai.c, there is thus no scheduling but justinterrupt dispatching, that should have latencies in the range of 20/30 usworst case. So if you'll see something too much higher play with itsconfiguration parameters, with those of Linux as well, to end in buyinganother board eventually.The worst interrupt latency is displayed at the end of the run, which comeswhen you type "Ctrl-C".Note that it is possible to check it also on a scope by defining using "-sy" and connecting the scope to the first output bit of the parallel port.See also README.SMI in this directory for some clues that might help withsome INTEL chipsets.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -