Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751157AbbHLRq3 (ORCPT ); Wed, 12 Aug 2015 13:46:29 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:36126 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750769AbbHLRq1 (ORCPT ); Wed, 12 Aug 2015 13:46:27 -0400 Message-ID: <1439401585.29802.15.camel@edumazet-glaptop2.roam.corp.google.com> Subject: Re: [PATCH] net: Use SK_MEM_QUANTUM as minimum for tcp/udp rmem/wmem From: Eric Dumazet To: Sorin Dumitru Cc: Calvin Owens , Sorin Dumitru , David Miller , kuznet@ms2.inr.ac.ru, jmorris@namei.org, yoshfuji@linux-ipv6.org, kaber@trash.net, netdev , linux-kernel@vger.kernel.org, kernel-team@fb.com Date: Wed, 12 Aug 2015 10:46:25 -0700 In-Reply-To: References: <1438806414-751067-1-git-send-email-calvinowens@fb.com> <20150809.224114.818332231954008575.davem@davemloft.net> <20150811033406.GA1136819@mail.thefacebook.com> <20150810.204630.1903301700926701432.davem@davemloft.net> <20150812045420.GA3908557@mail.thefacebook.com> <1439389261.29802.3.camel@edumazet-glaptop2.roam.corp.google.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 944 Lines: 24 On Wed, 2015-08-12 at 20:00 +0300, Sorin Dumitru wrote: > Would clamping the values to a min value, like setsockopt(SO_SNDBUF) > does, be an option? > I still find it odd that SO_SNDBUF limits you, while the /proc > interface doesn't. If you think it's > too much, I'm ok with reverting it since it affects scripts. > > On those arches where PAGE_SIZE == 64K(or > 16K) it looks like we have > tcp_wmem[1] > smaller than tcp_wmem[0]. Shouldn't we do something about this? As long as we do not crash if/when root user changes /proc/sys/net settings, we are good. I would not care if performance is bad if root does something really stupid. root user is supposed to not mess things just for fun. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/