All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vincent Pelletier <subdino2004@yahoo.fr>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: doc on memory management
Date: Wed, 03 Aug 2005 22:14:58 +0200	[thread overview]
Message-ID: <42F125C2.3030703@yahoo.fr> (raw)
In-Reply-To: <200508022241.16966.okuji@enbug.org>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yoshinori K. Okuji wrote:
> I'm not sure if it is really meaningful. Only if you can prove that your 
> implementation improves something (such as memory efficiency), I will 
> incorporate it.

The test case might be hard to make.
The idea is :
if (size > h->size &&
    h->next->magic == FREE &&
    size < h->size + h->next->size)
{
  h->size += h->next->size + GRUB_MM_ALIGN;
  h->next = h->next->next;
  return h;
}

But should be done smarter, to avoid using a huge free chunk to just
increase the size by, say, 1 byte... I'll do some tests.

> The current implementation merges free regions. What is bad?

Oops, I missed it (again).

Vincent Pelletier
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFC8SXBFEQoKRQyjtURAqdBAJ9fUKks5Vip45BsCeSBDrvzfUzuMACeKmT+
UyPhKLMNHvmBVqkskF5hL0E=
=4LKn
-----END PGP SIGNATURE-----

	

	
		
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com




  reply	other threads:[~2005-08-03 20:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-02 14:41 doc on memory management Vincent Guffens
2005-08-02 15:36 ` Vladimir Serbinenko
2005-08-02 18:10   ` Vincent Guffens
2005-08-02 16:19 ` Vincent Pelletier
2005-08-02 18:06   ` Vincent Guffens
2005-08-02 19:24     ` Vincent Pelletier
2005-08-02 20:41   ` Yoshinori K. Okuji
2005-08-03 20:14     ` Vincent Pelletier [this message]
2005-08-03 11:19 ` Marco Gerards
2005-08-08 15:41   ` Vincent Guffens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42F125C2.3030703@yahoo.fr \
    --to=subdino2004@yahoo.fr \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.