<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Oh, that's right! The NPB benchmarks
keep all data in gigantic arrays that are statically defined,
instead of using malloc. That's why you're seeing the error in
spawnd and not in the benchmarks themselves.<br>
<br>
On 14-11-20 01:28 PM, Antonio Barbalace wrote:<br>
</div>
<blockquote
cite="mid:CAJzJ9cyu4Nvu4qb-kUr-8K2eSAZ9Pf2Hd6wqdbbiGRyYfRrEtg@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div dir="ltr">
<div>
<div>I was able to solve this problem by doubling the
DEFAULT_CNODE_SLOTS number in
lib/spawndomain/arch/x86/spawn_arch.c: spawn_arch_load ().
(kudos to who put the XXX comment)<br>
<br>
// XXX: this code assumes that elf_load never needs more
than 32 slots for<br>
// text frame capabilities.<br>
err = cnode_create_raw(cnode_cap, &si->segcn,
DEFAULT_CNODE_SLOTS*2, NULL);<br>
return err_push(err, SPAWN_ERR_CREATE_SEGCN);<br>
}<br>
<br>
</div>
I can now run cg up to 32 cores. After that I get the
refill_slab error..<br>
<br>
</div>
Antonio<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Nov 17, 2014 at 11:18 AM,
Antonio Barbalace <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:antoniob@vt.edu"
target="_blank">antoniob@vt.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>I was able to print the cspace.<br>
<br>
> bomp_benchmark_cg 1<br>
cap_copy failed for src_slot = 20(0x40c24000), dest_slot
= 32(0x40c24000), spawn_vspace_slot = 22, new_slot_count
= 12<br>
...<br>
spawnd.0: slot 4 caddr 0x40c24000 (20 bits) is a
CNode cap (bits 5, rights mask 0x1f)<br>
spawnd.0: slot 0 caddr 0x40c24000 (25 bits) is a
Frame cap (0x82e00000:19)<br>
spawnd.0: slot 1 caddr 0x40c24080 (25 bits) is a
Frame cap (0x82e80000:18)<br>
spawnd.0: slot 2 caddr 0x40c24100 (25 bits) is a
Frame cap (0x82d70000:16)<br>
spawnd.0: slot 3 caddr 0x40c24180 (25 bits) is a
Frame cap (0x82de0000:15)<br>
spawnd.0: slot 4 caddr 0x40c24200 (25 bits) is a
Frame cap (0x825b9000:12)<br>
spawnd.0: slot 5 caddr 0x40c24280 (25 bits) is a
Frame cap (0x82e00000:19)<br>
spawnd.0: slot 6 caddr 0x40c24300 (25 bits) is a
Frame cap (0x82e80000:18)<br>
spawnd.0: slot 7 caddr 0x40c24380 (25 bits) is a
Frame cap (0x82d70000:16)<br>
spawnd.0: slot 8 caddr 0x40c24400 (25 bits) is a
Frame cap (0x82de0000:15)<br>
spawnd.0: slot 9 caddr 0x40c24480 (25 bits) is a
Frame cap (0x825b9000:12)<br>
spawnd.0: slot 10 caddr 0x40c24500 (25 bits) is a
Frame cap (0x94000000:25)<br>
spawnd.0: slot 11 caddr 0x40c24580 (25 bits) is a
Frame cap (0x91000000:24)<br>
spawnd.0: slot 12 caddr 0x40c24600 (25 bits) is a
Frame cap (0x92000000:23)<br>
spawnd.0: slot 13 caddr 0x40c24680 (25 bits) is a
Frame cap (0x83800000:21)<br>
spawnd.0: slot 14 caddr 0x40c24700 (25 bits) is a
Frame cap (0x83700000:20)<br>
spawnd.0: slot 15 caddr 0x40c24780 (25 bits) is a
Frame cap (0x83a00000:19)<br>
spawnd.0: slot 16 caddr 0x40c24800 (25 bits) is a
Frame cap (0x82ec0000:17)<br>
spawnd.0: slot 17 caddr 0x40c24880 (25 bits) is a
Frame cap (0x82ee0000:16)<br>
spawnd.0: slot 18 caddr 0x40c24900 (25 bits) is a
Frame cap (0x82de8000:15)<br>
spawnd.0: slot 19 caddr 0x40c24980 (25 bits) is a
Frame cap (0x825e0000:14)<br>
spawnd.0: slot 20 caddr 0x40c24a00 (25 bits) is a
Frame cap (0x825d0000:13)<br>
spawnd.0: slot 21 caddr 0x40c24a80 (25 bits) is a
Frame cap (0x825be000:12)<br>
spawnd.0: slot 22 caddr 0x40c24b00 (25 bits) is a
Frame cap (0x94000000:25)<br>
spawnd.0: slot 23 caddr 0x40c24b80 (25 bits) is a
Frame cap (0x91000000:24)<br>
spawnd.0: slot 24 caddr 0x40c24c00 (25 bits) is a
Frame cap (0x92000000:23)<br>
spawnd.0: slot 25 caddr 0x40c24c80 (25 bits) is a
Frame cap (0x83800000:21)<br>
spawnd.0: slot 26 caddr 0x40c24d00 (25 bits) is a
Frame cap (0x83700000:20)<br>
spawnd.0: slot 27 caddr 0x40c24d80 (25 bits) is a
Frame cap (0x83a00000:19)<br>
spawnd.0: slot 28 caddr 0x40c24e00 (25 bits) is a
Frame cap (0x82ec0000:17)<br>
spawnd.0: slot 29 caddr 0x40c24e80 (25 bits) is a
Frame cap (0x82ee0000:16)<br>
spawnd.0: slot 30 caddr 0x40c24f00 (25 bits) is a
Frame cap (0x82de8000:15)<br>
spawnd.0: slot 31 caddr 0x40c24f80 (25 bits) is a
Frame cap (0x825e0000:14)<br>
spawnd.0: slot 7 caddr 0x40c27000 (20 bits) is a
CNode cap (bits 10, rights mask 0x1f)<br>
...<span class=""><br>
ERROR: spawnd.0 in spawn_with_caps_handler()
../usr/spawnd/service.c:352<br>
ERROR: spawn<br>
Failure: ( spawn) Failure while loading
[SPAWN_ERR_LOAD]<br>
Failure: ( libelf) Nested failure in allocator
function [ELF_ERR_ALLOCATE]<br>
Failure: ( libbarrelfish) Failure in cap_copy()
[LIB_ERR_CAP_COPY]<br>
Failure: ( kernel) Destination capability
slots occupied [SYS_ERR_SLOT_IN_USE]<br>
bomp_benchmark_cg: error spawning: Failure while
loading<br>
ERROR: fish.0 in execute_program()
../usr/fish/fish.c:102<br>
ERROR: Spawning Error<br>
<br>
</span></div>
<span class="HOEnZb"><font color="#888888">ab<br>
<br>
</font></span></div>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sun, Nov 16, 2014 at 11:13
PM, Antonio Barbalace <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>
<div>Dear Reto,<br>
<br>
</div>
I did some experiments as you suggested but I
wasn't able to solve the problem. If you have
any example code I will be happy if you can
share it. However, I continued debugging the
problem! I am curious to know if there is an
API that I can call at the moment of the error
and dump the capabilities (like print_cspace).<br>
<br>
>bomp_benchmark_cg 1<br>
elf_allocate: cap_copy failed for src_slot =
20, dest_slot = 32, spawn_vspace_slot = 22,
new_slot_count = 12<br>
ERROR: spawnd.0 in spawn_with_caps_handler()
../usr/spawnd/service.c:352<br>
ERROR: spawn<br>
Failure: ( spawn) Failure while
loading [SPAWN_ERR_LOAD]<br>
Failure: ( libelf) Nested failure in
allocator function [ELF_ERR_ALLOCATE]<br>
Failure: ( libbarrelfish) Failure in
cap_copy() [LIB_ERR_CAP_COPY]<br>
Failure: ( kernel) Destination
capability slots occupied
[SYS_ERR_SLOT_IN_USE]<br>
bomp_benchmark_cg: error spawning: Failure
while loading<br>
ERROR: fish.0 in execute_program()
../usr/fish/fish.c:102<br>
ERROR: Spawning Error<br>
<br>
Failure: ( spawn) Failure while
loading [SPAWN_ERR_LOAD]<br>
Failure: ( libelf) Nested failure in
allocator function [ELF_ERR_ALLOCATE]<br>
Failure: ( libbarrelfish) Failure in
cap_copy() [LIB_ERR_CAP_COPY]<br>
Failure: ( kernel) Destination
capability slots occupied
[SYS_ERR_SLOT_IN_USE]<br>
<br>
</div>
many thanks,<br>
Antonio<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Nov 13, 2014 at
9:30 AM, Achermann Reto <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:retoachermann@student.ethz.ch"
target="_blank">retoachermann@student.ethz.ch</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><font
face="Calibri" color="#1f497d"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi
Antonio,</span></font></p>
<p class="MsoNormal"><font
face="Calibri" color="#1f497d"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></font></p>
<p class="MsoNormal"><font
face="Calibri" color="#1f497d"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Just
to provide some additional
information that may have caused
the issue.</span></font></p>
<p class="MsoNormal"><font
face="Calibri" color="#1f497d"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></font></p>
<p class="MsoNormal"><font
face="Calibri" color="#1f497d"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">I
ran into similar problems when I
benchmarked the Barrelfish OpenMP
implementation. The problem there
was caused by an improper cleanup
of the worker threads i.e. the
cleanup thread is not called early
enough. This resulted that the
pre-allocated threads no longer
are freed and hence the “newthread
!= NULL” assertion fired. In my
case a couple of thread_yield()
between the rounds did the trick,
however this is not considered a
solution. I haven’t looked at the
FT implementation yet but judging
from 6 iteration on 64 cores the
limit is likely to be reached in
iteration 5.
</span></font></p>
<p class="MsoNormal"><font
face="Calibri" color="#1f497d"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></font></p>
<p class="MsoNormal"><font
face="Calibri" color="#1f497d"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">In
any case, we need to do a work
around in the way the memory
layout is set up. Currently,
maximum of 3.5GB of memory can be
allocated on the heap due to 4G
boundary constraints.</span></font></p>
<p class="MsoNormal"><font
face="Calibri" color="#1f497d"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></font></p>
<p class="MsoNormal"><font
face="Calibri" color="#1f497d"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">--
Reto</span></font></p>
<p class="MsoNormal"><font
face="Calibri" color="#1f497d"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></font></p>
<div>
<div
style="border:none;border-top:solid
#e1e1e1 1.0pt;padding:3.0pt 0cm 0cm
0cm">
<p class="MsoNormal"><b><font
face="Calibri"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;font-weight:bold">From:</span></font></b><font
face="Calibri"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
Antonio Barbalace [mailto:<a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu"
target="_blank">antoniob@vt.edu</a>]
<br>
<b><span
style="font-weight:bold">Sent:</span></b>
Thursday, November 13, 2014
5:46 AM<br>
<b><span
style="font-weight:bold">To:</span></b>
Gerber Simon<br>
<b><span
style="font-weight:bold">Cc:</span></b>
Achermann Reto; <a
moz-do-not-send="true"
href="mailto:barrelfish-users@lists.inf.ethz.ch"
target="_blank">barrelfish-users@lists.inf.ethz.ch</a>;
Zellweger Gerd<br>
<b><span
style="font-weight:bold">Subject:</span></b>
Re: [Barrelfish-users]
barrelfish help!</span></font></p>
</div>
</div>
<p class="MsoNormal"><font face="Times
New Roman" size="3"><span
style="font-size:12.0pt"> </span></font></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"
style="margin-bottom:12.0pt"><font
face="Times New Roman"
size="3"><span
style="font-size:12.0pt">Hi
Simon,</span></font></p>
</div>
<p class="MsoNormal"
style="margin-bottom:12.0pt"><font
face="Times New Roman"
size="3"><span
style="font-size:12.0pt">first
of all, thank you very much!
I am now successfully
running FT and CG! The first
patch solved the allocation
problem, I am successfully
running up to 48 cores.
However I tried for 64 cores
and I get the following
error (for FT):</span></font></p>
</div>
<p class="MsoNormal"
style="margin-bottom:12.0pt"><font
face="Times New Roman" size="3"><span
style="font-size:12.0pt"> Size
: 256x256x128<br>
Iterations
: 6<br>
ERROR: bomp_benchmark_.24 in
slab_alloc()
../lib/barrelfish/slab.c:100<br>
ERROR: slab refill_func failed<br>
Failure: ( libbarrelfish)
Failure in
vspace_mmu_aware_map()
function
[LIB_ERR_VSPACE_MMU_AWARE_MAP]<br>
Failure: ( libbarrelfish) Out
of space in
vspace_mmu_aware_map()
function
[LIB_ERR_VSPACE_MMU_AWARE_NO_SPACE]<br>
assertion "newthread != NULL"
failed: file
"../lib/barrelfish/domain.c",
line 174, function:
create_thread_request<br>
Aborted<br>
ERROR: bomp_benchmark_.60 in
slab_alloc()
../lib/barrelfish/slab.c:100<br>
ERROR: slab refill_func failed<br>
Aborted<br>
ERROR: bomp_benchmark_.63 in
slab_alloc()
../lib/barrelfish/slab.c:100<br>
ERROR: slab refill_func failed<br>
Aborted<br>
ERROR: bomp_benchmark_.62 in
slab_alloc()
../lib/barrelfish/slab.c:100<br>
ERROR: slab refill_func failed<br>
Aborted</span></font></p>
</div>
<p class="MsoNormal"><font face="Times
New Roman" size="3"><span
style="font-size:12.0pt">However
CG does not work, I am getting
the following error:</span></font></p>
<div>
<p class="MsoNormal"
style="margin-bottom:12.0pt"><font
face="Times New Roman" size="3"><span
style="font-size:12.0pt"><br>
> bomp_benchmark_cg 1<br>
cap_copy failed for src_slot =
21, dest_slot = 33<br>
ERROR: spawnd.0 in
spawn_with_caps_handler()
../usr/spawnd/service.c:352<br>
ERROR: spawn<br>
Failure: ( spawn)
Failure while loading
[SPAWN_ERR_LOAD]<br>
Failure: ( libelf)
Nested failure in allocator
function [ELF_ERR_ALLOCATE]<br>
Failure: ( libbarrelfish)
Failure in cap_copy()
[LIB_ERR_CAP_COPY]<br>
Failure: ( kernel)
Destination capability slots
occupied [SYS_ERR_SLOT_IN_USE]<br>
bomp_benchmark_cg: error
spawning: Failure while
loading<br>
ERROR: fish.0 in
execute_program()
../usr/fish/fish.c:102<br>
ERROR: Spawning Error<br>
<br>
Failure: ( spawn)
Failure while loading
[SPAWN_ERR_LOAD]<br>
Failure: ( libelf)
Nested failure in allocator
function [ELF_ERR_ALLOCATE]<br>
Failure: ( libbarrelfish)
Failure in cap_copy()
[LIB_ERR_CAP_COPY]<br>
Failure: ( kernel)
Destination capability slots
occupied [SYS_ERR_SLOT_IN_USE]</span></font></p>
<div>
<p class="MsoNormal"><font
face="Times New Roman"
size="3"><span
style="font-size:12.0pt">please
advice,<br>
thanks for you great help,</span></font></p>
</div>
<div>
<p class="MsoNormal"><font
face="Times New Roman"
size="3"><span
style="font-size:12.0pt">Antonio</span></font></p>
</div>
<div>
<p class="MsoNormal"><font
face="Times New Roman"
size="3"><span
style="font-size:12.0pt"> </span></font></p>
</div>
<p class="MsoNormal"><font
face="Times New Roman" size="3"><span
style="font-size:12.0pt">PS I
am subscribed to the
Barrelfish list!!</span></font></p>
<div>
<p class="MsoNormal"
style="margin-bottom:12.0pt"><font
face="Times New Roman"
size="3"><span
style="font-size:12.0pt"><br>
<br>
</span></font></p>
<div>
<p class="MsoNormal"><font
face="Times New Roman"
size="3"><span
style="font-size:12.0pt">On
Mon, Nov 10, 2014 at 10:00
AM, Simon Gerber <<a
moz-do-not-send="true"
href="mailto:simon.gerber@inf.ethz.ch"
target="_blank">simon.gerber@inf.ethz.ch</a>>
wrote:</span></font></p>
<blockquote
style="border:none;border-left:solid
#cccccc 1.0pt;padding:0cm 0cm
0cm
6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal"><font
face="Times New Roman"
size="3"><span
style="font-size:12.0pt">Hi
Antonio,<br>
<br>
[@list: sorry for the
spam, I'm not sure if
Antonio is subscribed
and mistakenly replied
only to the list...]<br>
<br>
I've investigated a bit
and have produced two
patches that make the FT
benchmark work.<br>
<br>
patch 1 fixes some
confusion when creating
different cnodes and
increases the size of
the page cnode by a
factor of two. This
fixes your immediate
problem of not being
able to run the FT
benchmark. Additionally,
changing the page cnode
size should now be as
easy as modifying
PAGE_CNODE_BITS in
include/barrelfish_kpi/init.h.<br>
<br>
patch 2 fixes the FT
benchmark itself which
was not working because
the default stack size
on Barrelfish (64kB) is
too small for the fft
implementation which
creates rather large
arrays on the stack.
This patch is not
necessary if you're
using a release older
than release2014-08-29.<br>
<br>
Best,<br>
-- Simon<br>
<br>
On 08.11.2014 18:43,
Antonio Barbalace wrote:</span></font></p>
<blockquote
style="border:none;border-left:solid
#cccccc 1.0pt;padding:0cm
0cm 0cm
6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal"><font
face="Times New
Roman" size="3"><span
style="font-size:12.0pt">All,<br>
<br>
Clearly I need a
way to make larger
memory
allocations.
Please advise.<br>
<br>
thank you very
much,<br>
Antonio<br>
<br>
----------------------------------------------------------------
LOG:<br>
<br>
>
bomp_benchmark_ft
1<br>
spawnd.0:
single_slot_alloc_init_raw:
ret: 0x6a1528
ret->a .alloc:<br>
0x492f80 .free:
0x492d80 .nslot:
128 .space: 128<br>
spawnd.0:
single_slot_alloc_init_raw:
ret->head:
0x17692c8
ret->head<br>
->slot: 0
->space: 128
->next: 0x0<br>
spawnd.0:
spawn_arch_load:
ROOTCN_SLOT_SEGCN:
4
DEFAULT_CNODE_SLOTS:
32<br>
spawnd.0:
elf_allocate:
size: 888832 sz:
4096<br>
spawnd.0:
single_slot_alloc_init_raw:
ret: 0x8013c80018
ret->a .alloc:<br>
0x492f80 .free:
0x492d80 .nslot:
1024 .space: 1024<br>
spawnd.0:
single_slot_alloc_init_raw:
ret->head:
0x8013c800a8
ret->head<br>
->slot: 0
->space: 1024
->next: 0x0<br>
spawnd.0:
elf_allocate:
size: 439181312
sz: 8192<br>
spawnd.0: salloc:
sca: 0x6a1528
sca->a .alloc:
0x492f80 .free:
0x492d80<br>
.nslot: 128
.space: 0<br>
spawnd.0: salloc:
sca->head: 0x0
->slot: 0
->space: 0
->next: 0x0<br>
ERROR: spawnd.0 in
elf_allocate()<br>
../lib/spawndomain/arch/x86/spawn_arch.c:166<br>
ERROR:
lib_err_memobj_pagefault_handler<br>
Failure: (
libbarrelfish)
Failure in
pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish)
Failure in
pmap_do_map()
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish)
Failure in
get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
Failure: (
libbarrelfish)
Failure in
alloc_vnode()<br>
[LIB_ERR_PMAP_ALLOC_VNODE]<br>
Failure: (
libbarrelfish)
Failure in
slot_alloc()
[LIB_ERR_SLOT_ALLOC]<br>
Failure: (
libbarrelfish)
Slot allocator is
out of space<br>
[LIB_ERR_SLOT_ALLOC_NO_SPACE]<br>
ERROR: spawnd.0 in
spawn_with_caps_handler()
../usr/spawnd/service.c:352<br>
ERROR: spawn<br>
Failure: (
spawn) Failure
while loading
[SPAWN_ERR_LOAD]<br>
Failure: (
libelf) Nested
failure in
allocator function<br>
[ELF_ERR_ALLOCATE]<br>
Failure: (
libbarrelfish)
Failure in
memobj_pagefault_handler()<br>
[LIB_ERR_MEMOBJ_PAGEFAULT_HANDLER]<br>
Failure: (
libbarrelfish)
Failure in
pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish)
Failure in
pmap_do_map()
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish)
Failure in
get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
bomp_benchmark_ft:
error spawning:
Failure while
loading<br>
ERROR: fish.0 in
execute_program()
../usr/fish/fish.c:102<br>
ERROR: Spawning
Error<br>
<br>
Failure: (
spawn) Failure
while loading
[SPAWN_ERR_LOAD]<br>
Failure: (
libelf) Nested
failure in
allocator function<br>
[ELF_ERR_ALLOCATE]<br>
Failure: (
libbarrelfish)
Failure in
memobj_pagefault_handler()<br>
[LIB_ERR_MEMOBJ_PAGEFAULT_HANDLER]<br>
Failure: (
libbarrelfish)
Failure in
pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish)
Failure in
pmap_do_map()
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish)
Failure in
get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
<br>
----------------------------------------------------------------
READELF:<br>
<br>
barrelfish/build/x86_64/sbin$
readelf -l
bomp_benchmark_ft<br>
<br>
Elf file type is
EXEC (Executable
file)<br>
Entry point
0x400455<br>
There are 5
program headers,
starting at offset
64<br>
<br>
Program Headers:<br>
Type
Offset
VirtAddr
PhysAddr<br>
FileSiz
MemSiz
Flags Align<br>
LOAD
0x0000000000000000
0x0000000000400000
0x0000000000400000<br>
0x00000000000d8e60
0x00000000000d8e60
R E 1000<br>
LOAD
0x00000000000d90d0
0x00000000004d90d0
0x00000000004d90d0<br>
0x0000000000011c5c
0x000000001a2d55f8
RW 1000<br>
GNU_EH_FRAME
0x00000000000b718c
0x00000000004b718c
0x00000000004b718c<br>
0x0000000000003c54
0x0000000000003c54
R 4<br>
GNU_STACK
0x0000000000000000
0x0000000000000000
0x0000000000000000<br>
0x0000000000000000
0x0000000000000000
RWE 10<br>
GNU_RELRO
0x00000000000d90d0
0x00000000004d90d0
0x00000000004d90d0<br>
0x0000000000000f30
0x0000000000000f30
R 1<br>
<br>
Section to
Segment mapping:<br>
Segment
Sections...<br>
00 .text
.rodata
.eh_frame_hdr
.eh_frame</span></font></p>
</div>
</div>
<p class="MsoNormal"><font
face="Times New Roman"
size="3"><span
style="font-size:12.0pt">
01 .ctors .<a
moz-do-not-send="true"
href="http://data.rel.ro" target="_blank">data.rel.ro</a> <<a
moz-do-not-send="true"
href="http://data.rel.ro" target="_blank">http://data.rel.ro</a>>
.got .got.plt .data<br>
.bss<br>
02
.eh_frame_hdr<br>
03<br>
04 .ctors .<a
moz-do-not-send="true" href="http://data.rel.ro" target="_blank">data.rel.ro</a>
<<a
moz-do-not-send="true"
href="http://data.rel.ro" target="_blank">http://data.rel.ro</a>>
.got<br>
<br>
----------------------------------------------------------------
EOF<br>
<br>
<br>
On Fri, Nov 7, 2014 at
9:11 AM, Antonio
Barbalace <<a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a></span></font></p>
<div>
<div>
<p class="MsoNormal"><font
face="Times New
Roman" size="3"><span
style="font-size:12.0pt"><mailto:<a moz-do-not-send="true"
href="mailto:antoniob@vt.edu"
target="_blank">antoniob@vt.edu</a>>>
wrote:<br>
<br>
Dear Reto,<br>
<br>
hope the
following will
help. As a note, I
tried to increase
the<br>
sizes but I
was not successful
in doing that, any
suggestion?<br>
<br>
many thanks,<br>
Antonio<br>
<br>
----------------------------------------------------------------
CODE:<br>
<br>
@
lib/spawndomain/arch/x86/spawn_arch.c:spawn_arch_load(
.. )<br>
<br>
// XXX:
this code assumes
that elf_load
never needs more
than<br>
32 slots for<br>
// text
frame
capabilities.<br>
err =
cnode_create_raw(cnode_cap,
&si->segcn,<br>
DEFAULT_CNODE_SLOTS,
NULL);<br>
debug_printf("%s:
ROOTCN_SLOT_SEGCN:
%ld
DEFAULT_CNODE_SLOTS:
%ld\n",<br>
__FUNCTION__,
(unsigned
long)ROOTCN_SLOT_SEGCN,<br>
(unsigned
long)DEFAULT_CNODE_SLOTS);<br>
if
(err_is_fail(err))
{<br>
<br>
----------------------------------------------------------------
LOG:<br>
<br>
>
bomp_benchmark_ft
1<br>
spawnd.0:
single_slot_alloc_init_raw:
ret: 0x6a1528
ret->a .alloc:<br>
0x492f40
.free: 0x492d40
.nslot: 128
.space: 128<br>
spawnd.0:
single_slot_alloc_init_raw:
ret->head:
0x17692c8
ret->head<br>
->slot: 0
->space: 128
->next: 0x0<br>
spawnd.0:
spawn_arch_load:
ROOTCN_SLOT_SEGCN:
4
DEFAULT_CNODE_SLOTS:
32<br>
spawnd.0:
single_slot_alloc_init_raw:
ret: 0x8013c80018
ret->a<br>
.alloc:
0x492f40 .free:
0x492d40 .nslot:
1024 .space: 1024<br>
spawnd.0:
single_slot_alloc_init_raw:
ret->head:
0x8013c800a8<br>
ret->head
->slot: 0
->space: 1024
->next: 0x0<br>
spawnd.0:
salloc: sca:
0x6a1528 sca->a
.alloc: 0x492f40
.free:<br>
0x492d40
.nslot: 128
.space: 0<br>
<br>
spawnd.0:
salloc:
sca->head: 0x0
->slot: 0
->space: 0
->next: 0x0<br>
ERROR:
spawnd.0 in
elf_allocate()<br>
../lib/spawndomain/arch/x86/spawn_arch.c:165<br>
ERROR:
lib_err_memobj_pagefault_handler<br>
Failure: (
libbarrelfish)
Failure in
pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish)
Failure in
pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish)
Failure in
get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
Failure: (
libbarrelfish)
Failure in
alloc_vnode()<br>
[LIB_ERR_PMAP_ALLOC_VNODE]<br>
Failure: (
libbarrelfish)
Failure in
slot_alloc()
[LIB_ERR_SLOT_ALLOC]<br>
Failure: (
libbarrelfish)
Slot allocator is
out of space<br>
[LIB_ERR_SLOT_ALLOC_NO_SPACE]<br>
ERROR:
spawnd.0 in
spawn_with_caps_handler()
../usr/spawnd/service.c:352<br>
ERROR: spawn<br>
Failure: (
spawn)
Failure while
loading
[SPAWN_ERR_LOAD]<br>
Failure: (
libelf)
Nested failure in
allocator function<br>
[ELF_ERR_ALLOCATE]<br>
Failure: (
libbarrelfish)
Failure in
memobj_pagefault_handler()<br>
[LIB_ERR_MEMOBJ_PAGEFAULT_HANDLER]<br>
Failure: (
libbarrelfish)
Failure in
pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish)
Failure in
pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish)
Failure in
get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
bomp_benchmark_ft:
error spawning:
Failure while
loading<br>
ERROR: fish.0
in
execute_program()
../usr/fish/fish.c:102<br>
ERROR:
Spawning Error<br>
<br>
Failure: (
spawn)
Failure while
loading
[SPAWN_ERR_LOAD]<br>
Failure: (
libelf)
Nested failure in
allocator function<br>
[ELF_ERR_ALLOCATE]<br>
Failure: (
libbarrelfish)
Failure in
memobj_pagefault_handler()<br>
[LIB_ERR_MEMOBJ_PAGEFAULT_HANDLER]<br>
Failure: (
libbarrelfish)
Failure in
pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish)
Failure in
pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish)
Failure in
get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
>
bomp_benchmark_ft
2<br>
spawnd.0:
single_slot_alloc_init_raw:
ret: 0x6a1528
ret->a .alloc:<br>
0x492f40
.free: 0x492d40
.nslot: 128
.space: 128<br>
spawnd.0:
single_slot_alloc_init_raw:
ret->head:
0x68f468
ret->head<br>
->slot: 0
->space: 128
->next: 0x0<br>
spawnd.0:
spawn_arch_load:
ROOTCN_SLOT_SEGCN:
4
DEFAULT_CNODE_SLOTS:
32<br>
spawnd.0:
salloc: sca:
0x6a1528 sca->a
.alloc: 0x492f40
.free:<br>
0x492d40
.nslot: 128
.space: 0<br>
<br>
spawnd.0:
salloc:
sca->head: 0x0
->slot: 0
->space: 0
->next: 0x0<br>
ERROR:
spawnd.0 in
elf_allocate()<br>
../lib/spawndomain/arch/x86/spawn_arch.c:165<br>
ERROR:
lib_err_memobj_pagefault_handler<br>
Failure: (
libbarrelfish)
Failure in
pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish)
Failure in
pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish)
Failure in
get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
Failure: (
libbarrelfish)
Failure in
alloc_vnode()<br>
[LIB_ERR_PMAP_ALLOC_VNODE]<br>
Failure: (
libbarrelfish)
Failure in
slot_alloc()
[LIB_ERR_SLOT_ALLOC]<br>
Failure: (
libbarrelfish)
Slot allocator is
out of space<br>
[LIB_ERR_SLOT_ALLOC_NO_SPACE]<br>
ERROR:
spawnd.0 in
spawn_with_caps_handler()
../usr/spawnd/service.c:352<br>
ERROR: spawn<br>
Failure: (
spawn)
Failure while
loading
[SPAWN_ERR_LOAD]<br>
Failure: (
libelf)
Nested failure in
allocator function<br>
[ELF_ERR_ALLOCATE]<br>
Failure: (
libbarrelfish)
Failure in
memobj_pagefault_handler()<br>
[LIB_ERR_MEMOBJ_PAGEFAULT_HANDLER]<br>
Failure: (
libbarrelfish)
Failure in
pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish)
Failure in
pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish)
Failure in
get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
bomp_benchmark_ft:
error spawning:
Failure while
loading<br>
ERROR: fish.0
in
execute_program()
../usr/fish/fish.c:102<br>
ERROR:
Spawning Error<br>
<br>
Failure: (
spawn)
Failure while
loading
[SPAWN_ERR_LOAD]<br>
Failure: (
libelf)
Nested failure in
allocator function<br>
[ELF_ERR_ALLOCATE]<br>
Failure: (
libbarrelfish)
Failure in
memobj_pagefault_handler()<br>
[LIB_ERR_MEMOBJ_PAGEFAULT_HANDLER]<br>
Failure: (
libbarrelfish)
Failure in
pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish)
Failure in
pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish)
Failure in
get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
<br>
<br>
On Fri, Nov 7,
2014 at 4:20 AM,
Achermann Reto<br>
<<a
moz-do-not-send="true"
href="mailto:retoachermann@student.ethz.ch" target="_blank">retoachermann@student.ethz.ch</a></span></font></p>
</div>
</div>
<p class="MsoNormal"><font
face="Times New Roman"
size="3"><span
style="font-size:12.0pt">
<mailto:<a
moz-do-not-send="true"
href="mailto:retoachermann@student.ethz.ch" target="_blank">retoachermann@student.ethz.ch</a>>>
wrote:<br>
<br>
Hi
Antonio,____<br>
<br>
__ __<br>
<br>
Just another
thought. I am not sure
if the problem at hand
is<br>
related to a
hard limit on the
maximum number of
slots in the<br>
SEGCN:____<br>
<br>
__ __<br>
<br>
/*
lib/spawndomain/arch/x86/spawn_arch.c
*/____<br>
<br>
261 //
XXX: this code assumes
that elf_load never
needs more<br>
than 32 slots
for____<br>
<br>
262 //
text frame
capabilities.____<br>
<br>
__ __<br>
<br>
The mapping is
done with the caps in
the SEGCN of the ELF.
Can<br>
you verify how
many slots you use
when loading the
ELF?____<br>
<br>
__ __<br>
<br>
-- Reto____<br>
<br>
__ __<br>
<br>
*From:*Antonio
Barbalace [mailto:<a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a><br>
<mailto:<a
moz-do-not-send="true" href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a>>]<br>
*Sent:*
Friday, November 7,
2014 3:24 AM<br>
*To:*
Kornilios Kourtis;
Antonio Barbalace;
Zellweger Gerd;<br>
<a
moz-do-not-send="true"
href="mailto:barrelfish-users@lists.inf.ethz.ch" target="_blank">barrelfish-users@lists.inf.ethz.ch</a><br>
<mailto:<a
moz-do-not-send="true" href="mailto:barrelfish-users@lists.inf.ethz.ch"
target="_blank">barrelfish-users@lists.inf.ethz.ch</a>><br>
*Subject:* Re:
[Barrelfish-users]
barrelfish help!____<br>
<br>
__ __<br>
<br>
I added some
more printfs ... if it
can help solve the
problem.____</span></font></p>
<div>
<div>
<p class="MsoNormal"
style="margin-bottom:12.0pt"><font
face="Times New
Roman" size="3"><span
style="font-size:12.0pt"><br>
<br>
<br>
>
bomp_benchmark_ft
1<br>
spawnd.0:
single_slot_alloc_init_raw:
ret: 0x6a1528
ret->a<br>
.alloc:
0x492f10 .free:
0x492d10 .nslot:
128 .space: 128<br>
spawnd.0:
single_slot_alloc_init_raw:
ret->head:
0x76c8f8<br>
ret->head
->slot: 0
->space: 128
->next: 0x0<br>
spawnd.0:
single_slot_alloc_init_raw:
ret: 0x8013c80018
ret->a<br>
.alloc:
0x492f10 .free:
0x492d10 .nslot:
1024 .space: 1024<br>
spawnd.0:
single_slot_alloc_init_raw:
ret->head:
0x8013c800a8<br>
ret->head
->slot: 0
->space: 1024
->next: 0x0<br>
spawnd.0:
salloc: sca:
0x6a1528 sca->a
.alloc: 0x492f10
.free:<br>
0x492d10
.nslot: 128
.space: 0<br>
spawnd.0:
salloc:
sca->head: 0x0
->slot: 0
->space: 0<br>
->next:
0x0<br>
ERROR:
spawnd.0 in
elf_allocate()<br>
../lib/spawndomain/arch/x86/spawn_arch.c:165<br>
ERROR:
lib_err_memobj_pagefault_handler<br>
Failure:
( libbarrelfish)
Failure in
pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure:
( libbarrelfish)
Failure in
pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure:
( libbarrelfish)
Failure in
get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
Failure:
( libbarrelfish)
Failure in
alloc_vnode()<br>
[LIB_ERR_PMAP_ALLOC_VNODE]<br>
Failure:
( libbarrelfish)
Failure in
slot_alloc()<br>
[LIB_ERR_SLOT_ALLOC]<br>
Failure:
( libbarrelfish)
Slot allocator is
out of space<br>
[LIB_ERR_SLOT_ALLOC_NO_SPACE]<br>
ERROR:
spawnd.0 in
spawn_with_caps_handler()<br>
../usr/spawnd/service.c:352<br>
ERROR:
spawn<br>
Failure:
( spawn)
Failure while
loading
[SPAWN_ERR_LOAD]<br>
Failure:
( libelf)
Nested failure in
allocator function<br>
[ELF_ERR_ALLOCATE]<br>
Failure:
( libbarrelfish)
Failure in
memobj_pagefault_handler()<br>
[LIB_ERR_MEMOBJ_PAGEFAULT_HANDLER]<br>
Failure:
( libbarrelfish)
Failure in
pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure:
( libbarrelfish)
Failure in
pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure:
( libbarrelfish)
Failure in
get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
bomp_benchmark_ft:
error spawning:
Failure while
loading<br>
ERROR:
fish.0 in
execute_program()
../usr/fish/fish.c:102<br>
ERROR:
Spawning Error<br>
<br>
Failure:
( spawn)
Failure while
loading
[SPAWN_ERR_LOAD]<br>
Failure:
( libelf)
Nested failure in
allocator function<br>
[ELF_ERR_ALLOCATE]<br>
Failure:
( libbarrelfish)
Failure in
memobj_pagefault_handler()<br>
[LIB_ERR_MEMOBJ_PAGEFAULT_HANDLER]<br>
Failure:
( libbarrelfish)
Failure in
pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure:
( libbarrelfish)
Failure in
pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure:
( libbarrelfish)
Failure in
get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
>
bomp_benchmark_ft
2<br>
spawnd.0:
single_slot_alloc_init_raw:
ret: 0x6a1528
ret->a<br>
.alloc:
0x492f10 .free:
0x492d10 .nslot:
128 .space: 128<br>
spawnd.0:
single_slot_alloc_init_raw:
ret->head:
0x76a148<br>
ret->head
->slot: 0
->space: 128
->next: 0x0<br>
spawnd.0:
salloc: sca:
0x6a1528 sca->a
.alloc: 0x492f10
.free:<br>
0x492d10
.nslot: 128
.space: 0<br>
spawnd.0:
salloc:
sca->head: 0x0
->slot: 0
->space: 0<br>
->next:
0x0<br>
ERROR:
spawnd.0 in
elf_allocate()<br>
../lib/spawndomain/arch/x86/spawn_arch.c:165<br>
ERROR:
lib_err_memobj_pagefault_handler<br>
Failure:
( libbarrelfish)
Failure in
pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure:
( libbarrelfish)
Failure in
pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure:
( libbarrelfish)
Failure in
get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
Failure:
( libbarrelfish)
Failure in
alloc_vnode()<br>
[LIB_ERR_PMAP_ALLOC_VNODE]<br>
Failure:
( libbarrelfish)
Failure in
slot_alloc()<br>
[LIB_ERR_SLOT_ALLOC]<br>
Failure:
( libbarrelfish)
Slot allocator is
out of space<br>
[LIB_ERR_SLOT_ALLOC_NO_SPACE]<br>
ERROR:
spawnd.0 in
spawn_with_caps_handler()<br>
../usr/spawnd/service.c:352<br>
ERROR:
spawn<br>
Failure:
( spawn)
Failure while
loading
[SPAWN_ERR_LOAD]<br>
Failure:
( libelf)
Nested failure in
allocator function<br>
[ELF_ERR_ALLOCATE]<br>
Failure:
( libbarrelfish)
Failure in
memobj_pagefault_handler()<br>
[LIB_ERR_MEMOBJ_PAGEFAULT_HANDLER]<br>
Failure:
( libbarrelfish)
Failure in
pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure:
( libbarrelfish)
Failure in
pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure:
( libbarrelfish)
Failure in
get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
bomp_benchmark_ft:
error spawning:
Failure while
loading<br>
ERROR:
fish.0 in
execute_program()
../usr/fish/fish.c:102<br>
ERROR:
Spawning Error<br>
<br>
Failure:
( spawn)
Failure while
loading
[SPAWN_ERR_LOAD]<br>
Failure:
( libelf)
Nested failure in
allocator function<br>
[ELF_ERR_ALLOCATE]<br>
Failure:
( libbarrelfish)
Failure in
memobj_pagefault_handler()<br>
[LIB_ERR_MEMOBJ_PAGEFAULT_HANDLER]<br>
Failure:
( libbarrelfish)
Failure in
pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure:
( libbarrelfish)
Failure in
pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure:
( libbarrelfish)
Failure in
get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]</span></font></p>
</div>
</div>
<p class="MsoNormal"><font
face="Times New Roman"
size="3"><span
style="font-size:12.0pt">
Antonio____<br>
<br>
__ __<br>
<br>
__ __<br>
<br>
On Thu, Nov 6,
2014 at 1:17 PM,
Antonio Barbalace<br>
<<a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a>
<mailto:<a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a>>>
wrote:____<br>
<br>
Kornilios,____<br>
<br>
I think
the CAP error was due
to the fact that
before<br>
launching
the application
successfully I
mistyped it (after<br>
you launch
an application that is
not existent is giving
the<br>
CAP error
problem). I added few
printfs in the single
slot<br>
allocator
code (salloc) and this
is the error report
right now.<br>
<br>
>
bomp_benchmark_ft 1<br>
spawnd.0:
salloc: sca: 0x6a1528
sca->a .alloc:
0x492f10<br>
.free:
0x492d10 .nslot: 128
.space: 0<br>
spawnd.0:
salloc:
sca->head: 0x0
->slot: 0
->space: 0<br>
->next:
0x0____</span></font></p>
<div>
<div>
<p class="MsoNormal"><font
face="Times New
Roman" size="3"><span
style="font-size:12.0pt"><br>
<br>
<br>
ERROR:
spawnd.0 in
elf_allocate()<br>
../lib/spawndomain/arch/x86/spawn_arch.c:165<br>
ERROR:
lib_err_memobj_pagefault_handler<br>
Failure: (
libbarrelfish)
Failure in
pmap_map()<br>
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish)
Failure in
pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish)
Failure in
get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
Failure: (
libbarrelfish)
Failure in
alloc_vnode()<br>
[LIB_ERR_PMAP_ALLOC_VNODE]<br>
Failure: (
libbarrelfish)
Failure in
slot_alloc()<br>
[LIB_ERR_SLOT_ALLOC]<br>
Failure: (
libbarrelfish)
Slot allocator is
out of space<br>
[LIB_ERR_SLOT_ALLOC_NO_SPACE]<br>
ERROR:
spawnd.0 in
spawn_with_caps_handler()<br>
../usr/spawnd/service.c:352<br>
ERROR:
spawn<br>
Failure: (
spawn) Failure
while loading<br>
[SPAWN_ERR_LOAD]<br>
Failure: (
libelf) Nested
failure in
allocator<br>
function
[ELF_ERR_ALLOCATE]<br>
Failure: (
libbarrelfish)
Failure in<br>
memobj_pagefault_handler()
[LIB_ERR_MEMOBJ_PAGEFAULT_HANDLER]<br>
Failure: (
libbarrelfish)
Failure in
pmap_map()<br>
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish)
Failure in
pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish)
Failure in
get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
bomp_benchmark_ft:
error spawning:
Failure while
loading<br>
ERROR:
fish.0 in
execute_program()
../usr/fish/fish.c:102<br>
ERROR:
Spawning Error<br>
<br>
Failure: (
spawn) Failure
while loading<br>
[SPAWN_ERR_LOAD]<br>
Failure: (
libelf) Nested
failure in
allocator<br>
function
[ELF_ERR_ALLOCATE]<br>
Failure: (
libbarrelfish)
Failure in<br>
memobj_pagefault_handler()
[LIB_ERR_MEMOBJ_PAGEFAULT_HANDLER]<br>
Failure: (
libbarrelfish)
Failure in
pmap_map()<br>
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish)
Failure in
pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish)
Failure in
get_mapping()</span></font></p>
</div>
</div>
<p class="MsoNormal"><font
face="Times New Roman"
size="3"><span
style="font-size:12.0pt">
[LIB_ERR_PMAP_GET_PTABLE]____<br>
<br>
the error
comes from<br>
lib/barrelfish/slot_alloc/single_slot_alloc.c
because<br>
sca->a.space is
ZERO.____<br>
<br>
please
advice!____<br>
<br>
thanks,<br>
Antonio____<br>
<br>
__ __<br>
<br>
On Wed,
Nov 5, 2014 at 11:53
AM, Antonio Barbalace<br>
<<a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a>
<mailto:<a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a>>>
wrote:____</span></font></p>
<div>
<div>
<p class="MsoNormal"><font
face="Times New
Roman" size="3"><span
style="font-size:12.0pt"><br>
<br>
Let me also
include this:<br>
<br>
bomp_benhchmark_ft
2<br>
ERROR: spawnd.0 in
elf_allocate()<br>
../lib/spawndomain/arch/x86/spawn_arch.c:165<br>
ERROR:
lib_err_memobj_pagefault_handler<br>
Failure: (
libbarrelfish)
Failure in
pmap_map()<br>
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish)
Failure in
pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish)
Failure in
get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
Failure: (
libbarrelfish)
Failure in
alloc_vnode()<br>
[LIB_ERR_PMAP_ALLOC_VNODE]<br>
Failure: (
libbarrelfish)
Failure in
slot_alloc()<br>
[LIB_ERR_SLOT_ALLOC]<br>
Failure: (
libbarrelfish)
Slot allocator is
out of<br>
space
[LIB_ERR_SLOT_ALLOC_NO_SPACE]<br>
ERROR: spawnd.0 in
spawn_with_caps_handler()<br>
../usr/spawnd/service.c:352<br>
ERROR: spawn<br>
Failure: (
spawn) Failure
while loading<br>
[SPAWN_ERR_LOAD]<br>
Failure: (
libelf) Nested
failure in
allocator<br>
function
[ELF_ERR_ALLOCATE]<br>
Failure: (
libbarrelfish)
Failure in<br>
memobj_pagefault_handler()<br>
[LIB_ERR_MEMOBJ_PAGEFAULT_HANDLER]<br>
Failure: (
libbarrelfish)
Failure in
pmap_map()<br>
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish)
Failure in
pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish)
Failure in
get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
bomp_benchmark_ft:
error spawning:
Failure while
loading<br>
ERROR: fish.0 in
execute_program()
../usr/fish/fish.c:102<br>
ERROR: Spawning
Error<br>
<br>
Failure: (
spawn) Failure
while loading<br>
[SPAWN_ERR_LOAD]<br>
Failure: (
libelf) Nested
failure in
allocator<br>
function
[ELF_ERR_ALLOCATE]<br>
Failure: (
libbarrelfish)
Failure in<br>
memobj_pagefault_handler()<br>
[LIB_ERR_MEMOBJ_PAGEFAULT_HANDLER]<br>
Failure: (
libbarrelfish)
Failure in
pmap_map()<br>
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish)
Failure in
pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish)
Failure in
get_mapping()</span></font></p>
</div>
</div>
<p class="MsoNormal"><font
face="Times New Roman"
size="3"><span
style="font-size:12.0pt">
[LIB_ERR_PMAP_GET_PTABLE]____<br>
<br>
>>> Slot
allocator is out of
space____<br>
<br>
ab____<br>
<br>
__ __<br>
<br>
On
Wed, Nov 5, 2014 at
11:47 AM, Antonio
Barbalace<br>
<<a
moz-do-not-send="true" href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a>
<mailto:<a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a>>>
wrote:____<br>
<br>
Attached the log and
the output of
print_cspace.____<br>
<br>
thanks again for your
support,<br>
Antonio____<br>
<br>
__
__<br>
<br>
On
Tue, Nov 4, 2014 at
7:51 AM, Kornilios
Kourtis<br>
<<a
moz-do-not-send="true"
href="mailto:kornilios.kourtis@inf.ethz.ch" target="_blank">kornilios.kourtis@inf.ethz.ch</a><br>
<mailto:<a
moz-do-not-send="true"
href="mailto:kornilios.kourtis@inf.ethz.ch" target="_blank">kornilios.kourtis@inf.ethz.ch</a>>>
wrote:____</span></font></p>
<div>
<div>
<p class="MsoNormal"><font
face="Times New
Roman" size="3"><span
style="font-size:12.0pt"><br>
<br>
On Mon, Nov
03, 2014 at
12:56:46PM -0500,<br>
Antonio
Barbalace wrote:<br>
> Dear
all,<br>
><br>
> I am
now trying to run
the bomp
experiments.<br>
><br>
> Just to
make some context,
I am using a tftp
server.
bomp_benchmark_ft
is<br>
> loaded
by the
menu.lst/grub
(maybe is not the
right way to do
it). I am<br>
>
attaching
menu.lst.<br>
><br>
> This is
what happen when I
am loading
bomp_benchmark_ft
(also without<br>
>
arguments, the
same errors are
reported during
boot):<br>
><br>
> >
bomp_benchmark_ft<br>
>
cap_copy failed
for src_slot = 0,
dest_slot = 5<br>
> ERROR:
spawnd.0 in
spawn_with_caps_handler()
../usr/spawnd/service.c:352<br>
> ERROR:
spawn<br>
>
Failure: (
spawn) Failure
while loading
[SPAWN_ERR_LOAD]<br>
>
Failure: (
libelf) Nested
failure in
allocator function<br>
>
[ELF_ERR_ALLOCATE]<br>
>
Failure: (
libbarrelfish)
Failure in
cap_copy()
[LIB_ERR_CAP_COPY]<br>
>
Failure: (
kernel) Error
looking up source
capability<br>
>
[SYS_ERR_SOURCE_CAP_LOOKUP]<br>
>
Failure: (
kernel) Exceeded
depth limit of
CSpace<br>
>
[SYS_ERR_DEPTH_EXCEEDED]<br>
<br>
Grepping for
SYS_ERR_DEPTH_EXCEEDED
results in:<br>
kernel/capabilities.c-618-
// If lookup<br>
exceeded
expected depth
then table is
malformed<br>
kernel/capabilities.c-619-
if
(bits_resolved<br>
> vbits)
{<br>
kernel/capabilities.c-620-<br>
debug(SUBSYS_CAPS,
"caps_lookup_slot:
Lookup<br>
exceeded
valid bits\n"<br>
kernel/capabilities.c-621-
"Cnode<br>
bits = %u,
guard size = %u,
valid bits =
%u\n",<br>
kernel/capabilities.c-622-<br>
cnode_cap->u.cnode.bits,<br>
cnode_cap->u.cnode.guard_size,<br>
kernel/capabilities.c-623-
vbits);<br>
kernel/capabilities.c:624:
return<br>
SYS_ERR_DEPTH_EXCEEDED;<br>
kernel/capabilities.c-625-
}<br>
<br>
I'm
wondering whether
this has something
to do<br>
with the
patch that you<br>
applied...
I'm guessing that
using BIOS<br>
allocation
did not help.<br>
<br>
It might be
worth enabling the
debug for the<br>
caps system.
Can you please<br>
replace the
corresponding line
in menu.lst with:<br>
<br>
module
/x86_64/sbin/cpu
loglevel=5
logmask=0x40<br>
<br>
And send us
the debug
messages?<br>
<br>
cheers,</span></font></p>
</div>
</div>
<p class="MsoNormal"><font
face="Times New Roman"
size="3"><span
style="font-size:12.0pt">
Kornilios.____</span></font></p>
<div>
<div>
<p class="MsoNormal"><font
face="Times New
Roman" size="3"><span
style="font-size:12.0pt"><br>
<br>
<br>
<br>
<br>
>
bomp_benchmark_ft:
error spawning:
Failure while
loading<br>
> ERROR:
fish.0 in
execute_program()
../usr/fish/fish.c:102<br>
> ERROR:
Spawning Error<br>
><br>
>
Failure: (
spawn) Failure
while loading
[SPAWN_ERR_LOAD]<br>
>
Failure: (
libelf) Nested
failure in
allocator function<br>
>
[ELF_ERR_ALLOCATE]<br>
>
Failure: (
libbarrelfish)
Failure in
cap_copy()
[LIB_ERR_CAP_COPY]<br>
>
Failure: (
kernel) Error
looking up source
capability<br>
>
[SYS_ERR_SOURCE_CAP_LOOKUP]<br>
>
Failure: (
kernel) Exceeded
depth limit of
CSpace<br>
>
[SYS_ERR_DEPTH_EXCEEDED]<br>
> >
bomp_benchmark_ft
0<br>
>
cap_copy failed
for src_slot = 0,
dest_slot = 5<br>
> ERROR:
spawnd.0 in
spawn_with_caps_handler()
../usr/spawnd/service.c:352<br>
> ERROR:
spawn<br>
>
Failure: (
spawn) Failure
while loading
[SPAWN_ERR_LOAD]<br>
>
Failure: (
libelf) Nested
failure in
allocator function<br>
>
[ELF_ERR_ALLOCATE]<br>
>
Failure: (
libbarrelfish)
Failure in
cap_copy()
[LIB_ERR_CAP_COPY]<br>
>
Failure: (
kernel) Error
looking up source
capability<br>
>
[SYS_ERR_SOURCE_CAP_LOOKUP]<br>
>
Failure: (
kernel) Exceeded
depth limit of
CSpace<br>
>
[SYS_ERR_DEPTH_EXCEEDED]<br>
>
bomp_benchmark_ft:
error spawning:
Failure while
loading<br>
> ERROR:
fish.0 in
execute_program()
../usr/fish/fish.c:102<br>
> ERROR:
Spawning Error<br>
><br>
>
Failure: (
spawn) Failure
while loading
[SPAWN_ERR_LOAD]<br>
>
Failure: (
libelf) Nested
failure in
allocator function<br>
>
[ELF_ERR_ALLOCATE]<br>
>
Failure: (
libbarrelfish)
Failure in
cap_copy()
[LIB_ERR_CAP_COPY]<br>
>
Failure: (
kernel) Error
looking up source
capability<br>
>
[SYS_ERR_SOURCE_CAP_LOOKUP]<br>
>
Failure: (
kernel) Exceeded
depth limit of
CSpace<br>
>
[SYS_ERR_DEPTH_EXCEEDED]<br>
> >
bomp_benchmark_ft
1<br>
>
cap_copy failed
for src_slot = 0,
dest_slot = 5<br>
> ERROR:
spawnd.0 in
spawn_with_caps_handler()
../usr/spawnd/service.c:352<br>
> ERROR:
spawn<br>
>
Failure: (
spawn) Failure
while loading
[SPAWN_ERR_LOAD]<br>
>
Failure: (
libelf) Nested
failure in
allocator function<br>
>
[ELF_ERR_ALLOCATE]<br>
>
Failure: (
libbarrelfish)
Failure in
cap_copy()
[LIB_ERR_CAP_COPY]<br>
>
Failure: (
kernel) Error
looking up source
capability<br>
>
[SYS_ERR_SOURCE_CAP_LOOKUP]<br>
>
Failure: (
kernel) Exceeded
depth limit of
CSpace<br>
>
[SYS_ERR_DEPTH_EXCEEDED]<br>
>
bomp_benchmark_ft:
error spawning:
Failure while
loading<br>
> ERROR:
fish.0 in
execute_program()
../usr/fish/fish.c:102<br>
> ERROR:
Spawning Error<br>
><br>
>
Failure: (
spawn) Failure
while loading
[SPAWN_ERR_LOAD]<br>
>
Failure: (
libelf) Nested
failure in
allocator function<br>
>
[ELF_ERR_ALLOCATE]<br>
>
Failure: (
libbarrelfish)
Failure in
cap_copy()
[LIB_ERR_CAP_COPY]<br>
>
Failure: (
kernel) Error
looking up source
capability<br>
>
[SYS_ERR_SOURCE_CAP_LOOKUP]<br>
>
Failure: (
kernel) Exceeded
depth limit of
CSpace<br>
>
[SYS_ERR_DEPTH_EXCEEDED]<br>
> >
bomp_benchmark_ft
4<br>
>
cap_copy failed
for src_slot = 0,
dest_slot = 5<br>
> ERROR:
spawnd.0 in
spawn_with_caps_handler()
../usr/spawnd/service.c:352<br>
> ERROR:
spawn<br>
>
Failure: (
spawn) Failure
while loading
[SPAWN_ERR_LOAD]<br>
>
Failure: (
libelf) Nested
failure in
allocator function<br>
>
[ELF_ERR_ALLOCATE]<br>
>
Failure: (
libbarrelfish)
Failure in
cap_copy()
[LIB_ERR_CAP_COPY]<br>
>
Failure: (
kernel) Error
looking up source
capability<br>
>
[SYS_ERR_SOURCE_CAP_LOOKUP]<br>
>
Failure: (
kernel) Exceeded
depth limit of
CSpace<br>
>
[SYS_ERR_DEPTH_EXCEEDED]<br>
>
bomp_benchmark_ft:
error spawning:
Failure while
loading<br>
> ERROR:
fish.0 in
execute_program()
../usr/fish/fish.c:102<br>
> ERROR:
Spawning Error<br>
><br>
>
Failure: (
spawn) Failure
while loading
[SPAWN_ERR_LOAD]<br>
>
Failure: (
libelf) Nested
failure in
allocator function<br>
>
[ELF_ERR_ALLOCATE]<br>
>
Failure: (
libbarrelfish)
Failure in
cap_copy()
[LIB_ERR_CAP_COPY]<br>
>
Failure: (
kernel) Error
looking up source
capability<br>
>
[SYS_ERR_SOURCE_CAP_LOOKUP]<br>
>
Failure: (
kernel) Exceeded
depth limit of
CSpace<br>
>
[SYS_ERR_DEPTH_EXCEEDED]<br>
><br>
> many
thanks,<br>
> Antonio<br>
><br>
></span></font></p>
</div>
</div>
<p class="MsoNormal"><font
face="Times New Roman"
size="3"><span
style="font-size:12.0pt">
> On Mon, Nov 3,
2014 at 9:58 AM,
Antonio Barbalace <<a
moz-do-not-send="true" href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a>
<mailto:<a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a>>>
wrote:<br>
><br>
> Kornilios,
Stefan, Gerd,<br>
><br>
> thank you
very much! I am now
able to interact with
the terminal via the<br>
> serial
line. The patch was
necessary, note that
maxchild is 2 while
busnum<br>
> is 4.<br>
><br>
> I am
attaching the boot
logs as a reference.<br>
><br>
> appreciate
your support,<br>
> Antonio<br>
><br>
> On Fri, Oct
31, 2014 at 10:45 AM,
Gerd Zellweger <<br>
><a
moz-do-not-send="true"
href="mailto:gerd.zellweger@inf.ethz.ch" target="_blank">gerd.zellweger@inf.ethz.ch</a></span></font></p>
<div>
<div>
<p class="MsoNormal"><font
face="Times New
Roman" size="3"><span
style="font-size:12.0pt"> <mailto:<a
moz-do-not-send="true"
href="mailto:gerd.zellweger@inf.ethz.ch" target="_blank">gerd.zellweger@inf.ethz.ch</a>>>
wrote:<br>
><br>
>
Hi,<br>
><br>
>
Just in case: If
changing the
bridge program as
suggested by
Stefan is<br>
>
not helping, you
can also try this
small patch that
essentially<br>
>
disables the
assertion.<br>
>
AFAIK that bound
check there, which
is reported by
ACPI seems to be
(at<br>
>
least on our
machines) not
really a strict
limit and can be
ignored.<br>
><br>
>
Gerd<br>
><br>
><br>
>
On 2014-10-31
14:01, Stefan
Kaestle wrote:<br>
><br>
>
Hi Antonio,<br>
><br>
>
This could
be due to a bug in
the PCI bus
allocation code.<br>
>
It is worth
trying the BIOS
given PCI
allocation plan
instead. For<br>
>
that, try
using the
following
arguments to PCI
in menu.lst<br>
><br>
>
modulenounzip
/harness/sbrinz2_harness/x86_64/sbin/pci
auto<br>
>
SKB_BRIDGE_PROGRAM=BRIDGE_BIOS<br>
><br>
><br>
>
Also, can
you please enable
PCI debug output
and send the log?
For<br>
>
that,
uncomment the
following in line
17 of
usr/pci/pci_debug.h<br>
>
and<br>
>
recompile:<br>
><br>
>
#define
PCI_SERVICE_DEBUG
1<br>
><br>
>
Cheers,<br>
>
Stefan<br>
><br>
>
On 10/31/2014
11:36 AM,
Kornilios Kourtis
wrote:<br>
><br>
><br>
>
Hi
Antonio,<br>
><br>
>
[CCing
the list and Gerd]<br>
><br>
>
On Thu,
Oct 30, 2014 at
11:29:16AM -0400,
Antonio Barbalace<br>
>
wrote:<br>
><br>
><br>
>
Hi
Kornilios,<br>
><br>
>
I
re-started my
adventure with
Barrelfish this
morning with<br>
>
the<br>
>
last
mercurial<br>
>
release. I am
using tftpboot PXE
boot (modified
grub etc.).<br>
>
I
kept<br>
>
myself from<br>
>
modify the code
at the moment. But
I have to confess
that I<br>
>
added<br>
>
a
PCI_DEBUG()<br>
>
before this error
and nothing was
printed even
changing the<br>
>
loglevel= . Let
me<br>
>
know
if you prefer me
to send this error
on the forum.<br>
><br>
>
monitor:
synchronizing
clocks<br>
>
Kaluga:
pci_root_bridge<br>
>
spawnd.0:
spawning
/x86_64/sbin/pci
on core 0<br>
>
Kaluga:
pci_devices<br>
>
pci:
Unknown
commandline option
"auto" --
skipping.<br>
>
startd.0:
starting app
/x86_64/sbin/serial
on core 0<br>
>
spawnd.0:
spawning
/x86_64/sbin/serial
on core 0<br>
>
startd.0:
starting app
/x86_64/sbin/angler
on core 0<br>
>
spawnd.0:
spawning
/x86_64/sbin/angler
on core 0<br>
>
No
bootscript<br>
>
skb.0: waiting
for: pci<br>
>
skb.0: waiting
for:
serial0.terminal<br>
>
assertion
"*busnum <=
maxchild" failed:
file "../usr/pci/<br>
>
pci.c",<br>
>
line
598,<br>
>
function:
assign_bus_numbers<br>
>
Aborted<br>
>
Spawnd up.<br>
><br>
><br>
>
Sounds
like a problem
Gerd has been
dealing with. If
that's the<br>
>
case, we<br>
>
might
have a quick-fix
for it. Gerd?<br>
><br>
>
cheers,<br>
>
Kornilios.<br>
><br>
><br>
>
--<br>
>
Stefan<br>
><a
moz-do-not-send="true"
href="http://people.inf.ethz.ch/skaestle/" target="_blank">http://people.inf.ethz.ch/skaestle/</a>
[1]<br>
><br>
><br>
>
Links:<br>
>
------<br>
>
[1]<a
moz-do-not-send="true"
href="http://people.inf.ethz.ch/skaestle/" target="_blank">http://people.inf.ethz.ch/skaestle/</a><br>
><br>
>
_______________________________________________<br>
>
Barrelfish-users
mailing list<br>
><a
moz-do-not-send="true"
href="mailto:Barrelfish-users@lists.inf.ethz.ch" target="_blank">Barrelfish-users@lists.inf.ethz.ch</a></span></font></p>
</div>
</div>
<p class="MsoNormal"
style="margin-bottom:12.0pt"><font
face="Times New Roman"
size="3"><span
style="font-size:12.0pt">
<mailto:<a
moz-do-not-send="true"
href="mailto:Barrelfish-users@lists.inf.ethz.ch" target="_blank">Barrelfish-users@lists.inf.ethz.ch</a>><br>
><a
moz-do-not-send="true"
href="https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users"
target="_blank">https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users</a><br>
><br>
><br>
>
_______________________________________________<br>
>
Barrelfish-users
mailing list<br>
><a
moz-do-not-send="true"
href="mailto:Barrelfish-users@lists.inf.ethz.ch" target="_blank">Barrelfish-users@lists.inf.ethz.ch</a><br>
<mailto:<a
moz-do-not-send="true"
href="mailto:Barrelfish-users@lists.inf.ethz.ch" target="_blank">Barrelfish-users@lists.inf.ethz.ch</a>><br>
><a
moz-do-not-send="true"
href="https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users"
target="_blank">https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users</a><br>
><br>
><br>
><br>
><br>
><br>
> --<br>
> Dr. Eng.
Antonio Barbalace, PhD<br>
> Systems
Software Research
Group (SSRG)<br>
> Bradley
Department of
Electrical and
Computer Engineering<br>
> Virginia
Tech<br>
> 453 Durham
Hall (0111)<br>
> Blacksburg,
VA 24061<br>
> phone:<a
moz-do-not-send="true"
href="tel:%2B1%20%28540%29%20231-2494" target="_blank">+1 (540) 231-2494</a>
<<a
moz-do-not-send="true"
href="tel:%2B1%20%28540%29%20231-2494" target="_blank">tel:%2B1%20%28540%29%20231-2494</a>><br>
> <a
moz-do-not-send="true"
href="mailto:email%3Aantoniob@vt.edu" target="_blank">email:antoniob@vt.edu</a>
<mailto:<a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a>><br>
><br>
><br>
><br>
><br>
> --<br>
> Dr. Eng.
Antonio Barbalace, PhD<br>
> Systems
Software Research
Group (SSRG)<br>
> Bradley
Department of
Electrical and
Computer Engineering<br>
> Virginia Tech<br>
> 453 Durham Hall
(0111)<br>
> Blacksburg, VA
24061<br>
> phone:<a
moz-do-not-send="true"
href="tel:%2B1%20%28540%29%20231-2494" target="_blank">+1 (540) 231-2494</a>
<<a
moz-do-not-send="true"
href="tel:%2B1%20%28540%29%20231-2494" target="_blank">tel:%2B1%20%28540%29%20231-2494</a>><br>
> <a
moz-do-not-send="true"
href="mailto:email%3Aantoniob@vt.edu" target="_blank">
email:antoniob@vt.edu</a> <mailto:<a moz-do-not-send="true"
href="mailto:antoniob@vt.edu"
target="_blank">antoniob@vt.edu</a>><br>
<br>
<br>
<br>
>
_______________________________________________<br>
>
Barrelfish-users
mailing list<br>
><a
moz-do-not-send="true"
href="mailto:Barrelfish-users@lists.inf.ethz.ch" target="_blank">Barrelfish-users@lists.inf.ethz.ch</a><br>
<mailto:<a
moz-do-not-send="true"
href="mailto:Barrelfish-users@lists.inf.ethz.ch" target="_blank">Barrelfish-users@lists.inf.ethz.ch</a>><br>
><a
moz-do-not-send="true"
href="https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users"
target="_blank">https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users</a><br>
<br>
<br>
--____<br>
<br>
Kornilios
Kourtis____<br>
<br>
<br>
<br>
<br>
--
____<br>
<br>
Dr. Eng. Antonio
Barbalace, PhD<br>
Systems Software
Research Group (SSRG)<br>
Bradley Department of
Electrical and
Computer<br>
Engineering<br>
Virginia Tech<br>
453 Durham Hall (0111)<br>
Blacksburg, VA 24061<br>
phone: <a
moz-do-not-send="true"
href="tel:%2B1%20%28540%29%20231-2494" target="_blank">
+1 (540) 231-2494</a><br>
<<a
moz-do-not-send="true"
href="tel:%2B1%20%28540%29%20231-2494" target="_blank">tel:%2B1%20%28540%29%20231-2494</a>><br>
email: <a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a>
<mailto:<a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a>>____<br>
<br>
<br>
<br>
<br>
--
____<br>
<br>
Dr.
Eng. Antonio
Barbalace, PhD<br>
Systems Software
Research Group (SSRG)<br>
Bradley Department of
Electrical and
Computer Engineering<br>
Virginia Tech<br>
453
Durham Hall (0111)<br>
Blacksburg, VA 24061<br>
phone:
<a
moz-do-not-send="true"
href="tel:%2B1%20%28540%29%20231-2494" target="_blank">
+1 (540) 231-2494</a>
<<a
moz-do-not-send="true"
href="tel:%2B1%20%28540%29%20231-2494" target="_blank">tel:%2B1%20%28540%29%20231-2494</a>><br>
email:
<a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a>
<mailto:<a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a>>____<br>
<br>
<br>
<br>
<br>
-- ____<br>
<br>
Dr. Eng.
Antonio Barbalace, PhD<br>
Systems
Software Research
Group (SSRG)<br>
Bradley
Department of
Electrical and
Computer Engineering<br>
Virginia
Tech<br>
453 Durham
Hall (0111)<br>
Blacksburg, VA 24061<br>
phone: <a
moz-do-not-send="true" href="tel:%2B1%20%28540%29%20231-2494"
target="_blank">+1
(540) 231-2494</a>
<<a
moz-do-not-send="true"
href="tel:%2B1%20%28540%29%20231-2494" target="_blank">tel:%2B1%20%28540%29%20231-2494</a>><br>
email: <a
moz-do-not-send="true" href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a>
<mailto:<a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a>>____<br>
<br>
<br>
<br>
<br>
-- ____<br>
<br>
Dr. Eng.
Antonio Barbalace, PhD<br>
Systems
Software Research
Group (SSRG)<br>
Bradley
Department of
Electrical and
Computer Engineering<br>
Virginia Tech<br>
453 Durham
Hall (0111)<br>
Blacksburg, VA
24061<br>
phone: <a
moz-do-not-send="true"
href="tel:%2B1%20%28540%29%20231-2494" target="_blank">+1 (540) 231-2494</a>
<<a
moz-do-not-send="true"
href="tel:%2B1%20%28540%29%20231-2494" target="_blank">tel:%2B1%20%28540%29%20231-2494</a>><br>
email: <a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a>
<mailto:<a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a>>____<br>
<br>
<br>
<br>
<br>
--<br>
Dr. Eng. Antonio
Barbalace, PhD<br>
Systems Software
Research Group (SSRG)<br>
Bradley Department
of Electrical and
Computer Engineering<br>
Virginia Tech<br>
453 Durham Hall
(0111)<br>
Blacksburg, VA
24061<br>
phone: <a
moz-do-not-send="true"
href="tel:%2B1%20%28540%29%20231-2494" target="_blank">+1 (540) 231-2494</a>
<<a
moz-do-not-send="true"
href="tel:%2B1%20%28540%29%20231-2494" target="_blank">tel:%2B1%20%28540%29%20231-2494</a>><br>
email: <a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a>
<mailto:<a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a>><br>
<br>
<br>
<br>
<br>
--<br>
Dr. Eng. Antonio
Barbalace, PhD<br>
Systems Software
Research Group (SSRG)<br>
Bradley Department of
Electrical and
Computer Engineering<br>
Virginia Tech<br>
453 Durham Hall (0111)<br>
Blacksburg, VA 24061<br>
phone: <a
moz-do-not-send="true"
href="tel:%2B1%20%28540%29%20231-2494" target="_blank">+1 (540) 231-2494</a><br>
email: <a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a>
<mailto:<a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a>><br>
<br>
<br>
_______________________________________________<br>
Barrelfish-users
mailing list<br>
<a
moz-do-not-send="true"
href="mailto:Barrelfish-users@lists.inf.ethz.ch" target="_blank">Barrelfish-users@lists.inf.ethz.ch</a><br>
<a
moz-do-not-send="true"
href="https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users"
target="_blank">https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users</a></span></font></p>
</blockquote>
</blockquote>
</div>
<p class="MsoNormal"><font
face="Times New Roman"
size="3"><span
style="font-size:12.0pt"><br>
<br clear="all">
<br>
-- </span></font></p>
<div>
<p class="MsoNormal"><font
face="Times New Roman"
size="3"><span
style="font-size:12.0pt">Dr.
Eng. Antonio Barbalace,
PhD<br>
Systems Software Research
Group (SSRG)<br>
Bradley Department of
Electrical and Computer
Engineering<br>
Virginia Tech<br>
453 Durham Hall (0111)<br>
Blacksburg, VA 24061<br>
phone: <a
moz-do-not-send="true"
href="tel:%2B1%20%28540%29%20231-2494"
target="_blank">+1 (540)
231-2494</a><br>
email: <a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu"
target="_blank">antoniob@vt.edu</a></span></font></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><font face="Times
New Roman" size="3"><span
style="font-size:12.0pt"> </span></font></p>
<div>
<p class="MsoNormal"><font face="Times
New Roman" size="3"><span
style="font-size:12.0pt">On Mon,
Nov 10, 2014 at 10:00 AM, Simon
Gerber <<a
moz-do-not-send="true"
href="mailto:simon.gerber@inf.ethz.ch"
target="_blank">simon.gerber@inf.ethz.ch</a>>
wrote:</span></font></p>
<blockquote
style="border:none;border-left:solid
#cccccc 1.0pt;padding:0cm 0cm 0cm
6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal"><font
face="Times New Roman" size="3"><span
style="font-size:12.0pt">Hi
Antonio,<br>
<br>
[@list: sorry for the spam,
I'm not sure if Antonio is
subscribed and mistakenly
replied only to the list...]<br>
<br>
I've investigated a bit and
have produced two patches that
make the FT benchmark work.<br>
<br>
patch 1 fixes some confusion
when creating different cnodes
and increases the size of the
page cnode by a factor of two.
This fixes your immediate
problem of not being able to
run the FT benchmark.
Additionally, changing the
page cnode size should now be
as easy as modifying
PAGE_CNODE_BITS in
include/barrelfish_kpi/init.h.<br>
<br>
patch 2 fixes the FT benchmark
itself which was not working
because the default stack size
on Barrelfish (64kB) is too
small for the fft
implementation which creates
rather large arrays on the
stack. This patch is not
necessary if you're using a
release older than
release2014-08-29.<br>
<br>
Best,<br>
-- Simon<br>
<br>
On 08.11.2014 18:43, Antonio
Barbalace wrote:</span></font></p>
<blockquote
style="border:none;border-left:solid
#cccccc 1.0pt;padding:0cm 0cm 0cm
6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal"><font
face="Times New Roman"
size="3"><span
style="font-size:12.0pt">All,<br>
<br>
Clearly I need a way to
make larger memory
allocations. Please
advise.<br>
<br>
thank you very much,<br>
Antonio<br>
<br>
----------------------------------------------------------------
LOG:<br>
<br>
> bomp_benchmark_ft
1<br>
spawnd.0:
single_slot_alloc_init_raw:
ret: 0x6a1528 ret->a
.alloc:<br>
0x492f80 .free: 0x492d80
.nslot: 128 .space: 128<br>
spawnd.0:
single_slot_alloc_init_raw:
ret->head: 0x17692c8
ret->head<br>
->slot: 0 ->space:
128 ->next: 0x0<br>
spawnd.0:
spawn_arch_load:
ROOTCN_SLOT_SEGCN: 4
DEFAULT_CNODE_SLOTS: 32<br>
spawnd.0: elf_allocate:
size: 888832 sz: 4096<br>
spawnd.0:
single_slot_alloc_init_raw:
ret: 0x8013c80018
ret->a .alloc:<br>
0x492f80 .free: 0x492d80
.nslot: 1024 .space:
1024<br>
spawnd.0:
single_slot_alloc_init_raw:
ret->head:
0x8013c800a8
ret->head<br>
->slot: 0 ->space:
1024 ->next: 0x0<br>
spawnd.0: elf_allocate:
size: 439181312 sz: 8192<br>
spawnd.0: salloc: sca:
0x6a1528 sca->a
.alloc: 0x492f80 .free:
0x492d80<br>
.nslot: 128 .space: 0<br>
spawnd.0: salloc:
sca->head: 0x0
->slot: 0 ->space:
0 ->next: 0x0<br>
ERROR: spawnd.0 in
elf_allocate()<br>
../lib/spawndomain/arch/x86/spawn_arch.c:166<br>
ERROR:
lib_err_memobj_pagefault_handler<br>
Failure: (
libbarrelfish) Failure
in pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish) Failure
in pmap_do_map()
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish) Failure
in get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
Failure: (
libbarrelfish) Failure
in alloc_vnode()<br>
[LIB_ERR_PMAP_ALLOC_VNODE]<br>
Failure: (
libbarrelfish) Failure
in slot_alloc()
[LIB_ERR_SLOT_ALLOC]<br>
Failure: (
libbarrelfish) Slot
allocator is out of
space<br>
[LIB_ERR_SLOT_ALLOC_NO_SPACE]<br>
ERROR: spawnd.0 in
spawn_with_caps_handler()
../usr/spawnd/service.c:352<br>
ERROR: spawn<br>
Failure: (
spawn) Failure while
loading [SPAWN_ERR_LOAD]<br>
Failure: (
libelf) Nested failure
in allocator function<br>
[ELF_ERR_ALLOCATE]<br>
Failure: (
libbarrelfish) Failure
in
memobj_pagefault_handler()<br>
[LIB_ERR_MEMOBJ_PAGEFAULT_HANDLER]<br>
Failure: (
libbarrelfish) Failure
in pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish) Failure
in pmap_do_map()
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish) Failure
in get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
bomp_benchmark_ft: error
spawning: Failure while
loading<br>
ERROR: fish.0 in
execute_program()
../usr/fish/fish.c:102<br>
ERROR: Spawning Error<br>
<br>
Failure: (
spawn) Failure while
loading [SPAWN_ERR_LOAD]<br>
Failure: (
libelf) Nested failure
in allocator function<br>
[ELF_ERR_ALLOCATE]<br>
Failure: (
libbarrelfish) Failure
in
memobj_pagefault_handler()<br>
[LIB_ERR_MEMOBJ_PAGEFAULT_HANDLER]<br>
Failure: (
libbarrelfish) Failure
in pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish) Failure
in pmap_do_map()
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish) Failure
in get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
<br>
----------------------------------------------------------------
READELF:<br>
<br>
barrelfish/build/x86_64/sbin$
readelf -l
bomp_benchmark_ft<br>
<br>
Elf file type is EXEC
(Executable file)<br>
Entry point 0x400455<br>
There are 5 program
headers, starting at
offset 64<br>
<br>
Program Headers:<br>
Type
Offset
VirtAddr
PhysAddr<br>
FileSiz
MemSiz
Flags Align<br>
LOAD
0x0000000000000000
0x0000000000400000
0x0000000000400000<br>
0x00000000000d8e60
0x00000000000d8e60 R E
1000<br>
LOAD
0x00000000000d90d0
0x00000000004d90d0
0x00000000004d90d0<br>
0x0000000000011c5c
0x000000001a2d55f8 RW
1000<br>
GNU_EH_FRAME
0x00000000000b718c
0x00000000004b718c
0x00000000004b718c<br>
0x0000000000003c54
0x0000000000003c54 R
4<br>
GNU_STACK
0x0000000000000000
0x0000000000000000
0x0000000000000000<br>
0x0000000000000000
0x0000000000000000 RWE
10<br>
GNU_RELRO
0x00000000000d90d0
0x00000000004d90d0
0x00000000004d90d0<br>
0x0000000000000f30
0x0000000000000f30 R
1<br>
<br>
Section to Segment
mapping:<br>
Segment Sections...<br>
00 .text .rodata
.eh_frame_hdr .eh_frame</span></font></p>
</div>
</div>
<p class="MsoNormal"><font
face="Times New Roman"
size="3"><span
style="font-size:12.0pt">
01 .ctors .<a
moz-do-not-send="true"
href="http://data.rel.ro"
target="_blank">data.rel.ro</a>
<<a
moz-do-not-send="true"
href="http://data.rel.ro"
target="_blank">http://data.rel.ro</a>>
.got .got.plt .data<br>
.bss<br>
02 .eh_frame_hdr<br>
03<br>
04 .ctors .<a
moz-do-not-send="true"
href="http://data.rel.ro"
target="_blank">data.rel.ro</a>
<<a
moz-do-not-send="true"
href="http://data.rel.ro"
target="_blank">http://data.rel.ro</a>>
.got<br>
<br>
----------------------------------------------------------------
EOF<br>
<br>
<br>
On Fri, Nov 7, 2014 at 9:11
AM, Antonio Barbalace <<a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu"
target="_blank">antoniob@vt.edu</a></span></font></p>
<div>
<div>
<p class="MsoNormal"><font
face="Times New Roman"
size="3"><span
style="font-size:12.0pt"><mailto:<a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a>>>
wrote:<br>
<br>
Dear Reto,<br>
<br>
hope the following
will help. As a note, I
tried to increase the<br>
sizes but I was not
successful in doing
that, any suggestion?<br>
<br>
many thanks,<br>
Antonio<br>
<br>
----------------------------------------------------------------
CODE:<br>
<br>
@
lib/spawndomain/arch/x86/spawn_arch.c:spawn_arch_load(
.. )<br>
<br>
// XXX: this
code assumes that
elf_load never needs
more than<br>
32 slots for<br>
// text frame
capabilities.<br>
err =
cnode_create_raw(cnode_cap,
&si->segcn,<br>
DEFAULT_CNODE_SLOTS,
NULL);<br>
debug_printf("%s:
ROOTCN_SLOT_SEGCN: %ld
DEFAULT_CNODE_SLOTS:
%ld\n",<br>
__FUNCTION__, (unsigned
long)ROOTCN_SLOT_SEGCN,<br>
(unsigned
long)DEFAULT_CNODE_SLOTS);<br>
if
(err_is_fail(err)) {<br>
<br>
----------------------------------------------------------------
LOG:<br>
<br>
>
bomp_benchmark_ft 1<br>
spawnd.0:
single_slot_alloc_init_raw:
ret: 0x6a1528 ret->a
.alloc:<br>
0x492f40 .free:
0x492d40 .nslot: 128
.space: 128<br>
spawnd.0:
single_slot_alloc_init_raw:
ret->head: 0x17692c8
ret->head<br>
->slot: 0
->space: 128
->next: 0x0<br>
spawnd.0:
spawn_arch_load:
ROOTCN_SLOT_SEGCN: 4
DEFAULT_CNODE_SLOTS: 32<br>
spawnd.0:
single_slot_alloc_init_raw:
ret: 0x8013c80018
ret->a<br>
.alloc: 0x492f40
.free: 0x492d40 .nslot:
1024 .space: 1024<br>
spawnd.0:
single_slot_alloc_init_raw:
ret->head:
0x8013c800a8<br>
ret->head
->slot: 0 ->space:
1024 ->next: 0x0<br>
spawnd.0: salloc:
sca: 0x6a1528 sca->a
.alloc: 0x492f40 .free:<br>
0x492d40 .nslot: 128
.space: 0<br>
<br>
spawnd.0: salloc:
sca->head: 0x0
->slot: 0 ->space:
0 ->next: 0x0<br>
ERROR: spawnd.0 in
elf_allocate()<br>
../lib/spawndomain/arch/x86/spawn_arch.c:165<br>
ERROR:
lib_err_memobj_pagefault_handler<br>
Failure: (
libbarrelfish) Failure
in pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish) Failure
in pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish) Failure
in get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
Failure: (
libbarrelfish) Failure
in alloc_vnode()<br>
[LIB_ERR_PMAP_ALLOC_VNODE]<br>
Failure: (
libbarrelfish) Failure
in slot_alloc()
[LIB_ERR_SLOT_ALLOC]<br>
Failure: (
libbarrelfish) Slot
allocator is out of
space<br>
[LIB_ERR_SLOT_ALLOC_NO_SPACE]<br>
ERROR: spawnd.0 in
spawn_with_caps_handler()
../usr/spawnd/service.c:352<br>
ERROR: spawn<br>
Failure: (
spawn) Failure while
loading [SPAWN_ERR_LOAD]<br>
Failure: (
libelf) Nested failure
in allocator function<br>
[ELF_ERR_ALLOCATE]<br>
Failure: (
libbarrelfish) Failure
in
memobj_pagefault_handler()<br>
[LIB_ERR_MEMOBJ_PAGEFAULT_HANDLER]<br>
Failure: (
libbarrelfish) Failure
in pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish) Failure
in pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish) Failure
in get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
bomp_benchmark_ft:
error spawning: Failure
while loading<br>
ERROR: fish.0 in
execute_program()
../usr/fish/fish.c:102<br>
ERROR: Spawning
Error<br>
<br>
Failure: (
spawn) Failure while
loading [SPAWN_ERR_LOAD]<br>
Failure: (
libelf) Nested failure
in allocator function<br>
[ELF_ERR_ALLOCATE]<br>
Failure: (
libbarrelfish) Failure
in
memobj_pagefault_handler()<br>
[LIB_ERR_MEMOBJ_PAGEFAULT_HANDLER]<br>
Failure: (
libbarrelfish) Failure
in pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish) Failure
in pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish) Failure
in get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
>
bomp_benchmark_ft 2<br>
spawnd.0:
single_slot_alloc_init_raw:
ret: 0x6a1528 ret->a
.alloc:<br>
0x492f40 .free:
0x492d40 .nslot: 128
.space: 128<br>
spawnd.0:
single_slot_alloc_init_raw:
ret->head: 0x68f468
ret->head<br>
->slot: 0
->space: 128
->next: 0x0<br>
spawnd.0:
spawn_arch_load:
ROOTCN_SLOT_SEGCN: 4
DEFAULT_CNODE_SLOTS: 32<br>
spawnd.0: salloc:
sca: 0x6a1528 sca->a
.alloc: 0x492f40 .free:<br>
0x492d40 .nslot: 128
.space: 0<br>
<br>
spawnd.0: salloc:
sca->head: 0x0
->slot: 0 ->space:
0 ->next: 0x0<br>
ERROR: spawnd.0 in
elf_allocate()<br>
../lib/spawndomain/arch/x86/spawn_arch.c:165<br>
ERROR:
lib_err_memobj_pagefault_handler<br>
Failure: (
libbarrelfish) Failure
in pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish) Failure
in pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish) Failure
in get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
Failure: (
libbarrelfish) Failure
in alloc_vnode()<br>
[LIB_ERR_PMAP_ALLOC_VNODE]<br>
Failure: (
libbarrelfish) Failure
in slot_alloc()
[LIB_ERR_SLOT_ALLOC]<br>
Failure: (
libbarrelfish) Slot
allocator is out of
space<br>
[LIB_ERR_SLOT_ALLOC_NO_SPACE]<br>
ERROR: spawnd.0 in
spawn_with_caps_handler()
../usr/spawnd/service.c:352<br>
ERROR: spawn<br>
Failure: (
spawn) Failure while
loading [SPAWN_ERR_LOAD]<br>
Failure: (
libelf) Nested failure
in allocator function<br>
[ELF_ERR_ALLOCATE]<br>
Failure: (
libbarrelfish) Failure
in
memobj_pagefault_handler()<br>
[LIB_ERR_MEMOBJ_PAGEFAULT_HANDLER]<br>
Failure: (
libbarrelfish) Failure
in pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish) Failure
in pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish) Failure
in get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
bomp_benchmark_ft:
error spawning: Failure
while loading<br>
ERROR: fish.0 in
execute_program()
../usr/fish/fish.c:102<br>
ERROR: Spawning
Error<br>
<br>
Failure: (
spawn) Failure while
loading [SPAWN_ERR_LOAD]<br>
Failure: (
libelf) Nested failure
in allocator function<br>
[ELF_ERR_ALLOCATE]<br>
Failure: (
libbarrelfish) Failure
in
memobj_pagefault_handler()<br>
[LIB_ERR_MEMOBJ_PAGEFAULT_HANDLER]<br>
Failure: (
libbarrelfish) Failure
in pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish) Failure
in pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish) Failure
in get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
<br>
<br>
On Fri, Nov 7, 2014
at 4:20 AM, Achermann
Reto<br>
<<a
moz-do-not-send="true"
href="mailto:retoachermann@student.ethz.ch" target="_blank">retoachermann@student.ethz.ch</a></span></font></p>
</div>
</div>
<p class="MsoNormal"><font
face="Times New Roman"
size="3"><span
style="font-size:12.0pt">
<mailto:<a
moz-do-not-send="true"
href="mailto:retoachermann@student.ethz.ch"
target="_blank">retoachermann@student.ethz.ch</a>>>
wrote:<br>
<br>
Hi Antonio,____<br>
<br>
__ __<br>
<br>
Just another
thought. I am not sure if
the problem at hand is<br>
related to a hard
limit on the maximum number
of slots in the<br>
SEGCN:____<br>
<br>
__ __<br>
<br>
/*
lib/spawndomain/arch/x86/spawn_arch.c
*/____<br>
<br>
261 // XXX: this
code assumes that elf_load
never needs more<br>
than 32 slots
for____<br>
<br>
262 // text
frame capabilities.____<br>
<br>
__ __<br>
<br>
The mapping is done
with the caps in the SEGCN
of the ELF. Can<br>
you verify how many
slots you use when loading
the ELF?____<br>
<br>
__ __<br>
<br>
-- Reto____<br>
<br>
__ __<br>
<br>
*From:*Antonio
Barbalace [mailto:<a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu"
target="_blank">antoniob@vt.edu</a><br>
<mailto:<a
moz-do-not-send="true"
href="mailto:antoniob@vt.edu"
target="_blank">antoniob@vt.edu</a>>]<br>
*Sent:* Friday,
November 7, 2014 3:24 AM<br>
*To:* Kornilios
Kourtis; Antonio Barbalace;
Zellweger Gerd;<br>
<a
moz-do-not-send="true"
href="mailto:barrelfish-users@lists.inf.ethz.ch"
target="_blank">barrelfish-users@lists.inf.ethz.ch</a><br>
<mailto:<a
moz-do-not-send="true"
href="mailto:barrelfish-users@lists.inf.ethz.ch"
target="_blank">barrelfish-users@lists.inf.ethz.ch</a>><br>
*Subject:* Re:
[Barrelfish-users]
barrelfish help!____<br>
<br>
__ __<br>
<br>
I added some more
printfs ... if it can help
solve the problem.____</span></font></p>
<div>
<div>
<p class="MsoNormal"
style="margin-bottom:12.0pt"><font
face="Times New Roman"
size="3"><span
style="font-size:12.0pt"><br>
<br>
<br>
>
bomp_benchmark_ft 1<br>
spawnd.0:
single_slot_alloc_init_raw:
ret: 0x6a1528 ret->a<br>
.alloc: 0x492f10
.free: 0x492d10 .nslot:
128 .space: 128<br>
spawnd.0:
single_slot_alloc_init_raw:
ret->head: 0x76c8f8<br>
ret->head
->slot: 0 ->space:
128 ->next: 0x0<br>
spawnd.0:
single_slot_alloc_init_raw:
ret: 0x8013c80018
ret->a<br>
.alloc: 0x492f10
.free: 0x492d10 .nslot:
1024 .space: 1024<br>
spawnd.0:
single_slot_alloc_init_raw:
ret->head:
0x8013c800a8<br>
ret->head
->slot: 0 ->space:
1024 ->next: 0x0<br>
spawnd.0:
salloc: sca: 0x6a1528
sca->a .alloc:
0x492f10 .free:<br>
0x492d10 .nslot:
128 .space: 0<br>
spawnd.0:
salloc:
sca->head: 0x0
->slot: 0 ->space:
0<br>
->next: 0x0<br>
ERROR: spawnd.0
in elf_allocate()<br>
../lib/spawndomain/arch/x86/spawn_arch.c:165<br>
ERROR:
lib_err_memobj_pagefault_handler<br>
Failure: (
libbarrelfish) Failure
in pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish) Failure
in pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish) Failure
in get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
Failure: (
libbarrelfish) Failure
in alloc_vnode()<br>
[LIB_ERR_PMAP_ALLOC_VNODE]<br>
Failure: (
libbarrelfish) Failure
in slot_alloc()<br>
[LIB_ERR_SLOT_ALLOC]<br>
Failure: (
libbarrelfish) Slot
allocator is out of
space<br>
[LIB_ERR_SLOT_ALLOC_NO_SPACE]<br>
ERROR: spawnd.0
in
spawn_with_caps_handler()<br>
../usr/spawnd/service.c:352<br>
ERROR: spawn<br>
Failure: (
spawn) Failure while
loading [SPAWN_ERR_LOAD]<br>
Failure: (
libelf) Nested
failure in allocator
function<br>
[ELF_ERR_ALLOCATE]<br>
Failure: (
libbarrelfish) Failure
in
memobj_pagefault_handler()<br>
[LIB_ERR_MEMOBJ_PAGEFAULT_HANDLER]<br>
Failure: (
libbarrelfish) Failure
in pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish) Failure
in pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish) Failure
in get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
bomp_benchmark_ft: error
spawning: Failure while
loading<br>
ERROR: fish.0 in
execute_program()
../usr/fish/fish.c:102<br>
ERROR: Spawning
Error<br>
<br>
Failure: (
spawn) Failure while
loading [SPAWN_ERR_LOAD]<br>
Failure: (
libelf) Nested
failure in allocator
function<br>
[ELF_ERR_ALLOCATE]<br>
Failure: (
libbarrelfish) Failure
in
memobj_pagefault_handler()<br>
[LIB_ERR_MEMOBJ_PAGEFAULT_HANDLER]<br>
Failure: (
libbarrelfish) Failure
in pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish) Failure
in pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish) Failure
in get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
>
bomp_benchmark_ft 2<br>
spawnd.0:
single_slot_alloc_init_raw:
ret: 0x6a1528 ret->a<br>
.alloc: 0x492f10
.free: 0x492d10 .nslot:
128 .space: 128<br>
spawnd.0:
single_slot_alloc_init_raw:
ret->head: 0x76a148<br>
ret->head
->slot: 0 ->space:
128 ->next: 0x0<br>
spawnd.0:
salloc: sca: 0x6a1528
sca->a .alloc:
0x492f10 .free:<br>
0x492d10 .nslot:
128 .space: 0<br>
spawnd.0:
salloc:
sca->head: 0x0
->slot: 0 ->space:
0<br>
->next: 0x0<br>
ERROR: spawnd.0
in elf_allocate()<br>
../lib/spawndomain/arch/x86/spawn_arch.c:165<br>
ERROR:
lib_err_memobj_pagefault_handler<br>
Failure: (
libbarrelfish) Failure
in pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish) Failure
in pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish) Failure
in get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
Failure: (
libbarrelfish) Failure
in alloc_vnode()<br>
[LIB_ERR_PMAP_ALLOC_VNODE]<br>
Failure: (
libbarrelfish) Failure
in slot_alloc()<br>
[LIB_ERR_SLOT_ALLOC]<br>
Failure: (
libbarrelfish) Slot
allocator is out of
space<br>
[LIB_ERR_SLOT_ALLOC_NO_SPACE]<br>
ERROR: spawnd.0
in
spawn_with_caps_handler()<br>
../usr/spawnd/service.c:352<br>
ERROR: spawn<br>
Failure: (
spawn) Failure while
loading [SPAWN_ERR_LOAD]<br>
Failure: (
libelf) Nested
failure in allocator
function<br>
[ELF_ERR_ALLOCATE]<br>
Failure: (
libbarrelfish) Failure
in
memobj_pagefault_handler()<br>
[LIB_ERR_MEMOBJ_PAGEFAULT_HANDLER]<br>
Failure: (
libbarrelfish) Failure
in pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish) Failure
in pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish) Failure
in get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]<br>
bomp_benchmark_ft: error
spawning: Failure while
loading<br>
ERROR: fish.0 in
execute_program()
../usr/fish/fish.c:102<br>
ERROR: Spawning
Error<br>
<br>
Failure: (
spawn) Failure while
loading [SPAWN_ERR_LOAD]<br>
Failure: (
libelf) Nested
failure in allocator
function<br>
[ELF_ERR_ALLOCATE]<br>
Failure: (
libbarrelfish) Failure
in
memobj_pagefault_handler()<br>
[LIB_ERR_MEMOBJ_PAGEFAULT_HANDLER]<br>
Failure: (
libbarrelfish) Failure
in pmap_map()
[LIB_ERR_PMAP_MAP]<br>
Failure: (
libbarrelfish) Failure
in pmap_do_map()<br>
[LIB_ERR_PMAP_DO_MAP]<br>
Failure: (
libbarrelfish) Failure
in get_mapping()<br>
[LIB_ERR_PMAP_GET_PTABLE]</span></font></p>
</div>
</div>
</blockquote>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
...<br>
<br>
[Message clipped] </blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
<div class="gmail_signature">Dr. Eng. Antonio Barbalace, PhD<br>
Systems Software Research Group (SSRG)<br>
Bradley Department of Electrical and Computer Engineering<br>
Virginia Tech<br>
453 Durham Hall (0111)<br>
Blacksburg, VA 24061<br>
phone: +1 (540) 231-2494<br>
email: <a moz-do-not-send="true"
href="mailto:antoniob@vt.edu" target="_blank">antoniob@vt.edu</a></div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
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>