From mboxrd@z Thu Jan 1 00:00:00 1970 From: ebiederm@xmission.com (Eric W. Biederman) Subject: Re: network namespace bloat Date: Tue, 10 Feb 2015 21:18:13 -0600 Message-ID: <87d25hrv9m.fsf@x220.int.ebiederm.org> References: <1423100070-31848-1-git-send-email-dsahern@gmail.com> <87k2zubw7l.fsf@x220.int.ebiederm.org> <871tlxtbhd.fsf_-_@x220.int.ebiederm.org> Mime-Version: 1.0 Content-Type: text/plain Cc: netdev , Stephen Hemminger , Nicolas Dichtel , roopa , Hannes Frederic Sowa , Dinesh Dutt , Vipin Kumar , Shmulik Ladkani , David Ahern , "David S. Miller" To: Eric Dumazet Return-path: Received: from out01.mta.xmission.com ([166.70.13.231]:54326 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751368AbbBKDV5 (ORCPT ); Tue, 10 Feb 2015 22:21:57 -0500 In-Reply-To: (Eric Dumazet's message of "Tue, 10 Feb 2015 18:55:39 -0800") Sender: netdev-owner@vger.kernel.org List-ID: Eric Dumazet writes: > On Tue, Feb 10, 2015 at 6:42 PM, Eric W. Biederman > wrote: > >> >> Those large hash tables impact creation speed as large memory >> allocations require more work from the memory allocators, and they >> affect reliability of as order > 0 pages are not reliabily available in >> the kernel. So from a network namespace perspective I would really like >> to convert the per network namespace hash tables to hash tables that >> have a single instance across all network namespaces. >> > > tcp_metric can fallback to vzalloc() after commit 976a702ac9eea ? True, although vmalloc space is limited on some architectures. > There is nothing preventing to use a single tcp_metric, a bit like > global TCP hash table. > > We only have to convert the thing... Thanks for the confirmation, that is what I figured was going on. > Note : At Google we do not save tcp metrics. > We have to use it only for FastOpen cookies eventually (For clients) Interesting. That makes it doubly desirable to not need to allocate a per network namespace hash table. Eric