public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Jonathan Larmour <jlarmour@redhat.com>
To: Andrea Acquaviva <aacquaviva@deis.unibo.it>
Cc: "ecos-discuss@sources.redhat.com" <ecos-discuss@sources.redhat.com>
Subject: Re: [ECOS]thread switch frequency
Date: Fri, 20 Apr 2001 02:23:00 -0000	[thread overview]
Message-ID: <3AE00009.2BC3F600@redhat.com> (raw)
In-Reply-To: <3ADFFA65.CC964CFF@deis.unibo.it>

Andrea Acquaviva wrote:
> 
> Hi,
> I have a question about eCos mlqueue scheduler.
> If there are two threads (making a matrix multiplication), running with
> the same priority, they switch with a frequency given by:
> 
> f_clock/CYGNUM_KERNEL_SCHED_TIMESLICE_TICKS,
> 
> where f_clock in the case of strongarm1110 (assabet) is 3.6864MHz.
> 
> Is this correct or is there something else that affects the switching
> frequency?

The timer that drives the kernel clock interrupt is at 3.6864MHz yes, but
it is has been programmed to only actually interrupt when its counter
reaches 36864, which corresponds to every 10ms. And only 1 in
CYGNUM_KERNEL_SCHED_TIMESLICE_TICKS of those causes a timeslice.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

      reply	other threads:[~2001-04-20  2:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-20  1:59 Andrea Acquaviva
2001-04-20  2:23 ` Jonathan Larmour [this message]

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=3AE00009.2BC3F600@redhat.com \
    --to=jlarmour@redhat.com \
    --cc=aacquaviva@deis.unibo.it \
    --cc=ecos-discuss@sources.redhat.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).