Re: Endless execution on a simple test

Etienne Gagnon <[email protected]> Fri, 26 May 2006 01:33:06 -0400
Newsgroups gmane.comp.java.vm.sablevm.general
Message-ID <[email protected]>
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--===============0392273030==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="------------enig30A54B14FDDA9ABB51838CA9"

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig30A54B14FDDA9ABB51838CA9
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit

I found the problem!  Actually, SableVM is doing just fine.  Unlike
Sun's VM and Kaffe, SableVM uses as much (or as little) memory as it
needs, as long as the operating system is able to provide it.

Sun's VM and Kaffe do limit, by default, Java applications to only use
16M of memory.  One must use command-line options to provide more memory
to applications.  In my opinion, this is rather silly, as it forces end
users to anticipate memory usage of programs they run.  SableVM, on the
other hand, does the right thing; it adapts its memory usage to the
requirements of the running application.

Here's a test using Sun's JVM:

$ java Benchmark 10000 1
args2
test start
iteration : 1
matrix size : 10000
=====================
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

$ java -Xmx1024m  Benchmark 10000 1
args2
test start
iteration : 1
matrix size : 10000
=====================
0       1       2       3       4       5       6       7       8
9       10      11      12      13      14      15      16      17
18      19      20      21      22      23      24      25      26
27      28      29      30      3132       33      34      35      36
   37      38      39      40      41      42      43      44      45
   46      47      48      49      50      51      52      53      54
   55      56      57      58      59      60      61      62      6364
      65      66      67      68      69      70      71      72      73
     74      75      76      77      78      79      80      81      82
     83      84      85      86      87      88      89      90      91
     92      93      94      9596  ...

Etienne
PS: Chris, thanks for getting me, somehow, to think about this. :-)

Chris Pickett wrote:
> That's with sablevm-1.11.3 on i386.  James, maybe it's worth waiting a
> little longer before giving up.  Somehow I don't think SableVM is
> hanging, or in an infinite loop, but I may be wrong.

-- 
Etienne M. Gagnon, Ph.D.            http://www.info2.uqam.ca/~egagnon/
SableVM:                                       http://www.sablevm.org/
SableCC:                                       http://www.sablecc.org/

--------------enig30A54B14FDDA9ABB51838CA9
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEdpMSjyrJi4rH84gRAtFoAJ0Y8dleELy9LCqULewzY8PewwHYowCdFHYI
H8W04bJm5fx06DP9DztpQI4=
=N4fh
-----END PGP SIGNATURE-----

--------------enig30A54B14FDDA9ABB51838CA9--


--===============0392273030==
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

--===============0392273030==--