[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20130607.162656.1478762217066934846.davem@davemloft.net>
Date: Fri, 07 Jun 2013 16:26:56 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: pablo@...filter.org
Cc: netdev@...r.kernel.org, kaber@...sh.net, eric.dumazet@...il.com
Subject: Re: [PATCHv3 net-next] netlink: allow large data transfers from
user-space
From: pablo@...filter.org
Date: Mon, 3 Jun 2013 21:46:28 +0200
> From: Pablo Neira Ayuso <pablo@...filter.org>
>
> I can hit ENOBUFS in the sendmsg() path with a large batch that is
> composed of many netlink messages. Here that limit is 8 MBytes of
> skbuff data area as kmalloc does not manage to get more than that.
>
> While discussing atomic rule-set for nftables with Patrick McHardy,
> we decided to put all rule-set updates that need to be applied
> atomically in one single batch to simplify the existing approach.
> However, as explained above, the existing netlink code limits us
> to a maximum of ~20000 rules that fit in one single batch without
> hitting ENOBUFS. iptables does not have such limitation as it is
> using vmalloc.
>
> This patch adds netlink_alloc_large_skb() which is only used in
> the netlink_sendmsg() path. It uses alloc_skb if the memory
> requested is <= one memory page, that should be the common case
> for most subsystems, else vmalloc for higher memory allocations.
>
> Signed-off-by: Pablo Neira Ayuso <pablo@...filter.org>
Ok since this is confined to netlink let's give this a shot.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists