From: Blaisorblade <blaisorblade@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: Jeff Dike <jdike@addtoit.com>, Can Sar <csar@stanford.edu>
Subject: Re: [uml-devel] Making UML Single Threader
Date: Tue, 8 Nov 2005 17:10:28 +0100 [thread overview]
Message-ID: <200511081710.28618.blaisorblade@yahoo.it> (raw)
In-Reply-To: <20051108154310.GA4131@ccure.user-mode-linux.org>
On Tuesday 08 November 2005 16:43, Jeff Dike wrote:
> On Mon, Nov 07, 2005 at 09:13:19PM -0800, Can Sar wrote:
> > Do the other threads (particularly the user thread) ever
> > do something else that would be important?
>
> The user thread doesn't. The IO thread does, if you wish to do IO.
Since he needs to be _really_ single-threaded (and he may very possibly be
trying to run something like Valgrind on UML) he may even run UBD without the
I/O thread.
The code still exists, even if some bugs may have crept in since 2.6.9 (guess
not, there has been no major rework). Basically, if io_thread_pid == -1, the
code instead to to asynchronous I/O via this separate thread, does directly
I/O by itself.
For normal usage, it's a bad idea - UML won't be able to schedule another
thread until completion of that I/O request (much like green-threads do when
implemented the simple way). Btw, usage of sigjmp()/longjmp() (between kernel
threads) is actually green-threads said another way (like Jeff said below).
Btw, even userspace programs have a "stub" in the kernelspace thread.
In that case, through, it's just userspace(): an infinite loop running ptrace
to intercept and nullify syscalls and segfaults, basically.
> And you can easily dispense with the sigio emulation thread.
> > Furthermore is the actual kernel process multi threaded?
>
> It does what amounts to user-level threads - i.e. there are multiple
> execution contexts in it, implemented with setjmp/longjmp, but that's
> not visible from the outside.
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2005-11-08 16:09 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-06 23:23 [uml-devel] Does UML 2.6.14 work under x86-64? Rob Landley
2005-11-07 16:25 ` Jeff Dike
2005-11-07 19:32 ` Blaisorblade
2005-11-07 14:38 ` David Lang
2005-11-07 19:44 ` Blaisorblade
2005-11-08 0:53 ` Rob Landley
2005-11-07 14:47 ` David Lang
2005-11-07 15:30 ` David Lang
2005-11-08 3:39 ` Rob Landley
2005-11-08 5:13 ` [uml-devel] Making UML Single Threader Can Sar
2005-11-08 7:09 ` Rob Landley
2005-11-08 7:44 ` Can Sar
2005-11-09 0:35 ` Rob Landley
2005-11-09 0:48 ` Blaisorblade
2005-11-09 1:17 ` Rob Landley
2005-11-09 1:31 ` Blaisorblade
2005-11-09 3:18 ` Rob Landley
2005-11-10 4:18 ` Jeff Dike
2005-11-10 4:58 ` Rob Landley
2005-11-10 6:23 ` Henrik Nordstrom
2005-11-10 4:07 ` Jeff Dike
2005-11-10 3:55 ` Rob Landley
2005-11-08 15:46 ` Jeff Dike
2005-11-09 0:27 ` Rob Landley
2005-11-14 13:59 ` Nix
2005-11-14 19:37 ` Blaisorblade
2005-11-14 20:00 ` Nix
2005-11-14 20:05 ` Geert Uytterhoeven
2005-11-15 11:39 ` Henrik Nordstrom
2005-11-16 1:23 ` Rob Landley
2005-11-08 16:13 ` Blaisorblade
2005-11-09 0:51 ` Rob Landley
2005-11-08 15:43 ` Jeff Dike
2005-11-08 16:10 ` Blaisorblade [this message]
2005-11-08 19:11 ` Can Sar
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=200511081710.28618.blaisorblade@yahoo.it \
--to=blaisorblade@yahoo.it \
--cc=csar@stanford.edu \
--cc=jdike@addtoit.com \
--cc=user-mode-linux-devel@lists.sourceforge.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