[lkml]   [2002]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH]Fix: Init page count for all pages during higher order allocs
    On Thu, 2 May 2002, Suparna Bhattacharya wrote:
    [ discussion of PG_inuse / PG_partial / PG_large snipped ]

    Any of those can handle that job (distinguishing non0orders),
    but I do believe you want a further PG_ flag for crash dumps.

    The pages allocated GFP_HIGHUSER are about as uninteresting
    as the free pages: the cases where they're interesting (for
    analyzing a kernel crash, as opposed to snooping on a crashed
    customer's personal data!) are _very_ rare, but the waste of
    space and time putting them in a crash dump is very often
    abominable, and of course worse on larger machines.

    As someone else noted in this thread, the kernel tries to keep
    pages in use anyway, so omitting free pages won't buy you a great
    deal on its own. And I think it's to omit free pages that you want
    to distinguish the count 0 continuations from the count 0 frees?

    PG_highuser? PG_data? Or inverses: PG_internal? PG_dumpable?
    I think not PG_highuser, because it's too specific to what just
    happens to be the best, but inadequate, test I've found so far.

    A first guess is that pages allocated with __GFP_HIGHMEM can be
    omitted from a dump, but that works out wrong on vmalloced space
    and on highmem pagetables, both of which are important in a dump.
    GFP_HIGHUSER test dumps vmalloced pages, and both Andrea's 2.4 or
    Ingo's 2.5 highmem pagetables. But (notably in reboot after crash:
    dump copied from swap) memory can be full of GFP_USER blockdev pages.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:25    [W:0.021 / U:0.372 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site