Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MbDCv-0006PN-7u for mharc-grub-devel@gnu.org; Wed, 12 Aug 2009 08:45:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MbDCr-0006NM-6B for grub-devel@gnu.org; Wed, 12 Aug 2009 08:45:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MbDCl-0006K7-MK for grub-devel@gnu.org; Wed, 12 Aug 2009 08:45:27 -0400 Received: from [199.232.76.173] (port=32911 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbDCl-0006Js-6A for grub-devel@gnu.org; Wed, 12 Aug 2009 08:45:23 -0400 Received: from mail-fx0-f205.google.com ([209.85.220.205]:44380) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MbDCk-0007GU-KO for grub-devel@gnu.org; Wed, 12 Aug 2009 08:45:22 -0400 Received: by fxm1 with SMTP id 1so3489737fxm.31 for ; Wed, 12 Aug 2009 05:45:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=w3i0/4yWkY3MOVgz/FBGvkophAZPY7BA4OjXjA/n45M=; b=uJmDdk2XhyiJOXIiq6rWpBeRs/H+GIrm1klGko9op7cHvxqKJqV2Wmdog5ZQ4o9ERN NQZ360gkYo67QhQlGEgffMM8cB6D5ZQwLRRPybJNAtztaKvUf86x0tcHUzH6VJ7QYeQj oPnjUKUIwes0bGEmv+oc5ojIPjtxfSvIqqjIU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=plJ4ePfWGncue+Wb7xcCqV5Qo3fu07t+rgCvjxw4Vjhqhp4tF4AA+Inrvbjf75RCDT FONuZNCQYrsbCzhtz0Wsq08V1Mt7jKRSr1PTYHF4/7eFYi2qofk0bj2VCIsIADpPYbEd feBhJNqvxloOTThRMChXuUQOc4HikbaSAautE= MIME-Version: 1.0 Received: by 10.204.52.136 with SMTP id i8mr36136bkg.160.1250081119981; Wed, 12 Aug 2009 05:45:19 -0700 (PDT) Date: Wed, 12 Aug 2009 14:45:19 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Policy-based memory allocations (was Re: RFC: 1.97 roadmap) 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: Wed, 12 Aug 2009 12:45:29 -0000 >> > =A0- Low memory heap (useful to move code off kern/i386/pc/startup.S). >> Originally I thought of a path relocator32->relocator users->mm >> relocator32 is ready for next round of review but is untested. Now I >> think about it mm patch isn't actually dependent on relocator32, just >> you won't get some features (as loading big initrds and removal of >> os_area_size/os_area_addr fields) before relocator32 is used by all >> loaders. I will adjust mm patch to this and add >> .(text|data|bss)-lowmem section support. > > I don't understand, what is the relation between relocator in loaders and > low memory heap? Actually low memory heap is a special case of policy based allocation. My design is: I have up to 4 different policies (can be more by modifying defines but has to be hardcoded for performance reasons and multiple of 4 for alignment reasons) Every region knows which allocator it has to use together with which policy. Current allocators: -Skip. Don't use this region with given policy -First. Try to allocate as low as possible -Last. Try to allocate as high as possible -Second. Allocate second free chunk from region. It's what is used currentl= y. The idea behind that design is that often loaders need a big continuous chunk of memory so if loaders get memory from bottom and the rest takes memory from top we're likely to have a chunk of necessary size available. To take advantage of this design kernel area (first 3/4 of memory which aren't added to heap) has to be eliminated. For this to happen all loaders have to use relocator. However I can make patches without need of relocator (w/o eliminating kernel area). Just you won't get all the advantages of policy-based allocations > > I'll need to catch up with the lowmem heap discussion. =A0What's the appr= oach? > >> What about savedefault? Which savedefault way you prefer? > > I think it would be good to have. =A0But I haven't followed on the savede= fault > discussion, I just know it would build upon the existing envfile support. > >> > Bigger overhauls like the fancy menu >> I started splitting Collin's patches and actually only quite few need >> to go to the parts already present in grub2. Perhaps 1.97 can be >> brought to a state when gfxmenu can be compiled externally? > > Depends on how intrusive are those changes :-) > I'll present them and I'm ok if they are postponed. > -- > Robert Millan > > =A0The DRM opt-in fallacy: "Your data belongs to us. We will decide when = (and > =A0how) you may access your data; but nobody's threatening your freedom: = we > =A0still allow you to remove your data and not access it at all." > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > --=20 Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git