Re: [PATCH/RFC] A method for clearing out page cache

From: Nish Aravamudan (nish.aravamudan_at_gmail.com)
Date: 02/21/05

  • Next message: Bill Nottingham: "Re: Hotplug blacklist and video devices"
    Date:	Mon, 21 Feb 2005 13:52:56 -0800
    To: Martin Hicks <mort@wildopensource.com>
    
    

    On Mon, 21 Feb 2005 14:27:21 -0500, Martin Hicks
    <mort@wildopensource.com> wrote:
    >
    > Hi,
    >
    > I've made a bunch of changes that Paul suggested. I've also responded
    > to his concerns further down. Paul correctly pointed out that this
    > patch uses some helper functions that are part of the cpusets patch. I
    > should have mentioned this before.

    <snip>

    > This patch introduces a new sysctl for NUMA systems that tries to drop
    > as much of the page cache as possible from a set of nodes. The
    > motivation for this patch is for setting up High Performance Computing
    > jobs, where initial memory placement is very important to overall
    > performance.

    <snip>

    > + /* wait for the kernel threads to complete */
    > + while (atomic_read(&num_toss_threads_active) > 0) {
    > + __set_current_state(TASK_INTERRUPTIBLE);
    > + schedule_timeout(10);
    > + }

    <snip>

    Would it be possible to use msleep_interruptible() here? Or is it a
    strict check every 10 ticks, regardless of HZ? Could a comment be
    inserted indicating
    which is the case?

    Thanks,
    Nish
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Bill Nottingham: "Re: Hotplug blacklist and video devices"

    Relevant Pages

    • Re: How to debug 2.6 PReP boot hang?
      ... Try narrowing down the differences ... > This is the patch I'm using currently. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Reiser4 status: benchmarked vs. V3 (and ext3)
      ... > batches. ... I am interested in testing this out, but the latest patch on the namesys ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.0-test7-mm1
      ... This patch actually doesn't work, as is uses nr_free_buffer_pagesbefore the ... zonelists are set up. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [KJ] [announce] 2.6.10-bk13-kj
      ... Please consider replacing with the following patch: ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [parisc-linux] Re: [PATCH 3/9] mm: parisc pte atomicity
      ... using your own tmpalias area sounds much better than getting ... I've simply not wrapped my head around the races, ... it looks like we agree that my patch is necessary and valid as is; ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)