Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 78269 invoked from network); 29 Apr 2008 03:08:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Apr 2008 03:08:57 -0000 Received: (qmail 54989 invoked by uid 500); 29 Apr 2008 03:08:53 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 54954 invoked by uid 500); 29 Apr 2008 03:08:53 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 54943 invoked by uid 99); 29 Apr 2008 03:08:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Apr 2008 20:08:53 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of xiaofeng.li@gmail.com designates 74.125.46.153 as permitted sender) Received: from [74.125.46.153] (HELO yw-out-1718.google.com) (74.125.46.153) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Apr 2008 03:08:08 +0000 Received: by yw-out-1718.google.com with SMTP id 5so510146ywm.0 for ; Mon, 28 Apr 2008 20:08:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=OaQDHeJGxS/WTp9l9BE9j9DqzzDfJa11hTp6eViQBqM=; b=nDFYs53glGz2m88EkuCeXjx+OHuPx70VOZDmXHprwpQO+bN6I7Rq+z1oaLz+mbvABdZk9IuvOFHHcv5Ljfw8ZFqAqTkd/P3ZsGl2WJ7E/9+KjRHNwqOjPeK1LnIDSTVVWBWM40+KkXBi4aaJcXZIrVC1vkNLGG8hKb84DKV0rCQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dMhdXwAXxxS987qnfMy3Q49eMqtH/hZms/8uZqz08wRguap3g2fn4JlDNPmkZmK5TiCpWI31EjHpFyBvl5VlwMEpuNYxbBtWPQEdbEfp3O5260eKbJMP3tlwTu1yg8D3c+z7wmHtno5MvLf3WAmb+C+tO3XmRD/EJMf7qyYn998= Received: by 10.150.54.1 with SMTP id c1mr4613574yba.63.1209438496593; Mon, 28 Apr 2008 20:08:16 -0700 (PDT) Received: by 10.151.13.18 with HTTP; Mon, 28 Apr 2008 20:08:16 -0700 (PDT) Message-ID: <9623c9a50804282008u5d109e5fh9d520a8ad49bd940@mail.gmail.com> Date: Tue, 29 Apr 2008 11:08:16 +0800 From: "Xiao-Feng Li" To: dev@harmony.apache.org Subject: Re: JRE Lite In-Reply-To: <728dc7fa0804281946g640acb51i36c343601a6c85a8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <002301c87be9$3afaf1e0$0300000a@animal> <728dc7fa0804281217t663b41dave9f00f8c3c3648a2@mail.gmail.com> <9623c9a50804281641i79bd6996ic26c151c682fcab7@mail.gmail.com> <728dc7fa0804281946g640acb51i36c343601a6c85a8@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Apr 29, 2008 at 10:46 AM, Sergey Salishev wrote: > Hi Xiao-Feng, > > I wrote mostly about RE JRE. Harmony currenty lacks both features - class > data sharing and kernel distribution. The 3MB statement is only an > interpretation of the Alexey's link abount the new distribution mode of 6u10 > release. > > I think *HARMONY-5513* > covers the class data sharing feature for Harmony, but it's closed. Ok, I see. We may want to contact the JIRA reporter checking if he still has any patch available for POC, even not applicable. Thanks. xiaofeng > Thanks. > Sergey. > > > > > On Tue, Apr 29, 2008 at 3:41 AM, Xiao-Feng Li wrote: > > > Sergey, interesting comments. Startup is surely a topic that should be > > addressed. Your comments are helpful. > > > > I am not very sure about the footprint. Does Harmony have a solution > > for small footprint? What is "With the Kernel distribution it's only > > 3MB"? Thanks. > > > > -xiaofeng > > > > On Tue, Apr 29, 2008 at 3:17 AM, Sergey Salishev > > wrote: > > > Hi, > > > > > > Alexey, thanks for the link. I don't think the distribution size is the > > > biggest JRE problem for client applications. Anyway even without Kernel > > > distribution RE JRE is only 15MB which is substantially smaller than > > .NET > > > framework redistributable. With the Kernel distribution it's only 3MB > > about > > > 2x Flash Player size :) > > > > > > JRE's three biggest problems I think are slow startup, large footprint > > and > > > GC pauses. The footprint problem is generally solved by data sharing > > between > > > JVM instances. The GC pauses can be helped by using incremental or > > > concurrent GC. > > > > > > The startup time tougher problem. It's almost unrelated to the > > ditribution > > > size as only the used classes are loaded. But it's governed by the > > class > > > parsing and no-opt JIT/interpreter overhead. It's possible to make JRE > > > startup to be more lean and mean. But the real answer here is excluding > > the > > > classloading and JIT phase from startup altogether at least for > > frequently > > > used components. The good news are that most of the frequently used > > classes > > > for small applications are located in class libraries. RE JRE as I > > remember > > > already can precompile rt.jar and use that fact. .NET has a signed > > binary > > > module cache and the application installer can compile the model AOT > > and > > > place it to cache. > > > > > > The bbiggest problems of AOT compiled module caching are class > > versioning > > > and security. I think it's possible to implement such mechanism for > > Java > > > using Jar files as an atomic modules for AOT caching. In this case the > > Jar > > > signature would be used for module versioning and ensuring the binary > > code > > > is unmodified. We already made some experiments and caching on > > individual > > > method level doesn't give any performance boost due to class loading > > and > > > signing overhead. > > > > > > Thanks. > > > Sergey. > > > > > > 2008/4/28 Alexey Petrenko : > > > > > > > > > > > > > > > > > > > http://java.sun.com/developer/technicalArticles/javase/java6u10/index.html#kernel > > > > > > > > > > > > > > > -- > > http://xiao-feng.blogspot.com > > > -- http://xiao-feng.blogspot.com