Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 88020 invoked from network); 30 Jul 2006 10:37:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Jul 2006 10:37:19 -0000 Received: (qmail 83345 invoked by uid 500); 30 Jul 2006 10:37:15 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 83311 invoked by uid 500); 30 Jul 2006 10:37:15 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 83300 invoked by uid 99); 30 Jul 2006 10:37:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Jul 2006 03:37:15 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of xiaofeng.li@gmail.com designates 64.233.182.185 as permitted sender) Received: from [64.233.182.185] (HELO nf-out-0910.google.com) (64.233.182.185) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Jul 2006 03:37:14 -0700 Received: by nf-out-0910.google.com with SMTP id x4so219934nfb for ; Sun, 30 Jul 2006 03:36:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=idYBYBwBlZ+MPGVS/ei6H6Jj282+ZdmJE03nAt09DchmRh5usKqNrlP3xv1F0lIwRHAB0O/tzBoOzkqKZAwotXOnrqytyg+H/ifMML4xiYfIY1l24LxtdnglCGzHJRHFU318yJPOr05292U1x8kcEPeNXN8lL0KkpJT9rKLDfOM= Received: by 10.82.101.3 with SMTP id y3mr28194bub; Sun, 30 Jul 2006 03:36:52 -0700 (PDT) Received: by 10.82.131.2 with HTTP; Sun, 30 Jul 2006 03:36:52 -0700 (PDT) Message-ID: <9623c9a50607300336q7efeed54v6b54456c70a4feb8@mail.gmail.com> Date: Sun, 30 Jul 2006 18:36:52 +0800 From: "Xiao-Feng Li" To: harmony-dev@incubator.apache.org Subject: Re: [rant] Memory options in VM -- why is the default not 'unlimited' In-Reply-To: <87d5bnv2vy.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <636fd28e0607290058q21566ec0uad96426092ad891a@mail.gmail.com> <9623c9a50607290535p19d6a6eesc43769f52d5381fa@mail.gmail.com> <87d5bnv2vy.fsf@mid.deneb.enyo.de> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Agree that maximum size is still desirable for system stability reason. :-) ( I hope the OS MM can be more intelligent to deal with overcommitment.) But here in this specific discussion context, I think the word `unlimit' or `infinite' is meaning `unlimit under certain limit'. Whatever the limit is can be defined by the clever OS (which returns a ENOMEM, for example) or user heuristics. Thanks, xiaofeng On 7/30/06, Florian Weimer wrote: > * Xiao-Feng Li: > > > 1. the GC design usually hopes to have continuous memory space. The > > dynamic heap increase and decrease may have difficulty to interact > > with OS so as to keep the GC heap continuous. > > At least on Linux, you can mmap with PROT_NONE to reserve an address > range, and later populate it with backing storage with mprotect. > (Initially, the reserved address space does not count against the > reserved memory counter of the process.) Unfortunately, on 32-bit > systems, the available address space will be somewhat fragmented, so > you still need to support different regions. > > For robustness purposes, I fear you still need the maximum heap size > on Linux, unless overcommitment is turned off (which is not the > default). Otherwise, some process just dies (not necessarily the VM > that has gone awry), which can have a huge impact on system stability. > > --------------------------------------------------------------------- > Terms of use : http://incubator.apache.org/harmony/mailing.html > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org > For additional commands, e-mail: harmony-dev-help@incubator.apache.org > > --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org