[Barrelfish-users] Assertion failure on mapping large frame

Chothia Zaheer zchothia at student.ethz.ch
Mon Feb 11 10:03:04 CET 2013


Thank you Robert.  Your suggestion was helpful and the mapping now succeeds.

Regards,

--Zaheer

From: Robert Radkiewicz [mailto:rrad at kth.se] 
Sent: 10 February 2013 19:11
To: barrelfish-users at lists.inf.ethz.ch
Subject: Re: [Barrelfish-users] Assertion failure on mapping large frame

Hi,

without testing your code, I guess increasing the size of the mapping metadata could help.
In pmap_target.c:37:
#define META_DATA_RESERVED_SIZE (X86_64_BASE_PAGE_SIZE * 20000)

Greetings,
Robert

On 08.02.2013 22:18, Chothia Zaheer wrote: 
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->vregion_offset < vregion_get_base_addr(&pmap->vregion) + vregion_get_size(&pmap->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.

  


_______________________________________________
Barrelfish-users mailing list
Barrelfish-users at lists.inf.ethz.ch
https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users
  



More information about the Barrelfish-users mailing list