SableVM on OpenWRT

"Stefan Arentz" <[email protected]> Thu, 4 May 2006 16:00:01 +0200
Newsgroups gmane.comp.java.vm.sablevm.general
Message-ID <[email protected]>
--===============1553624971==
Content-Type: multipart/alternative; 
	boundary="----=_Part_26170_25092487.1146751201211"

------=_Part_26170_25092487.1146751201211
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Howdy,

I'm trying to find out how well a free and open java virtual machine can ru=
n
on something smallish like a Linksys WRT54G running OpenWRT (Linux 2.4).

My biggest concern is memory usage.

I made a really simple test that does:

 public static void main(String[] arguments) {
    System.out.println("Hello");
    Thread.sleep(60 * 1000);
 }

This is the initial result with the SableVM package that 'ships' with
OpenWRT RC5.

Nothing running:

root@OpenWrt:~# free
              total         used         free       shared      buffers
  Mem:        14348        10640         3708            0          772
 Swap:            0            0            0
Total:        14348        10640         3708

The test app running:

root@OpenWrt:~# free
              total         used         free       shared      buffers
  Mem:        14348        13140         1208            0          772
 Swap:            0            0            0
Total:        14348        13140         1208

That is 2500 K allocated for sablevm. Is that normal for such a trivial app=
?
Is there like a baseline memory usage?

 S.

------=_Part_26170_25092487.1146751201211
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Howdy,<br><br>I'm trying to find out how well a free and open java virtual =
machine can run on something smallish like a Linksys WRT54G running OpenWRT=
 (Linux 2.4).<br><br>My biggest concern is memory usage.<br><br>I made a re=
ally simple test that does:
<br><br>&nbsp;public static void main(String[] arguments) {<br>&nbsp;&nbsp;=
&nbsp; System.out.println(&quot;Hello&quot;);<br>&nbsp;&nbsp;&nbsp; Thread.=
sleep(60 * 1000);<br>&nbsp;}<br><br>This is the initial result with the Sab=
leVM package that 'ships' with OpenWRT RC5.
<br><br>Nothing running:<br><br>root@OpenWrt:~# free<br>&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n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nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; free&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sha=
red&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; buffers<br>&nbsp; Mem:&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp; 14348&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 131=
40&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1208&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp; 772
<br>&nbsp;Swap:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<br>To=
tal:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 14348&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp; 13140&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1=
208<br><br>That is 2500 K allocated for sablevm. Is that normal for such a =
trivial app? Is there like a baseline memory usage?
<br><br>&nbsp;S.<br><br>

------=_Part_26170_25092487.1146751201211--


--===============1553624971==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
SableVM-user mailing list
[email protected]
http://sablevm.org/lists/control/listinfo/sablevm-user

--===============1553624971==--