[ntp:questions] Re: ACTS - too many recvbufs allocated (40) (Correct the Version of ntp-dev)

David L. Mills mills at udel.edu
Wed Feb 9 15:23:05 UTC 2005


Giuseppe,

I'm not surprised. Different Unix systems it seems have different ideas 
on how to chunk the data stream with raw mode. My Solaris systems in 
fact tend to return larger chunks than yours, but that shouldn't be a 
problem. I did increase the buffer size to 256, but I haven't done 
anything about the zero-length buffer apparently returned in some cases. 
That takes changes to the I/O module that I am incompetent to make.

Dave

Giuseppe wrote:

> I've increased the debug level to 2, in order to see the messages of
> the gtraw() routine, and as far as I understand it seems that it works
> fine. This test has been done with tbuff[94] in acts_message() routine
> (the original value was SMAX --> 80).
> Looking in the debug output messages, I see that each character of the
> time code is received with a constant speed (time difference betweent
> two gtraw is about 0.01), and at the end of the data there is a little
> break before the on time marker ("*"), wich one is received across the
> second change. It seems right, since the time code generator start the
> output of the string relative to the second N  at the begennig of N-1,
> then wait the end of N-1 and at the transition N-1 --> N throws the on
> time marker "*".
> I've observed the  debug output for about an hour and I've not noticed
> anythig different from this behaviour.
> In the following you can find the debug messages relative to the first
> string received by the modem. Of course, I'm at disposal to perform
> some other test that could help to better understand the problem.
> 
> Giuseppe.
> 
> 
> acts: dial 0 ATDT263
> refclock_gtraw: fd 8 time 3316924889.075021 timecode 5 
> 
> CON
> refclock_gtraw: fd 8 time 3316924889.084997 timecode 9 NECT 1200
> refclock_gtraw: fd 8 time 3316924889.094997 timecode 7 /NONE
> 
> 
> acts: (3 39) 17 CONNECT 1200/NONE
> refclock_gtraw: fd 8 time 3316924889.104995 timecode 1 
> 
> refclock_gtraw: fd 8 time 3316924889.225000 timecode 1 2
> refclock_gtraw: fd 8 time 3316924889.234998 timecode 1 0
> refclock_gtraw: fd 8 time 3316924889.244994 timecode 2 05
> refclock_gtraw: fd 8 time 3316924889.254994 timecode 1 -
> refclock_gtraw: fd 8 time 3316924889.264995 timecode 1 0
> refclock_gtraw: fd 8 time 3316924889.274998 timecode 1 2
> refclock_gtraw: fd 8 time 3316924889.285001 timecode 1 -
> refclock_gtraw: fd 8 time 3316924889.295016 timecode 2 09
> refclock_gtraw: fd 8 time 3316924889.304995 timecode 1  
> refclock_gtraw: fd 8 time 3316924889.314994 timecode 1 0
> refclock_gtraw: fd 8 time 3316924889.325014 timecode 1 9
> refclock_gtraw: fd 8 time 3316924889.334994 timecode 1 :
> refclock_gtraw: fd 8 time 3316924889.344994 timecode 2 01
> refclock_gtraw: fd 8 time 3316924889.354993 timecode 1 :
> refclock_gtraw: fd 8 time 3316924889.364994 timecode 1 3
> refclock_gtraw: fd 8 time 3316924889.374993 timecode 1 0
> refclock_gtraw: fd 8 time 3316924889.384993 timecode 1  
> refclock_gtraw: fd 8 time 3316924889.394993 timecode 2 CE
> refclock_gtraw: fd 8 time 3316924889.404993 timecode 1 T
> refclock_gtraw: fd 8 time 3316924889.414993 timecode 1  
> refclock_gtraw: fd 8 time 3316924889.424993 timecode 1  
> refclock_gtraw: fd 8 time 3316924889.434993 timecode 1 3
> refclock_gtraw: fd 8 time 3316924889.444993 timecode 2 06
> refclock_gtraw: fd 8 time 3316924889.454993 timecode 1 0
> refclock_gtraw: fd 8 time 3316924889.464993 timecode 1 4
> refclock_gtraw: fd 8 time 3316924889.474992 timecode 1 0
> refclock_gtraw: fd 8 time 3316924889.484992 timecode 1 0
> refclock_gtraw: fd 8 time 3316924889.494992 timecode 2 00
> refclock_gtraw: fd 8 time 3316924889.504992 timecode 1 0
> refclock_gtraw: fd 8 time 3316924889.514992 timecode 1 0
> refclock_gtraw: fd 8 time 3316924889.524992 timecode 1 0
> refclock_gtraw: fd 8 time 3316924889.534992 timecode 1 2
> refclock_gtraw: fd 8 time 3316924889.544993 timecode 2 00
> refclock_gtraw: fd 8 time 3316924889.554992 timecode 1 5
> refclock_gtraw: fd 8 time 3316924889.564992 timecode 1 0
> refclock_gtraw: fd 8 time 3316924889.574992 timecode 1 2
> refclock_gtraw: fd 8 time 3316924889.584992 timecode 1 0
> refclock_gtraw: fd 8 time 3316924889.594992 timecode 2 90
> refclock_gtraw: fd 8 time 3316924889.604991 timecode 1 8
> refclock_gtraw: fd 8 time 3316924889.614993 timecode 1 0
> refclock_gtraw: fd 8 time 3316924889.624991 timecode 1 1
> refclock_gtraw: fd 8 time 3316924889.634992 timecode 1 5
> refclock_gtraw: fd 8 time 3316924889.644991 timecode 2 34
> refclock_gtraw: fd 8 time 3316924889.654991 timecode 1 1
> refclock_gtraw: fd 8 time 3316924889.664991 timecode 1 0
> refclock_gtraw: fd 8 time 3316924889.674991 timecode 1 -
> refclock_gtraw: fd 8 time 3316924889.684993 timecode 1 5
> refclock_gtraw: fd 8 time 3316924889.694991 timecode 2 +0
> refclock_gtraw: fd 8 time 3316924889.704995 timecode 1 0
> refclock_gtraw: fd 8 time 3316924889.714999 timecode 1 0
> refclock_gtraw: fd 8 time 3316924889.725014 timecode 1 7
> refclock_gtraw: fd 8 time 3316924889.734993 timecode 1 0
> refclock_gtraw: fd 8 time 3316924889.744991 timecode 2  -
> refclock_gtraw: fd 8 time 3316924889.754990 timecode 1 -
> refclock_gtraw: fd 8 time 3316924889.764990 timecode 1 -
> refclock_gtraw: fd 8 time 3316924889.774990 timecode 1 -
> refclock_gtraw: fd 8 time 3316924889.784990 timecode 1 -
> refclock_gtraw: fd 8 time 3316924889.794990 timecode 2 --
> refclock_gtraw: fd 8 time 3316924889.804990 timecode 1 -
> refclock_gtraw: fd 8 time 3316924889.814990 timecode 1 -
> refclock_gtraw: fd 8 time 3316924889.824990 timecode 1 -
> refclock_gtraw: fd 8 time 3316924889.834990 timecode 1 -
> refclock_gtraw: fd 8 time 3316924889.844990 timecode 2 --
> refclock_gtraw: fd 8 time 3316924889.854992 timecode 1 -
> refclock_gtraw: fd 8 time 3316924890.085019 timecode 1 *
> refclock_gtraw: fd 8 time 3316924890.094990 timecode 1 
> 
> acts: (4 19) 78 2005-02-09 09:01:30 CET 
> 30604000000020050209080153410-5+00070 --------------*
> refclock_receive: at 26 127.127.18.1
> addto_syslog: clock ACTS_MODEM(1) event 'clk_fault' (0x03)
> peer ACTS_MODEM(1) event 'event_reach' (0x84) status 'unreach, conf, 1
> event, event_reach' (0x8014)
> refclock_sample: n 1 offset -0.085019 disp 0.000000 jitter 0.000001
> clock_filter: popcorn 0.085019 0.000390
> refclock_gtraw: fd 8 time 3316924890.104994 timecode 1 
> 
> refclock_gtraw: fd 8 time 3316924890.224988 timecode 1 2
> refclock_gtraw: fd 8 time 3316924890.234987 timecode 1 0
> refclock_gtraw: fd 8 time 3316924890.244988 timecode 2 05
> refclock_gtraw: fd 8 time 3316924890.254987 timecode 1 -
> refclock_gtraw: fd 8 time 3316924890.264988 timecode 1 0
> refclock_gtraw: fd 8 time 3316924890.274986 timecode 1 2
> refclock_gtraw: fd 8 time 3316924890.284986 timecode 1 -
> refclock_gtraw: fd 8 time 3316924890.294994 timecode 2 09
> refclock_gtraw: fd 8 time 3316924890.305009 timecode 1  
> refclock_gtraw: fd 8 time 3316924890.314987 timecode 1 0
> refclock_gtraw: fd 8 time 3316924890.325006 timecode 1 9
> refclock_gtraw: fd 8 time 3316924890.334987 timecode 1 :
> refclock_gtraw: fd 8 time 3316924890.344986 timecode 2 01
> refclock_gtraw: fd 8 time 3316924890.354987 timecode 1 :
> refclock_gtraw: fd 8 time 3316924890.364986 timecode 1 3
> refclock_gtraw: fd 8 time 3316924890.374986 timecode 1 1
> refclock_gtraw: fd 8 time 3316924890.384986 timecode 1  
> refclock_gtraw: fd 8 time 3316924890.394986 timecode 2 CE
> refclock_gtraw: fd 8 time 3316924890.404985 timecode 1 T
> refclock_gtraw: fd 8 time 3316924890.414986 timecode 1  
> refclock_gtraw: fd 8 time 3316924890.424985 timecode 1  
> refclock_gtraw: fd 8 time 3316924890.434985 timecode 1 3
> refclock_gtraw: fd 8 time 3316924890.444986 timecode 2 06
> refclock_gtraw: fd 8 time 3316924890.454985 timecode 1 0
> refclock_gtraw: fd 8 time 3316924890.464986 timecode 1 4
> refclock_gtraw: fd 8 time 3316924890.474985 timecode 1 0
> refclock_gtraw: fd 8 time 3316924890.484986 timecode 1 0
> refclock_gtraw: fd 8 time 3316924890.494988 timecode 2 00
> refclock_gtraw: fd 8 time 3316924890.504993 timecode 1 0
> refclock_gtraw: fd 8 time 3316924890.514985 timecode 1 0
> refclock_gtraw: fd 8 time 3316924890.524985 timecode 1 0
> refclock_gtraw: fd 8 time 3316924890.534985 timecode 1 2
> refclock_gtraw: fd 8 time 3316924890.544984 timecode 2 00
> refclock_gtraw: fd 8 time 3316924890.554989 timecode 1 5
> refclock_gtraw: fd 8 time 3316924890.564984 timecode 1 0
> refclock_gtraw: fd 8 time 3316924890.574984 timecode 1 2
> refclock_gtraw: fd 8 time 3316924890.584984 timecode 1 0
> refclock_gtraw: fd 8 time 3316924890.594984 timecode 2 90
> refclock_gtraw: fd 8 time 3316924890.604984 timecode 1 8
> refclock_gtraw: fd 8 time 3316924890.614984 timecode 1 0
> refclock_gtraw: fd 8 time 3316924890.624984 timecode 1 1
> refclock_gtraw: fd 8 time 3316924890.634984 timecode 1 5
> refclock_gtraw: fd 8 time 3316924890.644984 timecode 2 34
> refclock_gtraw: fd 8 time 3316924890.654984 timecode 1 1
> refclock_gtraw: fd 8 time 3316924890.664983 timecode 1 0
> refclock_gtraw: fd 8 time 3316924890.674983 timecode 1 -
> refclock_gtraw: fd 8 time 3316924890.684987 timecode 1 5
> refclock_gtraw: fd 8 time 3316924890.694984 timecode 2 +0
> refclock_gtraw: fd 8 time 3316924890.704983 timecode 1 0
> refclock_gtraw: fd 8 time 3316924890.714987 timecode 1 0
> refclock_gtraw: fd 8 time 3316924890.724990 timecode 1 7
> refclock_gtraw: fd 8 time 3316924890.735006 timecode 1 0
> refclock_gtraw: fd 8 time 3316924890.744984 timecode 2  C
> refclock_gtraw: fd 8 time 3316924890.754983 timecode 1 T
> refclock_gtraw: fd 8 time 3316924890.764983 timecode 1 D
> refclock_gtraw: fd 8 time 3316924890.774983 timecode 1  
> refclock_gtraw: fd 8 time 3316924890.784984 timecode 1 I
> refclock_gtraw: fd 8 time 3316924890.794984 timecode 2 EN
> refclock_gtraw: fd 8 time 3316924890.804982 timecode 1  
> refclock_gtraw: fd 8 time 3316924890.814982 timecode 1 T
> refclock_gtraw: fd 8 time 3316924890.824982 timecode 1 O
> refclock_gtraw: fd 8 time 3316924890.835002 timecode 1 R
> refclock_gtraw: fd 8 time 3316924890.844984 timecode 2 IN
> refclock_gtraw: fd 8 time 3316924890.854982 timecode 1 O
> refclock_gtraw: fd 8 time 3316924891.085040 timecode 1 *
> refclock_gtraw: fd 8 time 3316924891.095023 timecode 1 
> 
> acts: (5 29) 78 2005-02-09 09:01:31 CET 
> 30604000000020050209080153410-5+00070 CTD IEN TORINO*
> refclock_receive: at 27 127.127.18.1
> refclock_sample: n 1 offset -0.085040 disp 0.000000 jitter 0.000001
> clock_filter: n 2 off -0.085040 del 0.000000 dsp 3.937504 jit
> 0.000021, age 1
> 
> 
> ...
> 
> acts: (5 27) 78 2005-02-09 09:01:33 CET 
> 30604000000020050209080153410-5+00070  Dal 1 gennaio*
> refclock_receive: at 29 127.127.18.1
> refclock_sample: n 1 offset -0.084981 disp 0.000000 jitter 0.000001
> clock_filter: n 4 off -0.084981 del 0.000000 dsp 0.937511 jit
> 0.000041, age 1
> select: combine offset -0.084981
> report_event: system event 'event_peer/strat_chg' (0x04) status
> 'sync_alarm, sync_telephone, 2 events, event_restart' (0xc921)
> addto_syslog: synchronized to ACTS_MODEM(1), stratum 0
> poll_update: at 29 127.127.18.1 flags 0061 poll 6 burst 0 last 1 next
> 67
> clock_update: at 29 assoc 1 
> local_clock: assocID 29084 offset -0.084981000 freq -7.483 state 1
> local_clock: time 28 base 0.000000 offset -0.084981 freq -7.483 state
> 4
> addto_syslog: kernel time sync disabled 0041
> local_clock: mu 28 jitr 0.042490 freq -7.483 stab 0.000007 poll 6
> count 6
> report_event: system event 'event_sync_chg' (0x03) status 'leap_none,
> sync_telephone, 3 events, event_peer/strat_chg' (0x934)
> report_event: system event 'event_peer/strat_chg' (0x04) status
> 'leap_none, sync_telephone, 4 events, event_sync_chg' (0x943)
> select: combine offset -0.084981
> poll_update: at 29 127.127.18.1 flags 0061 poll 6 burst 0 last 1 next
> 66
> 
> 
> 
> 
> "David L. Mills" <mills at udel.edu> wrote in message news:<cu9dgl$ov2$1 at dewey.udel.edu>...
> 
>>Giuseppe,
>>
>>Can you spot me on the gtraw() and gtlin() routines in ntp_refclock.c? 
>>That's a nasty bit of code and it's easy to make bugs.
>>
>>Dave
>>



More information about the questions mailing list