[Barrelfish-users] Assertion failure on mapping large frame

Robert Radkiewicz rrad at kth.se
Sun Feb 10 19:10:40 CET 2013


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
>    

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.inf.ethz.ch/pipermail/barrelfish-users/attachments/20130210/fdf4a2dc/attachment.html 


More information about the Barrelfish-users mailing list