Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp799835pxp; Fri, 11 Mar 2022 15:28:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxGLVPon4zC8miuxeE/EwTogN3AhtrG1TcANrnLinujr/qgk15AR3qOg8DkE3fCMTtS6sP X-Received: by 2002:a17:90b:1647:b0:1c3:b18c:793f with SMTP id il7-20020a17090b164700b001c3b18c793fmr6282278pjb.134.1647041323993; Fri, 11 Mar 2022 15:28:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647041323; cv=none; d=google.com; s=arc-20160816; b=G6bL/HZFBK3jwMomoE4wzRBDh50ljMjJimRnjigjNlG3Gyf6mG6Nm2UtU1Kg7SMVlS QyubHy76k5D+3EaN2RHnulejnwccja1xrQymIOCuTVjVF4R8i3vnm714I0mln7iTdDCD XHpbByUGOuraeTYiLRcUDyCASb9+LE5k9zDxZ2bZRFBdbbZg6Yn64uzJGHUYqOsCOp15 I9lyeAP0WmsvEW3PMBnoDKe1Db/AVB+g31G56RN3sjxoK/Hnrb7MJj11xLINqIZKO5In 4TE4vL9WezI/FZUAFrO+ri0iaJOD9WVnsDDmvP0Cg28uUchhXYeWwT9mEkPWIKZFXIE7 eREA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=QKQNUb8gG1815bo0+LJAzephXsrFMrZXGrmPtBwOo6c=; b=ZY1BdxX7FcB1vCUPH6vD0n3ru0uaIuZNtM0cEzdFzNvzJNjyf01zBGoqWdDZHw2NNJ c3xB38/mlv2p9h9vfSPPqUgXtx8QGVTYL8qKf5AuMYsfoFo7kpFVpWkygZZEGvEFgzW1 AVhSHb3srzcr5u2I7HhxCkh047pg++yq7y6xHeqRxdPuJAsYXoemmM0uxhm77lZHQ+Ub 4VpxEnp9oSaOruPMBvhs1N8iAQaBIGI9gf4H6x4HWsI6aVN3B3jcvGK67a22LN8Nnzpa DPulLEsc7bZpaAWjCGKGuEy0Or3Tr3n0D/1xTfMYJJhlXwpFP8XvRP76JbFju/nOfVIf kO6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=alHnBgDI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p42-20020a056a000a2a00b004f64f065982si10116329pfh.37.2022.03.11.15.28.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 15:28:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=alHnBgDI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4525D2261E6; Fri, 11 Mar 2022 14:15:16 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345341AbiCKLzI (ORCPT + 99 others); Fri, 11 Mar 2022 06:55:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230512AbiCKLzG (ORCPT ); Fri, 11 Mar 2022 06:55:06 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7667D4339D; Fri, 11 Mar 2022 03:54:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=QKQNUb8gG1815bo0+LJAzephXsrFMrZXGrmPtBwOo6c=; t=1646999643; x=1648209243; b=alHnBgDIHy9y0RUCRwwm0He8FSk4xcPUW9/EkiSAih21DFM 8yjhuigiX6tbzgl3M08NcjD5KiTxv9w+CXmUJX/aSYqJ1AyInOYuNm4901RQFfmqFnR6CYZlwuEc3 Hj4/kj489RxcTwk35q/BGf44Di9sAq1qrrCZFCQeK90/PGycpLm0Ntu8xqZMeNuznVFTvihU6g9Xc W3aRh+VZ+JOzxzwDMvOdb5ItDjw3PNVKrMwz596BzdCUE6CR2P2wZmHzQ7pNByEtQb1dOfGczHFbY GK9v93vvNdHsHZ6ecXRO1xFbNvE1vE7ATVeZ47RQc+3yw57RdaLI55lmMyaftxkw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.95) (envelope-from ) id 1nSdqI-00BtPi-Dc; Fri, 11 Mar 2022 12:53:58 +0100 Message-ID: <564672530e489da8872bdf1d8cdee7ce071d6a19.camel@sipsolutions.net> Subject: Re: [PATCH] devcoredump: increase the device delete timeout to 10 mins From: Johannes Berg To: Rob Clark , David Laight Cc: Abhinav Kumar , Greg KH , "rafael@kernel.org" , "linux-arm-msm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "swboyd@chromium.org" , "khsieh@codeaurora.org" , "nganji@codeaurora.org" , "seanpaul@chromium.org" , "dmitry.baryshkov@linaro.org" , "aravindh@codeaurora.org" , "freedreno@lists.freedesktop.org" Date: Fri, 11 Mar 2022 12:53:57 +0100 In-Reply-To: References: <1644349472-31077-1-git-send-email-quic_abhinavk@quicinc.com> <654d620b-9e14-c47f-b48c-762dc0bd32a1@quicinc.com> <7db7d01fcf5a3edce61161769c0e6eb1541237bf.camel@sipsolutions.net> <2add9ba7-7bc8-bd1d-1963-61e8154b0e3c@quicinc.com> <989efb15-cc5e-8f6d-c313-118f01498e33@quicinc.com> <8fa2f879e33e4e42b76e21c6fbdcb023@AcuMS.aculab.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-1.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Tue, 2022-03-01 at 09:45 -0800, Rob Clark wrote: > On Mon, Feb 28, 2022 at 10:49 PM David Laight wrote: > > > > From: Abhinav Kumar > > > Sent: 28 February 2022 21:38 > > ... > > > We also did some profiling around how much increasing the block size > > > helps and here is the data: > > > > > > Block size cost > > > > > > 4KB 229s > > > 8KB 86s > > > > You must have an O(n^2) operation in there - find it. > > The problem is how the devcoredump/sysfs interface works, which > results in "re-rendering" the output for each block.. it's fine for > moderate size sysfs files, but scales quite badly once you get into > couple MB size sysfs files. > > It could be fixed by having some way to keep state across successive > read callbacks. I'm not sure that's true? Perhaps for dev_coredumpm(), but only if you implemented read() badly. If you have e.g. dev_coredumpsg() or dev_coredumpv() that's just a simple read from the existing buffer. johannes