drm/linux: Add io_schedule_timeout()
[dragonfly.git] / usr.sbin / timed / timed / CHANGES
1 #       @(#)CHANGES     5.1 (Berkeley) 5/11/93
2 # $FreeBSD: src/usr.sbin/timed/timed/CHANGES,v 1.1.1.1.14.1 2001/07/19 05:22:36 kris Exp $
3 # $DragonFly: src/usr.sbin/timed/timed/CHANGES,v 1.2 2003/06/17 04:30:03 dillon Exp $
4
5 This new version is almost identical to the timed and timedc code
6 that has been shipped for years by a workstation vendor.
7
8 Among the many changes:
9
10 improve `timedc msite` to accept a list of hostnames.
11
12 change slave-masters to answer the packets generated by `timedc msite`
13     with the name of the real master, not their own.  This makes it
14     possible to "chase the chain" of slave servers to the ultimate
15     master.
16
17 much improve the log caused by `timedc trace on`:
18     -made `timed -t` work.
19     -suppression of repeated entries, which both slowed down the daemon
20         (sometimes catastrophically) and tended to make disks fill up
21         even more quickly.
22     -better time stamps on log entries
23     -more messages
24     -dump information about slaves, master, and so on each time
25         a message asking the log be turned on is received, and
26         when the log is turned off.
27     -fewer CPU cycles
28
29 use a hash table to keep track of slaves, instead of the stupid linear
30     list.  This becomes handy with hundreds of slaves, instead of
31     the original design limit of "a room with a few VAX's."
32
33 separate the main protocol timer from that used to look for other networks
34     to master.
35
36 time stamp packets received by the daemon, so that time corrections
37     are not made (even more) inaccurate by waiting in the internal,
38     timed queue while the daemon is processing other messages.
39
40 made -n and -i work with subnets not named in /etc/networks
41
42 compute the median of the measured clocks, instead of the average
43     of "good" times.
44
45 vastly improve the accuracy of the clock difference measure by 
46     `timedc clockdiff`.
47
48 use adjtime() when possible, and directly set the clock only when
49     necessary.
50
51 when the requested adjustment is small, perform only part of it, to
52     damp oscillations and improve the long term accuracy of the
53     adjustments.
54
55 fix uncounted core-dumps on machines that do not allow dereferencing 0
56     in both the daemon and timedc.
57
58 fix "master loop detection".
59
60 fix several cases in which multi-homed masters could get into shouting 
61     matches, consuming all available network bandwidth and CPU cycles
62     (which ever runs out first), and convincing all bystanders to stop
63     advancing their own clocks.
64
65 refuse to behave badly when other machines do.  Instead of arguing forever,
66     go off and sulk when other machines refuse to play by the rules.
67
68 increase the maximum number of clients.
69
70 add "-F host,host2,..." to "freerun" or "trust" only some hosts.  This
71     is handy both when only some machines should be trusted to let
72     root use the `date` command to change time in the network.
73
74     It is also handy when one machine has some other way of adjusting
75     its clock, whether NTP or a direct radio or atomic connection.
76     "-F localhost" causes `timed` to "trust" only itself.
77
78     It is also handy to build a hierarchy of timed masters crossing
79     networks.  The TSP protocol has no provision of "goodness of clock",
80     no natural way to completely heal network paritions.  Judicious
81     use of -F or -G can cause each gateway to trust only itself and
82     machines closer to a central machine with a radio or atomic clock.
83
84 add #ifdef code that supports NIS "netgroups" of trusted hosts, which
85     can be easier to administer than -F.
86
87 add #ifdef code to compute an aged total adjustment.  This can be used
88     in systems that can make long term changes in their system clock
89     frequency, e.g. "timetrim" in the Silicon Graphics kernel.
90
91
92 Problems observed by others that are unresolved include:
93
94 Practically any users can send to the master TSP messages and this
95         way corrupt the reliability of the system.  Authentication
96         of messages should be provided.  Unfortunately, that would
97         require changing the protocol with all of the implied
98         compatiblity problems.  Fortunately, the new -F and -G args
99         can be used to cause the daemon to ignore time changes from
100         untrusted machines.
101
102 MAN.    The limit of 1013 on the number of slaves hosts should be doc'ed.
103
104         It should be dynamically allocated with no limit.  On a
105         large network, one host could possibly master over many
106         more than 30 hosts.   Given the timers in the code and
107         effectively in the protocol, and the time required by each
108         master to talk to each slave, it is not practical to have
109         more than 200-300 slaves.  The master cannot keep up because
110         the slave-chatting is single-threaded.  when the master
111         gets behind, slaves start demanding elections.  To
112         significantly increase the number of slaves would require
113         multi-treading things, and given that a network with more
114         than 300 directly addressable machines has worse problems
115         than keep the time of day right, not worth worrying about.
116
117 UGLY,CODE. timedc/cmds.c has a lots of repeated code in it.
118
119 ****    The first thing is that each command is set up as if it
120         were an individual program taking argc and argv.  A more
121         conventional calling style should be used.  I don't think
122         any of the routines take more than a couple arguments.
123
124 UGLY.   fxn definition syntax does't follow convention:
125         has type on same line.
126
127 ****    It needs to be fixed at least enough that tags
128         will work on it.  An entire cleanup might be nice later, but
129         is noncritical.
130
131 LOBBY(mildly),CODE:     Would be very convenient if date(1) took a
132         +-<number> argument to set the time relatively.  With
133         the advent of timed it is now reasonable to synchronize
134         with WWV, which is nearly impossible to do "by hand"
135         with just an absolute date, and scripts are too slow.
136         format could be +-nn...nn.ss, where the '.' is required
137         to remove ambiguity.
138
139 ****    If you want to do it go ahead.  It sounds useful.  As far as
140         syntax goes, the normal format for the date should work just
141         fine for this.  If the date is preceded by a plus or minus,
142         the change is relative, otherwise it is absolute.
143
144
145 Vernon Schryver.
146 vjs@sgi.com