NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/45626: System time does not advance correctly when noatime is specified for /var



The following reply was made to PR kern/45626; it has been noted by GNATS.

From: christos%zoulas.com@localhost (Christos Zoulas)
To: gnats-bugs%NetBSD.org@localhost, kern-bug-people%netbsd.org@localhost, 
        gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost, 
donaldcallen%gmail.com@localhost
Cc: 
Subject: Re: kern/45626: System time does not advance correctly when noatime is 
specified for /var
Date: Fri, 18 Nov 2011 14:13:11 -0500

 On Nov 18,  6:50pm, donaldcallen%gmail.com@localhost (Donald Allen) wrote:
 -- Subject: Re: kern/45626: System time does not advance correctly when noati
 
 |  I'd also like to mention that I've had this machine for a few years
 |  now, and, in addition to Linux, I have tried OpenBSD and FreeBSD on it
 |  (both of which were abandoned for good reasons, which I won't go into
 |  here). I had no problems with time-keeping with them, either. So
 |  you've got a couple of BSD references, in addition to Linux, for ideas
 |  on working around the TSC issue.
 |  
 |  Again, thanks very much for your help.
 
 This might help:
 
 christos
 
 Index: tsc.c
 ===================================================================
 RCS file: /cvsroot/src/sys/arch/x86/x86/tsc.c,v
 retrieving revision 1.30
 diff -u -u -r1.30 tsc.c
 --- tsc.c      8 Aug 2011 17:00:23 -0000       1.30
 +++ tsc.c      18 Nov 2011 19:11:53 -0000
 @@ -141,6 +141,11 @@
                    (long long)tsc_drift_observed);
                tsc_timecounter.tc_quality = -100;
                safe = false;
 +      } else if (tsc_freq > 16ULL * 1024 * 1024 * 1024) {
 +              aprint_error("ERROR: TSC reported %llu Hz; frequency too 
high\n",
 +                  (unsigned long long)tsc_freq);
 +              tsc_timecounter.tc_quality = -100;
 +              safe = false;
        }
  
        if (tsc_freq != 0) {
 


Home | Main Index | Thread Index | Old Index