Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5605679img; Wed, 27 Mar 2019 11:33:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3duKLJVtiKNTn3/TvaDGsCm6w4l3BsHTnwcylAPrFx2QoqIaqjcvssPcR7yy2j7qakvsh X-Received: by 2002:a65:63c2:: with SMTP id n2mr36007758pgv.439.1553711624018; Wed, 27 Mar 2019 11:33:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553711624; cv=none; d=google.com; s=arc-20160816; b=Ro/21cWDlGkhQ/P3fsdhx+ZHouk3CNC4WxB1o3/RbUWajto+MeJTkdGtwdJIhk6p6u pZd6efDvmumZQpiG8ZuqnOov2OmrnT+b/E194Oghql1TWrfUT7la4omRBBTKpmv4uTW/ +iwPDKtrG508wGzwySfVss7WlHFhvPyslZSEnLthZ4OpZisc92C/QEN7RbQ6R5tuxg/P yeXVq3bI3hTV63kChWyGTc7jjbkyjshk7s3AtnW33N8qVWYyVSTwK9XRHbPGdmNFpGqL uxyF6OScuWEXL6x0dvjBGoLmpMSrmQrCGa51aakAZkT0x2LbcXAzskMSx2YCj8JtZVLY S6Ug== 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:dkim-signature; bh=6ya/TRqV/AR/KMXtQfj6+BOK3Ioc9vbZ4iNRalwWLlo=; b=b9kzf9S3yzNf9k+05KNTh5AqGMgAC9Pzj7j/tDUO/7YNO6oaX2jBpttfaVu3lKcjG/ EVw8J5WYw2onrtnocjyaU/kKjZ9+r5XbyleHBNlv3R9t2G9Pu4xmNItCZwTbHpIT1vxi c52HNt8eMfre7BvppB616B6UbbSCCb1tkCFtl+Toz5aCfBX9rtJE9ACnVFfEOQB1KOF1 swGJ96GP3LYStBY4+NR+aS5114fkefoj+Zt39AUcky5VZVvLKhBpKr9B8JW+iSJZd5g/ 7IHBosR+q7ceFrB1BysrRbVWRaqYQVFonkOLdG28bM+BacIXcZShdbRtOtByU2X02IkM IrDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm3 header.b=zZfAbUqB; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=1QCGt068; 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 o90si1140451pfi.161.2019.03.27.11.33.28; Wed, 27 Mar 2019 11:33:44 -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=@kroah.com header.s=fm3 header.b=zZfAbUqB; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=1QCGt068; 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 S2391628AbfC0S0B (ORCPT + 99 others); Wed, 27 Mar 2019 14:26:01 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:46655 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404276AbfC0SZw (ORCPT ); Wed, 27 Mar 2019 14:25:52 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 1597B219EB; Wed, 27 Mar 2019 14:25:51 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 27 Mar 2019 14:25:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=6ya/TRqV/AR/KMXtQfj6+BOK3Io c9vbZ4iNRalwWLlo=; b=zZfAbUqBZLWJ8xId4gN0lN+RpvYDO/8W7kHe5KLVd3/ QZ2/UmtFhYUJgn/BDCa09wg9nDR+dv4xdss/zyOetznQtvAguznMdXEvOMyu5Qq1 cx+i9D2aQmeeumLGg5an5niBbrsQo4TGtFpr42mwPqHRdjcSJVW6b+GWiXeNsVZ0 L2hvizQPciFUK5DJRtINyK8V4ik2eQxnKwrQJD4ByGI4Pilspt0PjLYwwF7u3+OF HxCNApABBBwFareFFqouZmZ8yQ1jd0GvyF9O4UpWWUWCJT6VTvqWorwEEfvPABqU Mwa6UTIMCA4CZ3Ce4m0kSwXl5g/z9BnH2LXxEl9Z7lQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=6ya/TR qV/AR/KMXtQfj6+BOK3Ioc9vbZ4iNRalwWLlo=; b=1QCGt068Shpex0D4LMrfX6 BxZr1JNCAxOIqgy4CGLfGCJKDmiK00lmvPmLKbWR7D4Cpz/gSRAv09EOHR1FwgIe 3g0eDRi2f2nSC5VuUzYIeZ7PAsD+7sAmAt38r4Gk/nPu1xDw/BlXC8a/8N0FVEca gfO8p/UNCfVtkmCFAM6rePyehTXy/8hu3KQaCSANMccN5VKt50u+k2YcO0XCdMRA HB6h9xUX18nlH1kMdLTtIEt1pUlZzA5UYzCFmUVVX29ULbNQVHzU6nUjNY9boYQj q2nNyDRRRaEKph0hrdMcPVdh4GKr6p4M1JeGb//m2buWeQ/las+5Bm+10iP6u/2w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrkedvgddutdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjfgesthdtredttdervdenucfhrhhomhepifhrvghg ucfmjfcuoehgrhgvgheskhhrohgrhhdrtghomheqnecukfhppeekkedruddvkedrkedtrd dvfeefnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhhdrtghomhen ucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from localhost (unknown [88.128.80.233]) by mail.messagingengine.com (Postfix) with ESMTPA id 1F8A2E49DC; Wed, 27 Mar 2019 14:25:50 -0400 (EDT) Date: Wed, 27 Mar 2019 23:35:13 +0900 From: Greg KH To: Zhaoyang Huang Cc: "open list:ANDROID ION DRIVER" , "open list:ANDROID ION DRIVER" , "moderated list:ANDROID ION DRIVER" , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] driver : staging : ion: optimization for decreasing memory fragmentaion Message-ID: <20190327143513.GA14931@kroah.com> References: <1553063903-26768-1-git-send-email-huangzhaoyang@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1553063903-26768-1-git-send-email-huangzhaoyang@gmail.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 20, 2019 at 02:38:23PM +0800, Zhaoyang Huang wrote: > From: Zhaoyang Huang > > Two action for this patch: > 1. set a batch size for system heap's shrinker, which can have it buffer > reasonable page blocks in pool for future allocation. > 2. reverse the order sequence when free page blocks, the purpose is also > to have system heap keep as more big blocks as it can. > > By testing on an android system with 2G RAM, the changes with setting > batch = 48MB can help reduce the fragmentation obviously and improve > big block allocation speed for 15%. > > Signed-off-by: Zhaoyang Huang > --- > drivers/staging/android/ion/ion_heap.c | 16 +++++++++++++++- > drivers/staging/android/ion/ion_system_heap.c | 2 +- > 2 files changed, 16 insertions(+), 2 deletions(-) What changed from v1? Always put that below the --- line as the documentation asks you to. thanks, greg k-h