[lkml]   [2011]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Subject[RFC][PATCH 0/3] track pte pages and use in OOM score
    PTE pages are a relatively invisible memory user.  Neither users
    nor the kernel have any way of telling how many of them any given
    application is using. Nefarious applications can also
    potentially tie up lagre amounts of memory in them:

    foo = malloc(big);
    madvise(foo, big, MADV_DONTNEED);

    That'll leave you with no RSS for "foo", but the pagetable pages
    will still be there. Do that enough times, and you can
    potentially harm the system. Even worse, the OOM killer will not
    necessarily go after such an application since the kernel has no
    record of the pages.

    For the containers and OpenVZ folks, pte pages are one of the
    main consumers of kernel memory. They should be able to use this
    code as well.

     \ /
      Last update: 2011-04-15 19:41    [W:0.021 / U:89.108 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site