public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Richard Fish <bigfish@asmallpond.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] clock problems software clock 20x fast
Date: Wed, 14 Dec 2005 19:03:18 -0700	[thread overview]
Message-ID: <7573e9640512141803r799c9225yfbe802d4a58f3fb@mail.gmail.com> (raw)
In-Reply-To: <200512141413.57316.preludelinux@mchsi.com>

On 12/14/05, Noah J Norris <preludelinux@mchsi.com> wrote:
> On Wednesday 14 December 2005 05:39 pm, Richard Fish wrote:
> > 1. Make sure that the first line of /etc/adjtime contains very small
> > values.  In fact, you might just want to replace the first line with
> > "0.0 0 0.0".
> i tried changeing this is this for the hardware clock drift ? i dont have any
> problem with the hardware clock its the software clock thats fast

Oh, you are correct.  Sorry.

> >
> > 2. Take a look at the clock= settings in
> > /usr/src/linux/Documentation/kernel-parameters.txt.  Maybe you need
> > clock=pit.
>
> looking in this file saw some other options that may help the problem.
> i have an ati chipset (newer laptop chipset) ouput of lspci below
>

<snip>

>
> some options i saw in that file that i may try
>
> acpi_skip_timer_override [HW,ACPI]
>                         Recognize and ignore IRQ0/pin2 Interrupt Override.
>                         For broken nForce2 BIOS resulting in XT-PIC timer.
>
> enable_timer_pin_1 [i386,x86-64]
>                         Enable PIN 1 of APIC timer
>                         Can be useful to work around chipset bugs
>                         (in particular on some ATI chipsets).
>                         The kernel tries to set a reasonable default.
>
>         disable_timer_pin_1 [i386,x86-64]
>                         Disable PIN 1 of APIC timer
>                         Can be useful to work around chipset bugs.

I'm not sure these will help.  They seem to be more related to setting
up the frequency for the IRQ0 timer interrupt, for things like running
the scheduler.  This should not be related at all to the behavior of
gettimeofday.

I think if you were getting messages about lost ticks or got extra
ticks or something like that, these might be helpful, or if your
system seemed either to slow or too unresponsive.  Of course, if your
clock is defaulting to TSC (which would be bad, BTW), then I guess
these could have a big impact.

Take a look at dmesg or /var/log/messages for the following lines:

Using TSC for gettimeofday
Using HPET for gettimeofday
Using .* for high-res timesource

These will tell us what signal the kernel is using for gettimeofday on
your system.

-Richard

-- 
gentoo-user@gentoo.org mailing list



  reply	other threads:[~2005-12-15  2:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-14 11:30 [gentoo-user] clock problems software clock 20x fast Noah J Norris
2005-12-14 17:39 ` Richard Fish
2005-12-14 14:13   ` Noah J Norris
2005-12-15  2:03     ` Richard Fish [this message]
2005-12-14 22:26       ` Noah J Norris
2005-12-15  3:04         ` Richard Fish
2005-12-15 16:58           ` Noah J Norris
2005-12-14 23:01 ` William Kenworthy
2005-12-14 19:29   ` Noah J Norris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7573e9640512141803r799c9225yfbe802d4a58f3fb@mail.gmail.com \
    --to=bigfish@asmallpond.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox