<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi,<br>
<br>
Thanks for your reply.<br>
<br>
For my problem, my architecture requires 64KB small page size, much larger than 4KB, so that consumes much memory when running the function of &quot;spawn_module(...)&quot; (startup.c:174), and I noticed that in this function, when it allocates memory for &quot;slot_alloc_cn0&quot;,
 for example, it requests &quot;OBJBITS_CTE &#43; SLOT_ALLOC_CNODE_BITS&quot; amount of memory, in which &quot;SLOT_ALLOC_CNODE_BITS&quot; is defined as &quot;DEFAULT_CNODE_BITS * 2&quot; (barrelfish/init.h:91), which it is too big in my case. And the number of allocated memory grows exponentially
 with the page size. What it is the desired meaning of the &quot;* 2&quot;?<br>
<br>
What is the meaning of this three CNodes of &quot;slot_alloc_cn0&quot;, &quot;slot_alloc_cn1&quot; and &quot;slot_alloc_cn2&quot;?<br>
<br>
<br>
Best regards,<br>
Xiaowen Wang<br>
<br>
<br>
----------------------------------------------------------------------------------------------------------------------------------------<br>
<pre>On Wed, Oct 10, 2012 at 01:02:27AM &#43;0000, Xiaowen Wang wrote:
&gt;<i> Recently I am porting Barrelfish to another architecture. I noticed that
</i>&gt;<i> Barrelfish has &quot;init&quot; program which requires 4K pages for its virtuall memory.
</i>&gt;<i> so does Barrelfish only allow 4K pages? or is it possible to change the size of
</i>&gt;<i> &quot;BASE_PAGE_SIZE&quot;?
</i>
In principle you should be able to set BASE_PAGE_SIZE and friends (i.e.,
BASE_PAGE_BITS, etc.) to a different value for your architecture. In
practice, however, since all the architectures we support have 4K
page sizes, this has not been tested and you might get some surprises.  I
would think that if the new value is reasonable (e.g., not too small),
most of the problems --if any-- would be easy to fix.

cheers,
Kornilios.
</pre>
<br>
</div>
</body>
</html>