Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp780905ybj; Tue, 5 May 2020 07:27:56 -0700 (PDT) X-Google-Smtp-Source: APiQypLedwduJbNi4TwtbMmzetoLtB6UmNwNeAj8zcebn5A4fUm7qO7THhni91Cn72taGsmyi63Y X-Received: by 2002:a05:6402:712:: with SMTP id w18mr2965566edx.386.1588688876467; Tue, 05 May 2020 07:27:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588688876; cv=none; d=google.com; s=arc-20160816; b=Jd8FI+DhM4NwFuEF92NjsJX/6v0YY/iGhdZcpapERHy7IOlP9lmj+uvVf2v4HUWGrK pu4P/LafrhY/thnzuQcCiYimcq4t2eVbsNCIxwpwV/7hKAQpauXT2JLakHdzHcoHlUw9 +ibQggbIsB4c+bS0E9kJASml0DWj1abUGzvST1D0J7jkLmdGUhF6kFeMWQtZcblMfFQ9 SroBQ13UMYGvCqd+nqp44abrOJjIsVWTW4w/o2y4SNT/tfCUCApaUciQvWkaJb/NKRMc OAl9e95gqTJM6iitMO0mPf/rrlEoTC6MN7uhhs9+sJhYS4i+SkEyKL8l9qDiQR4EIT+Z HDhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:in-reply-to:message-id:date :cc:to:from:subject:ironport-sdr:dkim-signature; bh=ojTidh3cJPjzb7MTzavDHG/Iog3Nq7tt/PoUVo4tNM0=; b=JqTLZuzL3YIqQ4EEIqBl2+lRNvgTXLLoDIWYnSrl8/JVWj35L2eFHfKrMrqb5bKY+f jX8ESCfp82PIApGXj3XphX2L0z2HlzmUEUv2Q6h5y9qC6uUdR4grk6ZA3HHcgml18mOX UQur2gmH63aGQ+yCrTMrKpbpXNV9OcgE7mgDoVe+S37I6vKdUAXI2pd0SNwdFiOyn0Rc nlL/nynMRxtmS8il8rHjckk/VRnZyT72snhIzDM3xpgUA+pV/NhIZ0p3KCyMviaOD+D8 LGU8r7l0uDPkRKI+TQhzAUUd5GZvLDC0J86JZIZABnpN4HYvqQ0fkh61of8GlQerzmwI Upig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=tU1r3Lxn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z13si1244747eju.18.2020.05.05.07.27.33; Tue, 05 May 2020 07:27:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=tU1r3Lxn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730021AbgEEOZC (ORCPT + 99 others); Tue, 5 May 2020 10:25:02 -0400 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]:1111 "EHLO smtp-fw-33001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729310AbgEEOZB (ORCPT ); Tue, 5 May 2020 10:25:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1588688701; x=1620224701; h=from:to:cc:date:message-id:in-reply-to:mime-version: subject; bh=ojTidh3cJPjzb7MTzavDHG/Iog3Nq7tt/PoUVo4tNM0=; b=tU1r3LxnO0+ug1AGRvb9Zj1USBa2ddk2a6WFEfNM3hYDMxz2gcjeaeu6 S9WX+ETK5PKqjQvowSr4RtVHZwTjTacNovUKfhrNRZgSVur9S3kX+1f0q veZadMLpYQPDgLlKA+AqEqcuzvYqrMTkQEgf77sFH0PxKqi+oJTzRK7D5 o=; IronPort-SDR: qzP7/t0VQlCoEyHgzMOm+FcDazZKa7SPTsfmnaMXRlnRnktZMFZmGGERqIkjMST9Px+8lduc8D Ik2kaMA9VG2A== X-IronPort-AV: E=Sophos;i="5.73,355,1583193600"; d="scan'208";a="42794246" Subject: Re: RE: [PATCH net 0/2] Revert the 'socket_alloc' life cycle change Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2b-c300ac87.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-33001.sea14.amazon.com with ESMTP; 05 May 2020 14:24:59 +0000 Received: from EX13MTAUEA002.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2b-c300ac87.us-west-2.amazon.com (Postfix) with ESMTPS id B47FFA2318; Tue, 5 May 2020 14:24:58 +0000 (UTC) Received: from EX13D31EUA001.ant.amazon.com (10.43.165.15) by EX13MTAUEA002.ant.amazon.com (10.43.61.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 5 May 2020 14:24:58 +0000 Received: from u886c93fd17d25d.ant.amazon.com (10.43.160.180) by EX13D31EUA001.ant.amazon.com (10.43.165.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 5 May 2020 14:24:52 +0000 From: SeongJae Park To: Al Viro CC: SeongJae Park , , , , , , , SeongJae Park Date: Tue, 5 May 2020 16:24:37 +0200 Message-ID: <20200505142437.22822-1-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200505124442.GX23230@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.160.180] X-ClientProxiedBy: EX13D01UWA001.ant.amazon.com (10.43.160.60) To EX13D31EUA001.ant.amazon.com (10.43.165.15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 5 May 2020 13:44:42 +0100 Al Viro wrote: > CAUTION: This email originated from outside of the organization. Do not cli= > ck links or open attachments unless you can confirm the sender and know the= > content is safe. > > > > On Tue, May 05, 2020 at 09:28:39AM +0200, SeongJae Park wrote: > > From: SeongJae Park > > > > The commit 6d7855c54e1e ("sockfs: switch to ->free_inode()") made the > > deallocation of 'socket_alloc' to be done asynchronously using RCU, as > > same to 'sock.wq'. And the following commit 333f7909a857 ("coallocate > > socket_sq with socket itself") made those to have same life cycle. > > > > The changes made the code much more simple, but also made 'socket_alloc' > > live longer than before. For the reason, user programs intensively > > repeating allocations and deallocations of sockets could cause memory > > pressure on recent kernels. > > > > To avoid the problem, this commit reverts the changes. > > Is it "could cause" or is it "have been actually observed to"? Actually observed. Sorry for lack of that explanation. Could you please refer to this link? https://lore.kernel.org/netdev/20200505115402.25768-1-sjpark@amazon.com/ Thanks, SeongJae Park