Re: [PATCH 1/9] add defrag flags

From: Dave Hansen (haveblue_at_us.ibm.com)
Date: 09/27/05

  • Next message: Kyle Moffett: "Re: [PATCH 1/9] add defrag flags"
    To: Kyle Moffett <mrmacman_g4@mac.com>
    Date:	Mon, 26 Sep 2005 17:24:08 -0700
    
    

    On Mon, 2005-09-26 at 20:16 -0400, Kyle Moffett wrote:
    > On Sep 26, 2005, at 16:03:30, Joel Schopp wrote:
    > > The flags are:
    > > __GFP_USER, which corresponds to easily reclaimable pages
    > > __GFP_KERNRCLM, which corresponds to userspace pages
    >
    > Uhh, call me crazy, but don't those flags look a little backwards to
    > you? Maybe it's just me, but wouldn't it make sense to expect
    > __GFP_USER to be a userspace allocation and __GFP_KERNRCLM to be an
    > easily reclaimable kernel page?

    I think Joel simply made an error in his description.

    __GFP_KERNRCLM corresponds to pages which are kernel-allocated, but have
    some chance of being reclaimed at some point. Basically, they're things
    that will get freed back under memory pressure. This can be direct, as
    with the dcache and its slab shrinker, or more indirect as for control
    structures like buffer_heads that get reclaimed after _other_ things are
    freed.

    -- Dave

    -
    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: Kyle Moffett: "Re: [PATCH 1/9] add defrag flags"

    Relevant Pages

    • Re: [PATCH 1/9] add defrag flags
      ... >> Uhh, call me crazy, but don't those flags look a little backwards ... >> an easily reclaimable kernel page? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH 1/9] add defrag flags
      ... Uhh, call me crazy, but don't those flags look a little backwards to ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH] minor clean up and update to tlclk.c for 2.6.15-rc2-git2
      ... All sysfs interfaces are integers in hex format, i.e echo 99> refalign ... unsigned long flags; ... sscanf(buf, "%lX", &tmp); ... 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/ ...
      (Linux-Kernel)
    • Re: Race condition in ptrace
      ... could be the minimal fix for 2.6.11. ... rq = task_rq_lock(p, &flags); /* Must be off runqueue entirely, not preempted. ... 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/ ...
      (Linux-Kernel)
    • [PATCH] Stop mprotect() changing MAP_SHARED and other cleanup
      ... Uses that function in mprotect() the same as mmap. ... -calc_vm_flags(unsigned long prot, unsigned long flags) ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)