linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Dave Hansen <haveblue@us.ibm.com>
To: Mel Gorman <mel@skynet.ie>
Cc: Badari Pulavarty <pbadari@us.ibm.com>,
	KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
	melgor@ie.ibm.com, linux-mm <linux-mm@kvack.org>
Subject: Re: [PATCH 2/2] Add mem_type in /syfs to show memblock migrate type
Date: Thu, 25 Oct 2007 11:12:15 -0700	[thread overview]
Message-ID: <1193335935.24087.22.camel@localhost> (raw)
In-Reply-To: <20071025180514.GB20345@skynet.ie>

On Thu, 2007-10-25 at 19:05 +0100, Mel Gorman wrote:
> I think Dave has a point so I would be happy with a boolean. We don't really
> care what the type is, we care about if it can be removed or not.
> 
> It also occurs to me from the "can we remove it perspective" that you may
> also want to check if the pageblock is entirely free or not. You can encounter
> a pageblock that is "Unmovable" but entirely free so it could be removed. 

The other option is to make it somewhat of a "removability score".  If
it has non-relocatable pages, then it gets a crappy score.  If it is
relocatable, give it more points.  If it has more free pages, give it
even more.  If the pages contain images of puppies, take points away.

That way, if something in userspace says, "we need to give memory back",
it can go find the _best_ section from which to give it.

But, maybe I'm just over-enginnering now. ;)

-- Dave

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2007-10-25 18:12 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-25 15:55 [PATCH 2/2] Add mem_type in /syfs to show memblock migrate type Badari Pulavarty
2007-10-25 16:07 ` Mel Gorman
2007-10-25 16:52 ` Dave Hansen
2007-10-25 17:07   ` Badari Pulavarty
2007-10-25 17:15     ` Dave Hansen
2007-10-25 17:36       ` Badari Pulavarty
2007-10-25 17:34         ` Dave Hansen
2007-10-25 18:05         ` Mel Gorman
2007-10-25 18:12           ` Dave Hansen [this message]
2007-10-26  9:50             ` Mel Gorman
2007-10-26 15:52               ` Dave Hansen
2007-10-26 16:14                 ` Mel Gorman
2007-10-26 17:18                   ` Dave Hansen
  -- strict thread matches above, loose matches on Subject: below --
2007-10-24 16:37 Badari Pulavarty
2007-10-25 10:17 ` Mel Gorman

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=1193335935.24087.22.camel@localhost \
    --to=haveblue@us.ibm.com \
    --cc=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=linux-mm@kvack.org \
    --cc=mel@skynet.ie \
    --cc=melgor@ie.ibm.com \
    --cc=pbadari@us.ibm.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).