linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Paul Jackson <pj@sgi.com>
To: dave@sr71.net
Cc: linux-mm@kvack.org, balbir@in.ibm.com
Subject: Re: [RFC][PATCH] "challenged" memory controller
Date: Tue, 15 Aug 2006 15:07:21 -0700	[thread overview]
Message-ID: <20060815150721.21ff961e.pj@sgi.com> (raw)
In-Reply-To: <20060815192047.EE4A0960@localhost.localdomain>

Dave wrote:
> I've been toying with a little memory controller for the past
> few weeks, on and off.

I haven't actually thought about this much yet, but I suspect:

 1) This is missing some cpuset locking - look at the routine
    kernel/cpuset.c:__cpuset_memory_pressure_bump() for the
    locking required to reference current->cpuset, using task_lock().
    Notice that the current->cpuset reference is not valid once
    the task lock is dropped.

 2) This might not scale well, with a hot spot in the cpuset.  So
    far, I avoid any reference to the cpuset structure on hot code
    paths, especially any write references, but even read references,
    due to the above need for the task lock.

 3) There appears to be little sympathy for hanging memory controllers
    off the cpuset structure.  There is probably good technical reason
    for this; though at a minimum, the folks doing memory sharing
    controllers and the folks doing big honking NUMA iron placement have
    different perspectives.

-- 
                  I won't rest till it's the best ...
                  Programmer, Linux Scalability
                  Paul Jackson <pj@sgi.com> 1.925.600.0401

--
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:[~2006-08-15 22:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-15 19:20 dave
2006-08-15 22:07 ` Paul Jackson [this message]
2006-08-15 22:24   ` Dave Hansen
2006-08-15 22:49     ` Paul Jackson
2006-08-17 10:41   ` Balbir Singh
2006-08-17 14:47     ` Dave Hansen
2006-08-18  3:33       ` Balbir Singh
2006-08-17 16:34     ` Paul Jackson
2006-08-16  5:44 ` Matt Helsley
2006-08-16 14:00 ` Balbir Singh
2006-08-16 20:31 ` Chandra Seetharaman

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=20060815150721.21ff961e.pj@sgi.com \
    --to=pj@sgi.com \
    --cc=balbir@in.ibm.com \
    --cc=dave@sr71.net \
    --cc=linux-mm@kvack.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox