<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
without testing your code, I guess increasing the size of the mapping
metadata could help.<br>
In pmap_target.c:37:<br>
#define META_DATA_RESERVED_SIZE (X86_64_BASE_PAGE_SIZE * 20000)<br>
<br>
Greetings,<br>
Robert<br>
<br>
On 08.02.2013 22:18, Chothia Zaheer wrote:
<blockquote
 cite="mid:3BCDB37CE335A846B46D0B19BD52C9D80E56EB70@MBX11.d.ethz.ch"
 type="cite">
  <pre wrap="">Hello,

SharedDB requires large chunks of memory to store its data [*]. I ran into
problems allocating 1 GB with malloc() and switched to frame_alloc(). That
initially seemed to solve the issue, but unfortunately also fails. Allocating
an 8 GB frame succeeds, but mapping it fails:

  [BEFORE] System memory: free: 135958609920 bytes, total: 137277911040 bytes
  Allocated frame of 8589934592 bytes.
  assertion "pmap-&gt;vregion_offset &lt; vregion_get_base_addr(&amp;pmap-&gt;vregion) + vregion_get_size(&amp;pmap-&gt;vregion)" failed: file "../lib/barrelfish/target/x86_64/pmap_target.c", line 319, function: refill_slabs
  Aborted

Attached is a minimal example which demonstrates the problem. Any ideas?

Best,

--Zaheer

[*] When running TPC-W on Linux, tcmalloc reports total memory usage as 10.2 GB.
    On IRC I mentioned a figure of 2.7 GB, but that appears incorrect as Massif
    doesn't seem to have accounted for everything.

  </pre>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Barrelfish-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Barrelfish-users@lists.inf.ethz.ch">Barrelfish-users@lists.inf.ethz.ch</a>
<a class="moz-txt-link-freetext" href="https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users">https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>