Subject: Kernel tuning & mmap
To: None <tech-embed@NetBSD.ORG>
From: Kyle Unice <kyle@midnighttech.com>
List: tech-embed
Date: 07/24/2002 14:27:09
This is a multi-part message in MIME format.

------=_NextPart_000_0061_01C2331E.31E4AA20
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

A couple of questions:

1. We need to strip down the RAM needs of the NetBSD kernel.  Our
current kernel is 1.3Meg with about 1 Meg of data space.  We have 8 Megs
on the board we are porting to.  We changed MAXUSERS to 1 and IOBUFS to
5% of total ram.  Does anyone have any other suggestions for reducing
the footprint of NetBSD on an embedded system?

 

2. We are using mmap to manage some device buffers and have questions as
to what the caching is for mmap buffers?  If caching is turned on, then
we should be flushing our writes before expecting a state change.  If it
is off, we should be ok.

 

Thanks

 

Kyle Unice

email: kyle@midnighttech.com

voice:801-572-0928

FAX:801-572-0478

 


------=_NextPart_000_0061_01C2331E.31E4AA20
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:"MS Mincho";
	panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
	{font-family:"Comic Sans MS";
	panose-1:3 15 7 2 3 3 2 2 2 4;}
@font-face
	{font-family:"\@MS Mincho";
	panose-1:2 2 6 9 4 2 5 8 3 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
span.EmailStyle17
	{font-family:"Comic Sans MS";
	color:blue;
	font-weight:normal;
	font-style:normal;
	text-decoration:none none;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Comic Sans =
MS"><span
style=3D'font-size:10.0pt;font-family:"Comic Sans MS";color:blue'>A =
couple of
questions:</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Comic Sans =
MS"><span
style=3D'font-size:10.0pt;font-family:"Comic Sans MS";color:blue'>1. We =
need to
strip down the RAM needs of the NetBSD kernel.&nbsp; Our current kernel =
is
1.3Meg with about 1 Meg of data space.&nbsp; We have 8 Megs on the board =
we are
porting to.&nbsp; We changed MAXUSERS to 1 and IOBUFS to 5% of total =
ram.&nbsp;
Does anyone have any other suggestions for reducing the footprint of =
NetBSD on
an embedded system?</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Comic Sans =
MS"><span
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";color:blue'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Comic Sans =
MS"><span
style=3D'font-size:10.0pt;font-family:"Comic Sans MS";color:blue'>2. We =
are using
mmap to manage some device buffers and have questions as to what the =
caching is
for mmap buffers?&nbsp; If caching is turned on, then we should be =
flushing our
writes before expecting a state change.&nbsp; If it is off, we should be =
ok.</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Comic Sans =
MS"><span
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";color:blue'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Comic Sans =
MS"><span
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";color:blue'>Thanks</span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblue face=3D"Comic Sans =
MS"><span
style=3D'font-size:10.0pt;font-family:"Comic Sans =
MS";color:blue'>&nbsp;</span></font></p>

<p class=3DMsoAutoSig><i><font size=3D4 color=3Dblue face=3D"MS =
Mincho"><span
 style=3D'font-size:14.0pt;font-family:"MS =
Mincho";color:blue;font-style:italic'>Kyle
 Unice</span></font></i></p>

<p class=3DMsoAutoSig><font size=3D2 color=3Dblue face=3D"MS =
Mincho"><span
style=3D'font-size:10.0pt;font-family:"MS Mincho";color:blue'>email:
kyle@midnighttech.com</span></font></p>

<p class=3DMsoAutoSig><font size=3D2 color=3Dblue face=3D"MS =
Mincho"><span
style=3D'font-size:10.0pt;font-family:"MS =
Mincho";color:blue'>voice:801-572-0928</span></font></p>

<p class=3DMsoAutoSig><font size=3D2 color=3Dblue face=3D"MS =
Mincho"><span
style=3D'font-size:10.0pt;font-family:"MS =
Mincho";color:blue'>FAX:801-572-0478</span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;</span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0061_01C2331E.31E4AA20--