On Fri, Jun 20, 2014 at 10:13:06AM +0200, Jiri Benc wrote:
> On Fri, 20 Jun 2014 09:52:49 +0200, Miroslav Lichvar wrote:
> > I think a combination of ptp4l sending notification on exit and
> > phc2sys timing out when no reply is received in the pmc update
> > interval (1 minute) would be good enough.
> 
> Except when ptp4l is killed/crashes and is restarted. That's something
> that wouldn't be caught by this and would create quite a messy
> situation, especially when it's restarted automatically by system
> startup scripts (e.g. systemd).

Well, I wouldn't expect ptp4l to crash or be killed (SIGKILL) so
often that it needs such special care. A restart could be detected by
adding a random ID of the running ptp4l instance to the messages.

> > Switching to the SEQPACKET socket seems like a lot of work and it
> > wouldn't detect unresponsive ptp4l, which might be a useful thing to
> > have (the same applies to the process monitoring).
> 
> I don't think that unresponsive ptp4l is a likely state. How could this
> happen, sans a horrible bug?

Yes, a bug. Although it might be less likely than ptp4l crashing.

-- 
Miroslav Lichvar

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to