Re: [PATCH 10/17] netvm: Allow skb allocation to use PFMEMALLOCreserves

From: David Miller
Date: Thu May 17 2012 - 16:12:58 EST


From: Mel Gorman <mgorman@xxxxxxx>
Date: Thu, 17 May 2012 15:50:24 +0100

> Change the skb allocation API to indicate RX usage and use this to fall
> back to the PFMEMALLOC reserve when needed. SKBs allocated from the
> reserve are tagged in skb->pfmemalloc. If an SKB is allocated from
> the reserve and the socket is later found to be unrelated to page
> reclaim, the packet is dropped so that the memory remains available
> for page reclaim. Network protocols are expected to recover from this
> packet loss.
>
> [davem@xxxxxxxxxxxxx: Use static branches, coding style corrections]
> [a.p.zijlstra@xxxxxxxxx: Ideas taken from various patches]
> Signed-off-by: Mel Gorman <mgorman@xxxxxxx>

Acked-by: David S. Miller <davem@xxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/