From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1IdXbr-00052E-CI for mharc-grub-devel@gnu.org; Thu, 04 Oct 2007 16:47:51 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IdXbp-00051M-Ct for grub-devel@gnu.org; Thu, 04 Oct 2007 16:47:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IdXbo-0004ze-JI for grub-devel@gnu.org; Thu, 04 Oct 2007 16:47:48 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IdXbo-0004zT-BD for grub-devel@gnu.org; Thu, 04 Oct 2007 16:47:48 -0400 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IdXbn-000637-Qp for grub-devel@gnu.org; Thu, 04 Oct 2007 16:47:47 -0400 Received: from [192.168.10.6] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1IdXbk-00048T-VV for grub-devel@gnu.org; Thu, 04 Oct 2007 22:47:46 +0200 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1IdXbO-0006CX-3p for grub-devel@gnu.org; Thu, 04 Oct 2007 22:47:22 +0200 Date: Thu, 4 Oct 2007 22:47:22 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20071004204722.GA23726@thorin> References: <20070731143823.GA16557@aragorn> <20070731194232.GA19385@aragorn> <20070801182716.GA12782@aragorn> <20070930201035.GA12468@thorin> <8a2a06bb0710011525o2f5b6ce3g87fc648fcbeaa886@mail.gmail.com> <20071002194257.GA29487@thorin> <8a2a06bb0710031638l681db263g7a47f6115ab3119@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8a2a06bb0710031638l681db263g7a47f6115ab3119@mail.gmail.com> Organization: free as in freedom X-Message-Flag: Microsoft discourages use of Outlook. X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-Detected-Kernel: Genre and OS details not recognized. Subject: Re: [PATCH] fix memory management on efika/pegasos X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Oct 2007 20:47:49 -0000 On Thu, Oct 04, 2007 at 01:38:55AM +0200, Marcin Kurek wrote: > Hell[o] > > > What happens if you increase HEAP_MIN_SIZE ? > > Still fails I am affraid. I wonder is there any reason to use only > first 4MB for heap ? I guess higer memory areas can be still accessed > excluding 4-16 MB ? > > I attached my proposed patch to solve this problem. It tires to > allocate 4MB heap at fixed position at 28MB (To avoid problems with > relocation later on) and if it fails use the grub_available_iterate() > as before. If should be used with ealier patch from this thread. I > tested it on Pegasos 1 (Only one machine), Pegasos 2 (With few OF > revisions starting from 2004 to 2006) and efika and it works quite > well. Doesn't sound correct to me. It seems like a workaround for a bug that we don't know exactly what it is. Why does it still fail if you increase HEAP_MIN_SIZE ? Is there any value big enough that makes it work ? Does it still fail with the same error? (not enough memory). Was _any_ region claimed at all by our code? -- Robert Millan I know my rights; I want my phone call! What use is a phone call, if you are unable to speak? (as seen on /.)