Re: [Linuxptp-users] The ptp4l application seems to have a memory leak (increase of memory allocati
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Mario M. <Mar...@we...> - 2012-07-08 10:06:27
|
> Wow, what an embarrassing collection of bugs I produced. No problem. I think you have made great job and the software architecture of ptp4l is very good and this make it easy to analyze problems. > Many thanks for finding this bug and the patch. I just pushed a fix >(just a bit different than your patch) today. Thanks, it was pleasure to help. >I added some compile time debugging that you might try out to verify >the fix. I found that the slave mode uses 6 messages and the master >mode 2, with one master and one slave and the default settings. Ok. Thanks, these are very helpful additional features to analyze the message pool handling and memory consuming. >> I think another good way to solve this behavior is to use a circular >> message pool with a fix size. >> >> What do you think from this idea? >A fixed size would be okay, but it might be hard to predict the number >of messages needed for a busy bounday clock. OK. It was only an idea after changing the code. I wish you a nice weekend and good start in the next week. Thanks, Mario |