From: Blaisorblade <blaisorblade@yahoo.it>
To: Jeff Dike <jdike@addtoit.com>
Cc: user-mode-linux-devel@lists.sourceforge.net,
Young Koh <young.koh@gmail.com>
Subject: Re: [uml-devel] a question about sigsetjmp() in copy_from/to_user()
Date: Sun, 2 Oct 2005 12:23:14 +0200 [thread overview]
Message-ID: <200510021223.15115.blaisorblade@yahoo.it> (raw)
In-Reply-To: <20051002010315.GA4778@localhost.localdomain>
On Sunday 02 October 2005 03:03, Jeff Dike wrote:
> On Thu, Sep 29, 2005 at 02:09:27PM +0200, Blaisorblade wrote:
> > Again, that page is not bad. There is no page yet for this address, and
> > the host won't allocate one for now.
> It is bad in the sense that, unless some space is freed on that mount, a
> reference to the page will always fault.
Sorry, any reference will fault, unless it is done on a allocated present
page, which the UML kernel freed but the host didn't. And remember, btw,
you've planned to make this impossible...
> > Ok, this makes a bit of sense, even if IMHO it doesn't work, I now see
> > your point (but I still insist with what said above).
> Explain why it doesn't work.
Below.
> > However, even a dirtied page could be "bad", if it has been swapped. If
> > we're getting a SIGBUS, it meant that it didn't succeed in freeing any
> > memory.
> No it can't. A swapped page still counts as occupying space in the
> filesystem. If a page was successfully allocated, then accesses to it will
> always succeed, even if it needs to be swapped in.
Sorry, Jeff, which page are you going to evict? It can be a dirty page. Unless
you mean that since that page is still accounted in the FS, Linux will leave
a RAM page free to allow it to be re-read, while still swapping the page.
You didn't obviously mean this absurdity (why swap it in first place), but I
don't catch what's missing to you.
> > And, frankly, unless the UML ram file is kept on ramfs (which is
> > RAM-only), it can be swapped (both for disk-based filesystem and for
> > tmpfs). So, I don't think what you suggest could work.
> Swapping makes no difference.
Realoding pages means freeing RAM to leave place to them.
--
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! Messenger: chiamate gratuite in tutto il mondo
http://it.messenger.yahoo.com
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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-10-02 23:46 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-27 14:06 [uml-devel] a question about sigsetjmp() in copy_from/to_user() Young Koh
2005-09-27 17:28 ` Jeff Dike
2005-09-28 11:59 ` Blaisorblade
2005-09-28 13:47 ` Young Koh
2005-09-28 14:50 ` Jeff Dike
2005-09-28 19:25 ` Young Koh
2005-09-29 12:09 ` Blaisorblade
2005-09-30 15:08 ` Young Koh
2005-09-30 15:44 ` Geert Uytterhoeven
2005-10-02 1:03 ` Jeff Dike
2005-10-02 10:23 ` Blaisorblade [this message]
2005-10-02 18:31 ` Jeff Dike
2005-10-03 18:35 ` Blaisorblade
2005-10-03 20:38 ` Jeff Dike
2005-09-28 16:09 ` Jeff Dike
2005-09-28 17:26 ` Blaisorblade
2005-09-28 18:43 ` Jeff Dike
2005-09-28 8:41 ` Blaisorblade
2005-09-28 14:22 ` Young Koh
2005-09-28 16:43 ` Blaisorblade
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=200510021223.15115.blaisorblade@yahoo.it \
--to=blaisorblade@yahoo.it \
--cc=jdike@addtoit.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
--cc=young.koh@gmail.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