lkml.org 
[lkml]   [2012]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH 09/17] netvm: Allow the use of __GFP_MEMALLOC by specific sockets
    From
    From: Mel Gorman <mgorman@suse.de>
    Date: Thu, 10 May 2012 14:45:02 +0100

    > Allow specific sockets to be tagged SOCK_MEMALLOC and use
    > __GFP_MEMALLOC for their allocations. These sockets will be able to go
    > below watermarks and allocate from the emergency reserve. Such sockets
    > are to be used to service the VM (iow. to swap over). They must be
    > handled kernel side, exposing such a socket to user-space is a bug.
    >
    > There is a risk that the reserves be depleted so for now, the
    > administrator is responsible for increasing min_free_kbytes as
    > necessary to prevent deadlock for their workloads.
    >
    > [a.p.zijlstra@chello.nl: Original patches]
    > Signed-off-by: Mel Gorman <mgorman@suse.de>

    After sk_allocation() is adjusted to be sk_gfp_atomic() as I suggested
    in my feedback for patch #8, this is fine.


    \
     
     \ /
      Last update: 2012-05-11 07:21    [W:2.656 / U:0.564 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site