From: Jeff Dike <jdike@addtoit.com>
To: "Vaibhav Sharma, Noida" <Vaibhavs@noida.hcltech.com>
Cc: user-mode-linux-devel@lists.sourceforge.net,
Rob Landley <rob@landley.net>, Doug Dumitru <doug@easyco.com>
Subject: Re: [uml-devel] memory
Date: Sun, 23 Jan 2005 20:11:55 -0500 [thread overview]
Message-ID: <200501240111.j0O1BtoI004687@ccure.user-mode-linux.org> (raw)
In-Reply-To: Your message of "Sun, 23 Jan 2005 12:16:34 +0530." <267988DEACEC5A4D86D5FCD780313FBB03B12C4B@exch-03.noida.hcltech.com>
Vaibhavs@noida.hcltech.com said:
> I have to build a simulator, to check the scalability limits in memory
> management of linux. For this, the simulator will provide a large
> amount of RAM (in GBs), even if the amout of physical memory is only
> 512MB.
>
> Can UML be used for this purpose? I had seen the "mem" option in the
> kernel switches option of UML. Can UML simulate such a case?
Yes, it should be fine for what you want.
> If it
> does, how UML handles this? Specifically, can the UML kernel allocate
> all this amount of memory
It'll allocate a temp file of the appropriate size. If it's larger than what
it can use for physical memory, the rest will be allocated as highmem. If
you leave 2-level pagetables on, then you're limited to 4G. If you turn on
3-level pagetables, then you get up to 128G.
doug@easyco.com said:
> UML runs the client using a single user mode memory block as the
> entire client's core. Thus the clients core size is limited to what
> a single task can allocate as plain memory.
No, it only maps the physical memory as a block. The highmem part is mapped
on demand, as with i386.
rob@landley.net said:
> You could run out of virtual address space, though. Trying to map
> more than a few gigabytes on a 32 bit machine is unlikely to work.
With highmem, it's not all mapped at once.
rob@landley.net said:
> Not unless it's unmapping and remapping multiple mmaps.
It is.
> (There's
> large file support, but trying to mmap a 5 gig chunk out of a large
> file can't work:
It does it a page at a time.
> what would that mean? How could you generate an
> offset into the last meg?
The LFS interfaces take 64-bit offsets.
> What would the pointer _be_?)
What pointer?
> The parent kernel's highmem support still doesn't provide more than 4
> gigabytes per application, and the UML kernel is one application.
The host kernel's highmem support is totally irrelevant. There doesn't even
need to be highmem support on the host.
Jeff
-------------------------------------------------------
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
next prev parent reply other threads:[~2005-01-23 22:48 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-23 6:46 [uml-devel] memory 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 [this message]
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
-- strict thread matches above, loose matches on Subject: below --
2005-01-24 8:13 Vaibhav Sharma, Noida
2005-01-24 12:43 ` Rob Landley
2005-01-24 19:07 ` Blaisorblade
2005-01-24 22:41 ` Henrik Nordstrom
2005-01-25 1:40 ` Rob Landley
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=200501240111.j0O1BtoI004687@ccure.user-mode-linux.org \
--to=jdike@addtoit.com \
--cc=Vaibhavs@noida.hcltech.com \
--cc=doug@easyco.com \
--cc=rob@landley.net \
--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