SK_ADJUST_MEMALLOC(9) Linux Networking SK_ADJUST_MEMALLOC(9)
NAME
sk_adjust_memalloc - adjust the global memalloc reserve for critical RX
SYNOPSIS
int sk_adjust_memalloc(int socks, long tx_reserve_pages);
ARGUMENTS
socks
number of new SOCK_MEMALLOC sockets
tx_reserve_pages
-- undescribed --
DESCRIPTION
This function adjusts the memalloc reserve based on system demand. The RX reserve is a limit, and only added once, not for each socket.
NOTE
tx_reserve_pages is an upper-bound of memory used for TX hence we need not account the pages like we do for RX pages.
COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 SK_ADJUST_MEMALLOC(9)