Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1014591imm; Wed, 26 Sep 2018 10:12:12 -0700 (PDT) X-Google-Smtp-Source: ACcGV60qTfycAc3BYF+KJvBpC5Jlku9ffWpUKQztbPCHVh6Dieupt/+beZK/UZ31DvAsa7VJZHm/ X-Received: by 2002:a65:5347:: with SMTP id w7-v6mr6667437pgr.17.1537981932494; Wed, 26 Sep 2018 10:12:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537981932; cv=none; d=google.com; s=arc-20160816; b=AeoMXUQiWDC2ud/Vo9j3SyMPnEqdE5S3CJRsAnl8OAUZk5kSNWQ/aLuvvW+V7BMIF7 1uP3NQKqgU8EllvivxVNNeoXWk1FANU1/+GuOkSmLNQ7DgP0it9Zr6upO2kIfr9OT9CN zwXqkO3G2dvW9TXrU6j5mayS2y+Iej1JHjmz9/sSS6sfPC8eZwH6ZxNJA/zWS4Rdhuol ressc2rhOVQS4OQPdBdljUku7SNQD1nflDXroilsZ8HBxgd0HxoqFbY2nztcdyMd3p0+ D9A5rmPtOgOr8KQNorJ41gqo6ct4KpxAMhRyRiWVHodIsb2ZIcqe1KR2QN9/v63ZskLM /vcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NTBa50NEYXcUWjgNglB/yKU2lMiq08+c/rCM4WNV92I=; b=G++MVddHNAWpKqIqAjQFT5MITa7QDPMfZtFbwcPPYHyrc5fe0AHUXUKZNeIN7CwxV2 FF/mDmj1Ly4Yl3DBMkSudUUNosRlKKzPoceDJwJOR0Ueyc2vqhXUOZIB8QTDgCvSVduO 5bzIXqZ1QOpBNvT3nHPNRTP+HX/g48U+1B8WUC+yMFVimp+r1iJ0OJGYIs0hFgtzGeWd UUTG6i+fkh+1F83/tga1qLLn/YZLPXWxQCvc+qa7LIe2O+DcYqPu/yeL7JYwaGYqq+V0 UGM/u1WzHlMoNNLZKpeyeBmZ150mjxaS2XE1YsX7lRloLV8updeU6jEl4iYty9ELMoVO 82xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=PJXinC5B; 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 144-v6si5453425pfw.95.2018.09.26.10.11.57; Wed, 26 Sep 2018 10:12:12 -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=@ziepe.ca header.s=google header.b=PJXinC5B; 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 S1728585AbeIZXUw (ORCPT + 99 others); Wed, 26 Sep 2018 19:20:52 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:42560 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727698AbeIZXUw (ORCPT ); Wed, 26 Sep 2018 19:20:52 -0400 Received: by mail-io1-f66.google.com with SMTP id n18-v6so23871309ioa.9 for ; Wed, 26 Sep 2018 10:06:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=NTBa50NEYXcUWjgNglB/yKU2lMiq08+c/rCM4WNV92I=; b=PJXinC5BnUOvLpUn6pBUbSNEornpDEeCFJO7FFRT34L6aVb0yhF25yVV6QOESs/TAB kfMdWa/7excZOEDv79pkGuzNL+t91SEaHOpQe0y+7kTWaAOafd1TnPtLFIMjXgjJTqKO ELvWiN8gdUbEXwr2a7IrOiWOCaxntKgjJuo5ySUZM1DsB5Labb8QBfp8U4Jp0XH9Nkdx hubkxAwaWV3Cb+mUq8+t7QSTUHsdkJFNGf7JWC+cVE5W1BfK3vf7jn5eqz0T1AdAXBK1 f7H/vngZyjLEGY6VcKdlcQUVmMI3OMAboqVgnIBtMUQQMwn9MphV0LodqfsmgsSuB3zN lRbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=NTBa50NEYXcUWjgNglB/yKU2lMiq08+c/rCM4WNV92I=; b=uJjLwPGqfO/RLZvjOzC4TqvtYpGUL7jFFBwANfk2TrumU+CMQOLV/Fq+xUbru3LCOL CaoMq0DOaWLAInxMAL/MC6bQUYzA9Gcxwio/pCOVQJtfkM/Og/pbGe5SdO+LSv6vK0ML uwUOuP3Brfig8epGOvon3srfaZqzwrgHzehp3bDi6G9TkNKCM95NQhXVHcpuKmIlRaaa CMBIT/Wvpd9VY/OrU4FL/Z8hh0+RFlIcqqooQncfz+eXYQwJYa3UnvOACeyDnX8sHhgq JT8NSlauCiES+Zvt2V0skjJ1ZY7ayU3EYPwLFh/Rg0sUg75SGQlXDncox57CmVhQya8p uLpA== X-Gm-Message-State: ABuFfoiOb1Hgr9WsyZlB0Cctkf5OkExH03OMIKfyQWiTghtJzUsh/xxb eB0/DjvVXieCsn/Fbphf0yQvWA== X-Received: by 2002:a5e:8d02:: with SMTP id m2-v6mr1253653ioj.122.1537981617415; Wed, 26 Sep 2018 10:06:57 -0700 (PDT) Received: from ziepe.ca (S010614cc2056d97f.ed.shawcable.net. [174.3.196.123]) by smtp.gmail.com with ESMTPSA id m186-v6sm1165036itg.29.2018.09.26.10.06.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 26 Sep 2018 10:06:56 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1g5DH5-0005jX-VA; Wed, 26 Sep 2018 11:06:55 -0600 Date: Wed, 26 Sep 2018 11:06:55 -0600 From: Jason Gunthorpe To: Jan Dakinevich Cc: Doug Ledford , Yishai Hadas , Leon Romanovsky , Parav Pandit , Mark Bloch , Daniel Jurgens , Kees Cook , Kamal Heib , Bart Van Assche , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Denis Lunev , Konstantin Khorenko Subject: Re: [PATCH 0/4] IB: decrease large contigous allocation Message-ID: <20180926170655.GC16163@ziepe.ca> References: <1537275826-27247-1-git-send-email-jan.dakinevich@virtuozzo.com> <20180918144623.GI11367@ziepe.ca> <20180926184809.5d37cdb7@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180926184809.5d37cdb7@virtuozzo.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 26, 2018 at 06:48:09PM +0300, Jan Dakinevich wrote: > On Tue, 18 Sep 2018 08:46:23 -0600 > Jason Gunthorpe wrote: > > > On Tue, Sep 18, 2018 at 04:03:42PM +0300, Jan Dakinevich wrote: > > > The size of mlx4_ib_device became too large to be allocated as > > > whole contigous block of memory. Currently it takes about 55K. On > > > architecture with 4K page it means 3rd order. > > > > > > This patch series makes an attempt to split mlx4_ib_device into > > > several parts and allocate them with less expensive kvzalloc > > > > Why split it up? Any reason not to just allocate the whole thing with > > kvzalloc? > > > > To allocate whole ib_device with kvmalloc I will need replace kzalloc() > by kvzalloc() in ib_alloc_device() and then review allocation, to make > sure that no one uses this memory for DMA. I would be shocked if some driver was DMA'ing out of struct ib_device memory.. Jason