Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1547027imm; Tue, 2 Oct 2018 09:54:31 -0700 (PDT) X-Google-Smtp-Source: ACcGV60pD1PT1+iqEM5j4eMi6gCMWVrg8bTV5py8hyE3rAS5KUPhjM/9RN8Yd0mMo3Qf0FF07660 X-Received: by 2002:a17:902:ba95:: with SMTP id k21-v6mr17625198pls.38.1538499271757; Tue, 02 Oct 2018 09:54:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538499271; cv=none; d=google.com; s=arc-20160816; b=vyYqAQtXx1klUqSvcW68exUYUxBIjaXsDjOlHXLJIRyJQC21dRlkz5QXEjfxnWdk2v 001YS+TiqxMrFhAlVTG6LdbMD2Q/zvYtocJ6s7WHA1K3EIOZB1OPp4Sb07i73Quonyi9 +8094LLuXLUSStHld9UT7/LJKDbHCuyXr/lKZPTvXN+6F1g1jXEbmXDgq4qS0XlAsH5L m4jkaljwx5v61QnwhX1wgQi6efPASOH9DcBFdJYJCqXhWUBQDtpPVReqQZ5Vwr9VfHUz lXUnScIAXHzBHXxuGGlSMUoVzJOXqZ8NJaQziJZPcvmAwTiq/StOk3P7zbARSP5lrgFA KxoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=SHf7GKYXB5qhNZJjsebIev/DMis+sNL18W3mSMKT5p0=; b=Bse3WQQ4g39uVziX+fnJnE7kAiFG2yIfFge11Ghn/5h916+pfznN8rxlGtmxplths5 LpOGfDk/xhCQbXrND764ZeYR7qGe75NlGUcVycpouWtfkG1ZVu/SzvFzxFxoNgsAdwk+ enNg/imxXvr/tqZKRHfZykAUPHYT+xFhFT0VdEd6CQJsa3sAWzGRRe5oVBw9faeRrrPI mjK9bkc93z0zeJGFQlzHUTMfhzbRzFiiuKAp0j1wI+ZWXN/LePe7T34nPK5ZDW9VVhlJ CLZL7x7xTcUMGuVDY2KfaBEmbrajgbQdoLS30uP3i/I7J+RJiNkTWsr2synpSJp7FXp9 4isg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@colorfullife-com.20150623.gappssmtp.com header.s=20150623 header.b=pTtdEKH7; 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 d1-v6si17285488pld.322.2018.10.02.09.54.17; Tue, 02 Oct 2018 09:54:31 -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; dkim=pass header.i=@colorfullife-com.20150623.gappssmtp.com header.s=20150623 header.b=pTtdEKH7; 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 S1727483AbeJBXQd (ORCPT + 99 others); Tue, 2 Oct 2018 19:16:33 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:54077 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726861AbeJBXQb (ORCPT ); Tue, 2 Oct 2018 19:16:31 -0400 Received: by mail-wm1-f68.google.com with SMTP id b19-v6so2916984wme.3 for ; Tue, 02 Oct 2018 09:32:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=colorfullife-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=SHf7GKYXB5qhNZJjsebIev/DMis+sNL18W3mSMKT5p0=; b=pTtdEKH7aBIc7YsVoPJt9NiDymLS6wdvRqAEuXXGKn4hY9Nl/o6kl2A/wN7/FNh7Zc fhwD2YVORjYRrMqN3FGhpPTq0meCPRrp5tXx8Gii9mGbCj5kv4hwo5vIRr6qE+usmLgo GM78Hd4H0VY9lolFt5Tlli8XbjF89n9xuDqST0JVPQE77/NQZwEzN9QOukcCReJ+urQh EZ7i1GuB13rwnPJlYOM/wNXOk0830NR3RU/Sxd+VWXABoXQt4b+WPQXuMcap+5RqI85g jLGzTEofbXiqlyeTxM9GvssnLq7cjSHTGdR0NwKihTW0/2JFgIGVCVraIEkwO9QrR8KT xICw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=SHf7GKYXB5qhNZJjsebIev/DMis+sNL18W3mSMKT5p0=; b=BiGPd06tl0AwSCfEqcaOgFkaow7jQu4mkrcB3byBq0baQTnWwdEq3We4VptoluXtNi BcW9VqvkenT/dxPui4LS/IKq2Wmg03WftQSc8AtBFrQnnuzamazA0OgRdVr2CA3VO6bT Nf8yg3tHWW1XlbAVbc911GIKopDLpOzpEmP0cdrGbneTxZDVee68fBCzAHav3VSwWay9 pVnsA7QLD089JhWMFxCeqm/bHuUyHL17hhlBDHywBwpxFwAUe/eHHplFi08YNr30O3m4 zIRdMtL1YRsYrxOWwzmxHdr/kWr1GxYDfAYSw31SThdkAxi4pRYOsOnCyS3FykY5Z4P8 GQjA== X-Gm-Message-State: ABuFfojUZ4rZSQaQz37amMJNMSRJ3PW8jK9jTeS/QWwYm3QoYwk4TR4W 0FRPgpWBctkMkbQFNPTpsm74xQ== X-Received: by 2002:a1c:a696:: with SMTP id p144-v6mr2444528wme.14.1538497936509; Tue, 02 Oct 2018 09:32:16 -0700 (PDT) Received: from localhost.localdomain (p200300D993C77B00B5EB8DB179490446.dip0.t-ipconnect.de. [2003:d9:93c7:7b00:b5eb:8db1:7949:446]) by smtp.googlemail.com with ESMTPSA id k7-v6sm15661196wmf.41.2018.10.02.09.32.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Oct 2018 09:32:15 -0700 (PDT) Subject: Re: [PATCH v8 3/5] ipc: Allow boot time extension of IPCMNI from 32k to 2M To: Waiman Long , Davidlohr Bueso Cc: "Luis R. Rodriguez" , Kees Cook , Andrew Morton , Jonathan Corbet , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, Al Viro , Matthew Wilcox , "Eric W. Biederman" , Takashi Iwai , Davidlohr Bueso References: <1529317698-16575-1-git-send-email-longman@redhat.com> <1529317698-16575-4-git-send-email-longman@redhat.com> <20180817164548.GA32382@linux-r8p5> <5ddb67bb-872b-c8c1-7838-2622195ae1fc@redhat.com> From: Manfred Spraul Message-ID: <02ebafee-a295-58cf-044e-e2df0e878e0d@colorfullife.com> Date: Tue, 2 Oct 2018 18:32:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <5ddb67bb-872b-c8c1-7838-2622195ae1fc@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello together, On 8/18/18 3:15 AM, Waiman Long wrote: > On 08/17/2018 12:45 PM, Davidlohr Bueso wrote: >> Cc'ing Manfred. >> >> On Mon, 18 Jun 2018, Waiman Long wrote: >> >>> The maximum number of unique System V IPC identifiers was limited to >>> 32k. That limit should be big enough for most use cases. >>> >>> However, there are some users out there requesting for more. To satisfy >>> the need of those users, a new boot time kernel option "ipcmni_extend" >>> is added to extend the IPCMNI value to 2M. This is a 64X increase which >>> hopefully is big enough for them. >> Could you please provide more info on the need of these users and how >> you came up with this new value (which just seems quite arbitrary)? >> >> Thanks, >> Davidlohr > Red Hat has a customer that is migrating from Solaris to Linux. Some of > their applications just happen to use more than 32k of shared memory > segments. I think Solaris allows up to 16M unique ID. > > Yes, the amount of increase is a bit arbitrary. I was trying to balance > how many bits should be left for sequence number. Maybe I should just > take 8 more bits for ID and leave 8 bits for sequence number to match > Solaris. - I think we should use the same numbers as Solaris. Otherwise we later have to touch it again. - What is the performance when using shmget() with already 10M segments present? - I like the new logic for updating the sequence counter. Is there a reason why you only enable it for extended mode? You create a rarely used codepath, and I don't understand what speaks against switching to the 'deleted' approach for all systems. --     Manfred