Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp997448imm; Fri, 27 Jul 2018 09:29:06 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfwP5RUY8YqK7mOyQQK7hTFRw9Bdyrj3GDar4RSct4/s2OIKJ9aQP23OqTEZKzsIA3Gh8jm X-Received: by 2002:a62:642:: with SMTP id 63-v6mr3470408pfg.42.1532708945973; Fri, 27 Jul 2018 09:29:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532708945; cv=none; d=google.com; s=arc-20160816; b=KdKIwdrmqzpuLOERZe0ruwa4KeQDy8DPjiQBL6f2/pqZkPJeQqAYwrsx1RKpS0TOXY Vq4UP6grnSpdX1ExiMMRS99RokhIkmAz8hKVaX/Aso1jOVTEnx6o65G4jYaxD1UGpix5 U3w9AV64BSEWSJHnk4VO7ecSrDb1QchwyMpE/keCNiYcGN7Eog72QaoiywYOqvS8Afqd byaIDxVoWpXggvbWRcgmq8o8x7NS7tik+Bc1s1iUrW0nei9o6v4sJGXWYeoJSZREixXY jOpBxVa6PK4IBM6mGAQwPncj+qG4vNSScqrMbGE9RsG5mxju3nddN2HxPe+QscXu5kIt Ugog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:mime-version:user-agent :message-id:in-reply-to:date:references:cc:to:from :arc-authentication-results; bh=dq2h6c6XcmdRxrHgkbZsYHKjHFDaqrB56q8qn/Vl5Qs=; b=yAGgmW6IRw8Monno6jje6q4JotNOKnIPozgs5mhgA2UCEGXYhAi1CBZmz9bieRELmX Ie8LWxuK1GmaQuGv7r5xOt3aRA9zDl0DQT6+IRiREjpA0jzbRLdJWg7FFD4tdjijahMv QHR3lDQgg54zkH5/8lmyB1oeTYKngs4kv/KbaMY8GM8l+hwgbmuiDttTfFb3SBWNGiGu i/QWeS5KLWlFrlMFKXNXHhjGRL7EYRA++DZwURpgh96BG5YyvAEmT4hBAf+lhdViiit3 v34kVG5/g7jA6g1lnqmrXqqI3/DPha7T/LdyfAdHHvAdjdHBS10E37NWkaU85Wa2Kbyu QVFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1-v6si2668087pld.424.2018.07.27.09.28.51; Fri, 27 Jul 2018 09:29:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388901AbeG0Rtz (ORCPT + 99 others); Fri, 27 Jul 2018 13:49:55 -0400 Received: from out03.mta.xmission.com ([166.70.13.233]:43930 "EHLO out03.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730784AbeG0Rty (ORCPT ); Fri, 27 Jul 2018 13:49:54 -0400 Received: from in01.mta.xmission.com ([166.70.13.51]) by out03.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1fj5aE-0006NY-C7; Fri, 27 Jul 2018 10:27:14 -0600 Received: from [97.119.167.31] (helo=x220.xmission.com) by in01.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1fj5aD-0004nO-Gk; Fri, 27 Jul 2018 10:27:13 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: David Laight Cc: David Ahern , Cong Wang , David Miller , Linux Kernel Network Developers , "nikita.leshchenko\@oracle.com" , Roopa Prabhu , Stephen Hemminger , Ido Schimmel , Jiri Pirko , "Saeed Mahameed" , Alexander Aring , "linux-wpan\@vger.kernel.org" , NetFilter , LKML References: <1a3f59a9-0ba5-c83f-16a6-f9550a84f693@gmail.com> <1a27e301-3275-b349-a2f8-afdfdc02f04f@gmail.com> <20180718.125938.2271502580775162784.davem@davemloft.net> <28c30574-391c-b4bd-c337-51d3040d901a@gmail.com> <5021d874-8e99-6eba-f24b-4257c62d4457@gmail.com> <87muufze8w.fsf@xmission.com> <4b03b5f6-87ce-9ff2-7c14-598beebd8fb8@gmail.com> <87zhyfw70m.fsf@xmission.com> Date: Fri, 27 Jul 2018 11:27:06 -0500 In-Reply-To: (David Laight's message of "Thu, 26 Jul 2018 11:12:34 +0000") Message-ID: <87k1pg1w6d.fsf@xmission.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1fj5aD-0004nO-Gk;;;mid=<87k1pg1w6d.fsf@xmission.com>;;;hst=in01.mta.xmission.com;;;ip=97.119.167.31;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX18DuLPkLR4vYzZ4SYltuwqk4K9E1oVzPcw= X-SA-Exim-Connect-IP: 97.119.167.31 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa08.xmission.com X-Spam-Level: X-Spam-Status: No, score=-0.3 required=8.0 tests=ALL_TRUSTED,BAYES_40, DCC_CHECK_NEGATIVE,T_TM2_M_HEADER_IN_MSG,T_TooManySym_01,XMSubLong autolearn=disabled version=3.4.1 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.7 XMSubLong Long Subject * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * -0.0 BAYES_40 BODY: Bayes spam probability is 20 to 40% * [score: 0.3014] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa08 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa08 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;David Laight X-Spam-Relay-Country: X-Spam-Timing: total 195 ms - load_scoreonly_sql: 0.04 (0.0%), signal_user_changed: 3.9 (2.0%), b_tie_ro: 2.9 (1.5%), parse: 1.64 (0.8%), extract_message_metadata: 9 (4.6%), get_uri_detail_list: 0.99 (0.5%), tests_pri_-1000: 4.7 (2.4%), tests_pri_-950: 1.14 (0.6%), tests_pri_-900: 0.93 (0.5%), tests_pri_-400: 20 (10.4%), check_bayes: 19 (9.9%), b_tokenize: 5 (2.7%), b_tok_get_all: 7 (3.6%), b_comp_prob: 1.77 (0.9%), b_tok_touch_all: 3.1 (1.6%), b_finish: 0.71 (0.4%), tests_pri_0: 145 (74.4%), check_dkim_signature: 0.42 (0.2%), check_dkim_adsp: 3.4 (1.8%), tests_pri_500: 4.5 (2.3%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH RFC/RFT net-next 00/17] net: Convert neighbor tables to per-namespace X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org David Laight writes: > From: Eric W. Biederman >> Sent: 25 July 2018 18:38 > ... >> >> Further unless I misread something you are increasing the number of >> >> timers to 3 per namespace. If I create create a thousand network >> >> namespaces that feels like it will hurt system performance overall. >> > >> > It seems to me the timers are per neighbor entry not table. The per >> > table ones are for proxies. >> >> It seems I misread that bit when I was refreshing my memory on what >> everything is doing. If we can already have 1024 timers that makes >> timers not a concern. > > Surely it is enough to just have a timestamp in each entry. > Deletion of expired items need not be done until insert (which > has the table suitable locked) bumps into an expired item. Part of the state machine the timer is used for is sending retransmits before we get out first response, so the state machine is not just about expiry and may not be simple enough to do without a timer. I honestly don't remember the tradeoffs between the various kinds of timers. If we already can have up to 1000 timers without problems I suspect they are cheap enough optimizing for fewer times simply doesn't matter. Certainly we are not in regression territory if we don't. As for bumping into expired items on insert it would be a bad hash table if we were bumping into any other entries frequently on insert. Eric