Wind River Support Network

HomeDefectsLIN1018-3119
Fixed

LIN1018-3119 : ptpd2 daemon takes 100% CPU

Created: Dec 11, 2018    Updated: Jan 16, 2019
Resolved Date: Dec 25, 2018
Found In Version: unknown
Fix Version: 10.18.44.3
Severity: Standard
Applicable for: Wind River Linux LTS 18
Component/s: Userspace

Description

The ptpd2 daemon consumes 100% CPU (of a single core) after some amount of stable runtime. This problem did NOT occur on WRL7.

WRL9 : ptpd 2.3.1
WRL7 : ptpd 2.3.1-rc2

Maybe this is an already known issue, please take a look at the official project:
--- see https://github.com/ptpd/ptpd/blob/master/ChangeLog
* 2.3.2 release
* Bug fixes / improvements since 2.3.1:
critical: added minimum POSIX timer interval to prevent from
timers firing to quickly for the process to handle,
resulting in 100% CPU and endless signal queue
---

Steps to Reproduce

Create a simple project with ptpd package and launch it twice
- Start ptpd2 as a master on one device (for example: "ptpd2 -i eth0 -M -C") 
- Start ptpd2 as a slave on other devices (see attached configuration file) 
- Wait 12 to 24 hours 
Live chat
Online