From: Con Kolivas <kernel@kolivas.org>
To: Gabriel Devenyi <ace@staticwave.ca>
Cc: ck@vds.kolivas.org, linux-kernel@vger.kernel.org
Subject: Re: [ck] [ANNOUNCE] Interbench 0.27
Date: Sat, 6 Aug 2005 14:59:58 +1000 [thread overview]
Message-ID: <200508061459.58945.kernel@kolivas.org> (raw)
In-Reply-To: <200508052337.55270.ace@staticwave.ca>
On Sat, 6 Aug 2005 13:37, Gabriel Devenyi wrote:
> After conducting some further research I've determined that cool n quiet
> has no effect on this "bug" if you can call it that. With the system
> running in init 1, and cool n quiet disabled in the bios, a sleep(N>0)
> results in the run_time value afterwards always being nearly the same value
> of ~995000 on my athlon64, similarly, my server an athlon-tbird, which
> definitely has no power saving features, hovers at ~1496000
We know that sleep(1) doesn't give us accurate sleep of 1 second, only close
to it limited by Hz, schedule_timeout and how busy the kernel otherwise is.
> Obviously since these values are nowhere near 10000, the loops_per_ms
> benchmark runs forever, has anyone seen/read about sleep on amd machines
> doing something odd? Can anyone else with an amd machine confirm this
> behavior? Con: should we attempt to get the attention of LKML to see why
> amd chips act differently?
None of that matters because the timing is done during a non sleep period
using the real time clock:
start_time = get_nsecs(&myts);
burn_loops(loops);
run_time = get_nsecs(&myts) - start_time;
So the time spent in sleep(1) should be irrelevant to the timing of
loops_per_ms. Something else is happening to the cpu _during_ the sleep that
makes the next lot of loops take a different length of time. That's the bit I
haven't been able to figure out.
Cheers,
Con
next prev parent reply other threads:[~2005-08-06 5:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-03 7:58 [ANNOUNCE] Interbench v0.26 Con Kolivas
2005-08-03 12:01 ` [ck] " Gabriel Devenyi
2005-08-03 12:03 ` Con Kolivas
2005-08-03 23:25 ` Peter Williams
2005-08-03 23:25 ` Con Kolivas
2005-08-03 23:34 ` Con Kolivas
2005-08-04 0:04 ` [ANNOUNCE] Interbench 0.27 Con Kolivas
2005-08-04 11:44 ` [ck] " Gabriel Devenyi
2005-08-04 11:46 ` Con Kolivas
2005-08-04 12:05 ` Gabriel Devenyi
2005-08-04 12:04 ` Con Kolivas
2005-08-04 12:19 ` Gabriel Devenyi
2005-08-06 3:37 ` Gabriel Devenyi
2005-08-06 4:59 ` Con Kolivas [this message]
2005-08-10 20:45 ` Bill Davidsen
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=200508061459.58945.kernel@kolivas.org \
--to=kernel@kolivas.org \
--cc=ace@staticwave.ca \
--cc=ck@vds.kolivas.org \
--cc=linux-kernel@vger.kernel.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