lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <8dd980de0808200236g1c77f4e6n1e97339fb3c27e6@mail.gmail.com>
Date:	Wed, 20 Aug 2008 17:36:56 +0800
From:	"Kevin Hao" <haokexin@...il.com>
To:	linux-kernel <linux-kernel@...r.kernel.org>
Cc:	mingo@...hat.com, tglx@...utronix.de
Subject: [x86] apic timer tick interval is not so accurate in periodic mode

Hi all,

I found the apic timer tick interval is not so accurate when it works
in periodic mode(CONFIG_HIGH_RES_TIMERS=N).
But in one-shot mode(CONFIG_HIGH_RES_TIMERS=Y)  it works well.
I tested it on a Dell390 pc. HZ is 250. Kernel version is 2.6.27-rc3.
The following is the result:

In periodic mode:
tick = 1, apic tick timer interval is 4020211
tick = 1, apic tick timer interval is 4020233
tick = 1, apic tick timer interval is 4020233
tick = 1, apic tick timer interval is 4020199
tick = 1, apic tick timer interval is 4020267
tick = 1, apic tick timer interval is 4020218
tick = 1, apic tick timer interval is 4020278
tick = 1, apic tick timer interval is 4020173


In one-shot mode:
tick = 1, apic tick timer interval is 3999930
tick = 1, apic tick timer interval is 4000035
tick = 1, apic tick timer interval is 3999998
tick = 1, apic tick timer interval is 4000005
tick = 1, apic tick timer interval is 4000001
tick = 1, apic tick timer interval is 4000009
tick = 1, apic tick timer interval is 3999945
tick = 1, apic tick timer interval is 4000024
tick = 1, apic tick timer interval is 4000005

Why is there so big difference between these two mode?
The attachment is my test program and config file.
Any comments is appreciated .

Thanks,
Kevin

Download attachment "test.diff" of type "application/octet-stream" (2301 bytes)

Download attachment "config" of type "application/octet-stream" (43584 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ