Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1232982rwl; Wed, 12 Apr 2023 09:51:48 -0700 (PDT) X-Google-Smtp-Source: AKy350bvw/qP2n+O3pYodCSu4Ru5FMgQol9wUG5zq9syMmKjh7Kp5L0/HFSUb2x9KTbjnYX4P9ZN X-Received: by 2002:a05:6a20:8c1e:b0:ea:e896:e98 with SMTP id j30-20020a056a208c1e00b000eae8960e98mr3562991pzh.58.1681318308150; Wed, 12 Apr 2023 09:51:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681318308; cv=none; d=google.com; s=arc-20160816; b=AP261OgKzw3zA46yMemJlNZ9C4KaB9OAL4JcgOg9rDDcqu68px8AfuWxzC6gg6oktg YVvyU7KNSdk1uVKeNVHwMqHmFVLl/gd9oXcXZj0ajt61JPLJcE4+5Cdd0uJTVh0Fuq8p RwQARFfxKrF7xap8Q4XJtpIElpgzYZrPOtd5d+LD2KZKLo7FABNkuVQyVPe5r+cwFavD 5SZ76WSN1kdUvlITTrpOyGdKi8rMTjkMYKNYQb9OKUgQ5+VTGZmPcov5EGd2Iifxemtn Y152+atmA3MxVe8cI/ArRvqp/KoDLgyyFUiVyPpKi8OCef8HQPr2/T3KZPOKXoBxFsA7 bA+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=txytFHb+OHcln9Jf1NBW9iIGnvsknm0ej/9O1NbRSBA=; b=H7zs3XQ1AJF5JVW2OzoOOEuSfqzYt2IvfrdiE2WwJXSk1aqlh8K7A9LBHjdzB0zn49 rXrNEMDTUZD8v60gNzCvKKkQOCMJLaov8M1C1iKnFvXYbhD2IERaD+xJku3MbVN2delb nlk9JmPomPywnr8G9VO1wkJN9bzKPnV3nJYUZPyXJ9qK0e0HvSMNd+cqF57sxJC/InO3 9AkHIl6PlY2U0AKyAP9ZhOyHgvdamurbnMvKYEEMKRvUitRnVQfg0qrjKeYD5QcWmlP4 x3J3MJFi3gjJD1tzcTHvylW9sAQKNakQCUqY2gyAPaMYEpJAnrp/IV+nzxNdT2IJVUlt t1jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=YCiMefLv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c6-20020a6566c6000000b0051b32aa267asi2311131pgw.671.2023.04.12.09.51.34; Wed, 12 Apr 2023 09:51:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=YCiMefLv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231550AbjDLQvA (ORCPT + 99 others); Wed, 12 Apr 2023 12:51:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231344AbjDLQut (ORCPT ); Wed, 12 Apr 2023 12:50:49 -0400 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 731627DB3 for ; Wed, 12 Apr 2023 09:50:26 -0700 (PDT) Received: by mail-yb1-xb33.google.com with SMTP id i20so16152223ybg.10 for ; Wed, 12 Apr 2023 09:50:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1681318171; x=1683910171; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=txytFHb+OHcln9Jf1NBW9iIGnvsknm0ej/9O1NbRSBA=; b=YCiMefLv7nAtRiyKLvPC/8BYbWdlg8KJHhZQHd0CxqSg7iV7nQAw5pqzArjCBGixm2 zXot5iJgoLWZ/mK4MVGNMewp24ea/PJs4lj7gftpyJoxUQ5uEGx4IdZY/EQVLitmk5KT 6ngATDCRYblqj+B0U1bzhFjQa5iLAHDqJvkXlS/ZDP2Eo7rR1w9yz58ujd5MViELpVAq OmpZ5GqBK8mjF7ukPZlsCKOxgN0nvkgd1x4pk/BKp8j5bhsOi2o4eX+1dg38ehnE6qhT Gtxmarv5LBiqSRfXB2Gg7aBXYEzNH25VP+nmYn/8974Pg14ZikPkZ6kjrUcFYDFyWjM2 ddCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681318171; x=1683910171; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=txytFHb+OHcln9Jf1NBW9iIGnvsknm0ej/9O1NbRSBA=; b=AFfod8gkPTzeK3DRKHXtmIlfZQqB4oReMXqv+377SqXo0+zjWrc3mECRIZFnc59q24 hKGMKH4BWtbS/YtwhSoemZhsYYOHSyTs8ZGI50h8rY1HXO6eVzgmBWdWHGyJGsfO296z +HUfRqlS6nkfNLXsZ+u6s+UMwm9YkYxlv2dX/LqdFLiUnBzlGVXXqVr1YxoPaAztEWD3 b6FvvE/ISQoQ5vxj+2jUCWVcGNWIHKaBRpvJeAEFsd/ReI3M6Pi3TfKAuY4ybnjQqJO0 h+IR2bSFa/IaRO2CpQt7KGQ96Gk477GFqTuwq2yO0LQDEKh7KgqBQ3sfkrcpZvpU84Cy hI2g== X-Gm-Message-State: AAQBX9e04pCKfRjCpvnXJx208SzCRD1bX950n+Swz+dSyAuc6tpCz1er SiQw95btr21qf0po5xR8YSSvs5VLSF3185SmAUTqqg== X-Received: by 2002:a25:d4d7:0:b0:b8f:37ae:b75b with SMTP id m206-20020a25d4d7000000b00b8f37aeb75bmr1737335ybf.11.1681318170406; Wed, 12 Apr 2023 09:49:30 -0700 (PDT) MIME-Version: 1.0 References: <20230410073228.23043-1-jaewon31.kim@samsung.com> <20230412085726epcms1p7d2bec2526e47bd10a3b6ea6a113c9cc3@epcms1p7> <20230412094440epcms1p445319579ead0d0576bb616ebb07501b4@epcms1p4> <20230412113759epcms1p8cb15b54e3a96c7616419cb030d16f804@epcms1p8> In-Reply-To: <20230412113759epcms1p8cb15b54e3a96c7616419cb030d16f804@epcms1p8> From: "T.J. Mercier" Date: Wed, 12 Apr 2023 09:49:19 -0700 Message-ID: Subject: Re: [PATCH v3] dma-buf/heaps: system_heap: avoid too much allocation To: jaewon31.kim@samsung.com Cc: Michal Hocko , "jstultz@google.com" , "sumit.semwal@linaro.org" , "daniel.vetter@ffwll.ch" , "akpm@linux-foundation.org" , "hannes@cmpxchg.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "jaewon31.kim@gmail.com" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 12, 2023 at 4:38=E2=80=AFAM Jaewon Kim wrote: > Yes I think you're right. As a allocator, dma-buf system heap looks to be= loose > in memory allocation. Limiting dmabuf memory may be required. But I think= there > is no nice and reasonable way so far. And the dma-buf system heap is bein= g > widely used in Android mobile system. AFAIK the camera consumes huge memo= ry > through this dma-buf system heap. I actually even looked a huge size requ= est > over 2GB in one dma-buf request. > Hey can you point me to where you saw a request that big? That's a non-buggy request?!