Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Weird system date in RH-Linux after running DEC Unix
@ 1999-01-26 12:11 Dr. Andreas S. Tomiak
  1999-01-26 16:42 ` Michal Jaegermann
  0 siblings, 1 reply; 2+ messages in thread
From: Dr. Andreas S. Tomiak @ 1999-01-26 12:11 UTC (permalink / raw)
  To: axp-list

Hello Linuxers,

I've seen a weird problem with Redhat 5.2 (Apollo):

My Hardware:
Miata (Digital Personal WorkStation 433au)

1. Boot Digital Unix 4.0c
2. The system date (software and hardware clock) will be set by ntpdate
3. Boot Redhat Linux 5.2 (with original Kernel or 2.2.0-final)
4. Have a look to the system date: Same month, day but for 1999 the year is set
to 1910 (software-clock, displayed with date) or 2047 (hardware-clock,
displayed with /sbin/clock).

After some minutes the system will become difficulties in using rpc-services,
ypcat gets timeouts and mounts don't work either. If I set the software-clock
to the correct year the system will recover and act as wanted.
The output from the two clocks were:

[root@dahlie dat]# date
Tue Jan 26 13:07:48 MET 1999
[root@dahlie dat]# /sbin/clock
Sat Jan 26 12:07:06 2047


(The hardware clock should run with GMT). The Difference between 1910 and 2047
might be a result of the limited bit size of the internal Unix-time. On our
other Linux-Alpha (a Sable) I haven't seen this problem. The greatest annoyance
are the resulting weird network problems, not the wrong year itself.

Any clues or workarounds?

Andreas


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Weird system date in RH-Linux after running DEC Unix
  1999-01-26 12:11 Weird system date in RH-Linux after running DEC Unix Dr. Andreas S. Tomiak
@ 1999-01-26 16:42 ` Michal Jaegermann
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Jaegermann @ 1999-01-26 16:42 UTC (permalink / raw)
  To: tomiak; +Cc: axp-list

Dr. Andreas S. Tomiak wrote:
> 
> 1. Boot Digital Unix 4.0c
.....
> 
> (The hardware clock should run with GMT). The Difference between 1910 and 2047
> might be a result of the limited bit size of the internal Unix-time.

This is hardly likely.  On Alpha time_t is a 64-bit type.  Watch this
(on Linux-Alpha, of course):

$ perl -e 'print (scalar gmtime 2**55, "\n")'
Sun Jun 13 06:26:08 1141709097
$ perl -e 'print (scalar gmtime -2**55, "\n")'
Sun Jul 20 17:33:52 -1141705158

The range is indeed limited but I would worry about few other things
first before bumping into limits of that sort. :-)  This range is
actually wider but you run into Perl argument/types handling if you
would like print bigger values in such simple manner as above.

Have you, by any chance, have set your clock type to ARC in
/etc/sysconfig/clock?  If you are double-booting with DU then you
have SRM console, right?  'clock' program is supposed to be "smart" on
5.2 but maybe you have old binaries, or a new binary does not work
like it is supposed to on your hardware?

> The greatest annoyance
> are the resulting weird network problems, not the wrong year itself.

Lot of things will go haywire with a weird clock when time stamps
are not monotonically increasing.

  Michal


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-01-26 17:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-26 12:11 Weird system date in RH-Linux after running DEC Unix Dr. Andreas S. Tomiak
1999-01-26 16:42 ` Michal Jaegermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox