9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] why not halt in x86 multicore
Date: Fri,  1 Jul 2011 14:01:28 -0400	[thread overview]
Message-ID: <bb78dd1fd32a508d375ac34343222402@ladd.quanstro.net> (raw)
In-Reply-To: <BANLkTimi9--KwDHY7u0KCpZO_6B5n6bEwg@mail.gmail.com>

>
> interprocessor interrupts are the obvious solution
> but no one has bothered to implement them.
>

i almost mentioned this, and it's on my list.  i just haven't
had the time.  it turns out that a naive implementation of
ipi'ing 1 proc per wakeup will have to watch out for the
same races that bedeviled multiprocessor sleep/wakeup.

the really naive solution of waking 'em all up is a very
bad idea because you'll have n-1 procs duking it out
over the run queue.

perhaps i just ignorant of the standard solution.
or perhaps the sleep/wakeup model isn't the right one
for the situation.

- erik



  reply	other threads:[~2011-07-01 18:01 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-01 14:00 Henning Schild
2011-07-01 17:23 ` erik quanstrom
2011-07-01 17:47   ` Ali Mashtizadeh
2011-07-01 17:51     ` Russ Cox
2011-07-01 18:01       ` erik quanstrom [this message]
2011-07-01 18:35         ` Bakul Shah
2011-07-02  5:06           ` Venkatesh Srinivas
2011-07-04  9:24   ` Henning Schild
2011-07-04  9:54     ` Sape Mullender
2011-07-04 13:02     ` erik quanstrom
2011-07-04 13:13       ` Steve Simon
2011-07-04 13:43         ` erik quanstrom
2011-07-04 13:47         ` Steve Simon

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=bb78dd1fd32a508d375ac34343222402@ladd.quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    /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 NNTP newsgroup(s).