All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Landley <rob@landley.net>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: "Vaibhav Sharma, Noida" <Vaibhavs@noida.hcltech.com>
Subject: Re: [uml-devel] memory
Date: Mon, 24 Jan 2005 07:43:48 -0500	[thread overview]
Message-ID: <200501240743.48398.rob@landley.net> (raw)
In-Reply-To: <267988DEACEC5A4D86D5FCD780313FBB03B7317C@exch-03.noida.hcltech.com>

On Monday 24 January 2005 03:13 am, Vaibhav  Sharma, Noida wrote:
> According to the design of UML, it has its own VM system. If I have to
> check the scalability limits of the "parent kernel" for memory management,
> will UML be useful..?

Jeff Dike already answered this.  (He's the UML maintainer.)  UML _does_ remap 
a different chunk out of the physical memory backing file when it schedules a 
different process.  UML uses mmap to get its memory, so as long as the parent 
kernel has Large File Support (which lets a 32 bit machine use 64 bit file 
offsets, this is pretty widely deployed because people need a single file to 
be larger than INT_MAX, which is 2 gigabytes since file offsets are signed 
for some reason), and the UML instance is configured to use highmem (which is 
what unmaps and remaps the memory on a schedule) and at least 3 level page 
tables (so it doesn't run out of PTEs), UML shouldn't be limited to 32 bits 
of (simulated) physical memory.  Not that I've tried this. :)

An individual process running under a 32-bit UML would still only be able to 
access 4 gigabytes or less.  (It has a 32 bit virtual address space, after 
all...)  And since I'm unaware of any version of UML using the 4 gig/4 gig 
patch, I suspect UML might fill up its kernel memory area with page table 
entries eventually...  (Was Dave Jones's shared page table patch ever 
integrated?  Are linux page tables swappable?)

> When I debug the UML kernel when a process requests a large amount of
> memory, I will only get the flow used by UML for its VM. Is the code/design
> of UML very different from the parent kernel..?

UML uses mmap on a file to simulate an MMU.  It shouldn't care what kind of 
physical memory the parent kernel has.  But Jeff's the expert here.

However running 'find arch/um -name "*.c" | xargs grep mmap' in your linux 
source directory should get you started.

> (I may be totally wrong in this mail, please do correct me...)

I'm not the world's greatest source of info here either, I've only been 
playing with UML for a little while...

Rob


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2005-01-24 13:45 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-24  8:13 [uml-devel] memory Vaibhav  Sharma, Noida
2005-01-24 12:43 ` Rob Landley [this message]
2005-01-24 19:07 ` Blaisorblade
2005-01-24 22:41   ` Henrik Nordstrom
2005-01-25  1:40     ` Rob Landley
  -- strict thread matches above, loose matches on Subject: below --
2005-01-23  6:46 Vaibhav  Sharma, Noida
2005-01-23  8:28 ` Doug Dumitru
2005-01-23  9:51   ` Rob Landley
2005-01-24 18:41     ` Blaisorblade
2005-01-23 18:27   ` Henrik Nordstrom
2005-01-23 18:25     ` Rob Landley
2005-01-24 10:02       ` Henrik Nordstrom
2005-01-24 18:52         ` Blaisorblade
2005-01-24  1:11 ` Jeff Dike
2005-01-24  5:10   ` Rob Landley
2005-01-24 10:12     ` Henrik Nordstrom
2005-01-24 11:31       ` Bodo Stroesser
2005-01-24 11:32         ` stian
     [not found]         ` <200501241811.j0OIBYXk002874@ccure.user-mode-linux.org>
2005-01-24 16:24           ` Bodo Stroesser

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=200501240743.48398.rob@landley.net \
    --to=rob@landley.net \
    --cc=Vaibhavs@noida.hcltech.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.