Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4424820pxb; Sat, 12 Feb 2022 04:52:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxgCUzZ7RkmROjUEiII8mf04ZlN5LUxkBR40jdxexh6oDxluSgvsjJw7gZlXPAGsWo2HqYA X-Received: by 2002:a17:907:1c02:: with SMTP id nc2mr4768264ejc.287.1644670370866; Sat, 12 Feb 2022 04:52:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644670370; cv=none; d=google.com; s=arc-20160816; b=GAMq7+p8HxTGAmlOTt9YIlD+EA9Sbt/9aA85y4mQugvk+6/eoJrfCPpJFFo2BDGFIv bGHxTFetOiJ7N5AVjMndtyi68ttHvXMtqwRPBaxkNosAqCdAOmexr16OB1KHc2Ud/OZ3 msCBSza8gZ70CaTj4uzCdhU2N6cnl7td785/DOLwoPjmcUe7+2aJwdUJEmnRFOHVGXOp i0lWT5ySPznw145dcH3JjEr5sluc+K/GMQotzaAy+xSiYTvZ0XBJKkIARn3AmSdkoXQl +JvAhHgJuUomfYeixAOKVxk86OPcl0Jy5YAL1Eq/OAIoNLYU9Xw97PTwaHpF5jKFClR4 jg7w== 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=XH4dFPiX5OoR9zNtWoY972SsBoh28piIfTnd7x3AM1k=; b=dGSk4Pa6XQZlaUe5+fgqns44QbqojhCS3oqrm+0UTNFHLkK39jgN0CD658dlSw87ui +F3kHXD+p66Hji1k9WDm2fQbFWhRr+hsgRRx1YozvIhkHcx8hdvwZL5MsjAqHz/1MZbt xi2ussr5nAHDnsl/xmXzoY8/6IAgyhTyfQ2ByPVMA3s5a3i5sN6KcL4vLZDFLFHwgkdi KzFlN1nu1hlzg0YdMfsnxDBFb4N0KLJ0xSuaUJ17ge3bEu+gnxuVdhd0oYWaeFNn+tn5 qek7MxKFFXAG+UHz5rBjuTsNFYItd+HavQrMbWIEcsx6ns1O0Gltd2emdnoJ7Mo/t9M2 2GSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=HYni9O7H; 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=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds7si21609014ejc.603.2022.02.12.04.52.00; Sat, 12 Feb 2022 04:52:50 -0800 (PST) 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=@sipsolutions.net header.s=mail header.b=HYni9O7H; 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=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232602AbiBLIZG (ORCPT + 99 others); Sat, 12 Feb 2022 03:25:06 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:36716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232503AbiBLIZF (ORCPT ); Sat, 12 Feb 2022 03:25:05 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F327A26AF7; Sat, 12 Feb 2022 00:25:00 -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=XH4dFPiX5OoR9zNtWoY972SsBoh28piIfTnd7x3AM1k=; t=1644654301; x=1645863901; b=HYni9O7Hy3Lw5qzwfs73wAMPDmivexdxVh6sGzB+zK7Xa3+ RMMU0RNoLuxOedO3+7LddFgz7UdDUiUT2vSHvOg5UJAOZr5e04AU6YaG8EjNTx/7A7iHE+UJj8Z+R tPypTHS7XzHdLLxUAjU3qJLKoPtlTKUq1D+/kaY6zV4JBHVB7IBlVanLsbo0rUYII9uFzDkvoHbHJ lRyEtzjNJy/Qytabx2/LOptoBjHXf0G8Ez83LHeAcas+CIgC3FdfW6EfSR/iPyGGcnvOFa1ImpaiG F36E/GMPxmMRAUPJgvz/C9emBQ64eLmGDEQC0/v92yOvkuJsYVmQnw4I9DLPikOw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.95) (envelope-from ) id 1nIni7-000C5h-6u; Sat, 12 Feb 2022 09:24:51 +0100 Message-ID: <7db7d01fcf5a3edce61161769c0e6eb1541237bf.camel@sipsolutions.net> Subject: Re: [PATCH] devcoredump: increase the device delete timeout to 10 mins From: Johannes Berg To: Abhinav Kumar , Greg KH Cc: linux-kernel@vger.kernel.org, rafael@kernel.org, robdclark@gmail.com, dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, seanpaul@chromium.org, swboyd@chromium.org, nganji@codeaurora.org, aravindh@codeaurora.org, khsieh@codeaurora.org, daniel@ffwll.ch, dmitry.baryshkov@linaro.org Date: Sat, 12 Feb 2022 09:24:50 +0100 In-Reply-To: References: <1644349472-31077-1-git-send-email-quic_abhinavk@quicinc.com> <654d620b-9e14-c47f-b48c-762dc0bd32a1@quicinc.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.3 (3.42.3-1.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Fri, 2022-02-11 at 23:52 -0800, Abhinav Kumar wrote: > > The thread is writing the data to a file in local storage. From our > profiling, the read is the one taking the time not the write. > That seems kind of hard to believe, let's say it's a 4/3 split (4 minutes reading, 3 minutes writing, to make read > write as you say), and 3MiB size, that'd mean you get 12.8KiB/sec? That seems implausibly low, unless you're reading with really tiny buffers? Can you strace this somehow? (with timestamp info) > Just doubling what we have currently. I am not sure how the current 5 > mins timeout came from. > To be honest it came out of thin air, and wasn't really meant as a limit on how fast you can read (feels like even if it's tens of MiB you should read it in milliseconds into userspace), but more of a maximum time that we're willing to waste kernel memory if nobody is around to read the data. I thought it'd be better if we could somehow pin it while the userspace is reading it, but OTOH maybe that's actually bad, since that means userspace (though suitably privileged) could pin this kernel memory indefinitely. johannes