[Etherlab-users] ecrt_master_receive big latency

zy zhouyoung1995 at qq.com
Thu Mar 11 12:48:34 CET 2021


Dear Mr. Hacker,


Thank you for your reply. I package the operation of creating real-time 
xenomai ethercat thread and slave configuration into a dynamic library 
and call it to start ethercat communication in my Qt GUI process. But, 
the MSW of this real-time ethercat thread just increases one or two when 
latency of ecrt_master_receive occurs and MSW does not constantly 
increases.  The xenomai page fault and the big latency of calling 
ecrt_master_receive seems occurs at the same time.
Do you mean I should create a new process in GUI and call my dynamic
library to start the real-time ethercat thread in the new process instead of 
in GUI process ?  Is my understanding correct ?


Best regards,
Zhou Yang




------------------ 原始邮件 ------------------
发件人:                                                                                                                        "Richard Hacker"                                                                                    <ha at igh.de>;
发送时间: 2021年3月11日(星期四) 晚上6:06
收件人: "etherlab-users"<etherlab-users at etherlab.org>;
抄送: "zy"<zhouyoung1995 at qq.com>;
主题: Re: [Etherlab-users] ecrt_master_receive big latency



Dear Zhou

On 2021-03-11 08:15, zy wrote:
> page fault. I alse execute “cat /proc/xenomai/stat” and find MSW of the 
Page faults and real time execution will never become friends. Running a 
user space application like Qt together with a real time thread in the 
same process almost certainly leads to problems. You need to separate it 
out into a process running your GUI and another running in real-time, 
with mlockall() and the works.


Mit freundlichem Gruß

Richard Hacker

-- 
------------------------------------------------------------------------

Richard Hacker M.Sc.
richard.hacker at igh.de
Tel.: +49 201 / 36014-16

Ingenieurgemeinschaft IgH
Gesellschaft für Ingenieurleistungen mbH
Nordsternstraße 66
D-45329 Essen

Amtsgericht Essen HRB 11500
USt-Id.-Nr.: DE 174 626 722
Geschäftsführung:
- Dr.-Ing. Siegfried Rotthäuser
- Dr. Sven Beermann, Prokurist
Tel.: +49 201 / 360-14-0
http://www.igh.de

------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20210311/57c0eff2/attachment.htm>


More information about the Etherlab-users mailing list