From: Micah Stetson <micah@cnm-vra.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] plan9ports to NetBSD
Date: Tue, 7 Dec 2004 10:37:55 -0800 [thread overview]
Message-ID: <20041207183755.GA18071@epaphras> (raw)
In-Reply-To: <20041207182242.GB21003@mero.morphisms.net>
> > I can get most of the way there, but
> > <sched.h>
> > and
> > sched_yield()
> > concern me. The former seems quite unrelated to the 9ports altogether
> > and the latter does not appear in NetBSD (1.6.1, nearly up to date) at
> > all.
>
> What do you mean by ``unrelated''? As I recall it is there so that
> the lock routines can yield the processor. I expect that sleep() is
> sufficient, but it is there for a reason.
I don't know if this will help, but in attempting an
Inferno port to NetBSD a few months ago, replacing
sched_yield() with sleep(0) did weird things to interactive
performance. I don't recall the exact symptoms, but I
remember it made the system (at least the GUI) a pain to
use. At the time, I asked about alternatives on NetBSD's
tech-kern mailing list and was told that sched_yield()
was implemented in -current.
http://mail-index.netbsd.org/tech-kern/2004/03/10/0019.html
After that, my free time disappeared, so I haven't played
with it since.
Micah
next prev parent reply other threads:[~2004-12-07 18:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-07 9:03 Lucio De Re
2004-12-07 18:22 ` William Josephson
2004-12-07 18:37 ` Micah Stetson [this message]
2004-12-08 3:55 ` Lucio De Re
2004-12-07 17:09 Richard C Bilson
2004-12-07 17:27 ` Lucio De Re
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=20041207183755.GA18071@epaphras \
--to=micah@cnm-vra.com \
--cc=9fans@cse.psu.edu \
/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).