Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5362474pxb; Sun, 13 Feb 2022 18:31:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJyh4PRS/uYStiAu40TCDvI1KWmmiefsN2Tc4wR/pKxjrssCGFFg7+4m/Ilbr2BzQoDKXmzP X-Received: by 2002:a17:906:7949:: with SMTP id l9mr9675215ejo.296.1644805903551; Sun, 13 Feb 2022 18:31:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644805903; cv=none; d=google.com; s=arc-20160816; b=SpqaT62N4Uuz4/jXFafZ9KM+F7I1NOe6nn/sTXN56IV1GPUqHPQH34ppdKRiI4IOhK h02u12JKRdMmwrJ3OlyWwCq0XytHCjOs6i3zCUGbdnc02vNHIOyo9ULJDBrNggpsbEKa PjsBhDB5xp1NbOKuWtcbqR3NDKQVrC1B79pZUDUTAd1Bq8r7qNpKqGi8CrrUFJjqN09h gj6rBBSg0NO9W6TAoeHzemHdfvevKNmco290Ol3NV2iR2gVBxMAz3Ai1Aq4MZ3iNC8LX XcRxVHuaeu7x3JrkGhVtQ+zAp5Ql4v7ySFm08azkcqABgBpqn16VDmO+WGReRzMAHmkz +LjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PzrTSgHS1aWu5kA+Vb8T7gcC6BcOJjQcOS1/QU67UPg=; b=l7jRf2mi6a6ur4JjnFi3/ovK6TM9rJR2NtO8JZK3CqZW90ssvUY20emDxqC1WaXScA 1T+Nks2mO6Po4buDqwGA6PW3ApAxdRXURIZVrLyBQcmODOP9CzumptLzDZOE6U6FoYZA h+dGZARRJo7iRfnXv3XRRGzq+BdR1p+7mIUREPuPfo+pO7IKWRs1IZdKUiD+6pt5DmGh ro1WiD6t+PTsAUJmvHCVMjXHheJgl4NgWqojmR3pXK0+DSlaILF1Y+zOoCbjc5FAlcPJ looAwBQzEWe/7hhL0F6oUeBb8koQs2i+uGNS2oSiaJd7nAUyJDsrZ7z1hV7M74CGwgCr 9ciQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rfy74Zkf; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw20si133443ejc.920.2022.02.13.18.31.21; Sun, 13 Feb 2022 18:31:43 -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=@linuxfoundation.org header.s=korg header.b=rfy74Zkf; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232294AbiBLHEZ (ORCPT + 99 others); Sat, 12 Feb 2022 02:04:25 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:59458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229720AbiBLHEY (ORCPT ); Sat, 12 Feb 2022 02:04:24 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA0AE2716D; Fri, 11 Feb 2022 23:04:21 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A9178B816F9; Sat, 12 Feb 2022 07:04:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E6ABC340E7; Sat, 12 Feb 2022 07:04:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644649459; bh=5JR5bOcysOJSDhFqg8hYnCFWbBwyk5yff/mZFGN/g14=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rfy74ZkfFcQ+kcqFIyQLj/N5y9ufjm8AT5DYj4lCEUJOyzf7tTiYvBvOu6TPWVRbz /zy7BHaB9LQtbocZDeokNetYzUVKmZ1QIWSAojXQSG3zaWWbCB3vQrTJig+qhXhh8c QbPntvOB+fNg8ctNwIM4ahKsim82DJ0htqVSL+6U= Date: Sat, 12 Feb 2022 08:04:11 +0100 From: Greg KH To: Abhinav Kumar Cc: johannes@sipsolutions.net, 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 Subject: Re: [PATCH] devcoredump: increase the device delete timeout to 10 mins Message-ID: References: <1644349472-31077-1-git-send-email-quic_abhinavk@quicinc.com> <654d620b-9e14-c47f-b48c-762dc0bd32a1@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <654d620b-9e14-c47f-b48c-762dc0bd32a1@quicinc.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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, Feb 11, 2022 at 10:59:39AM -0800, Abhinav Kumar wrote: > Hi Greg > > Thanks for the response. > > On 2/11/2022 3:09 AM, Greg KH wrote: > > On Tue, Feb 08, 2022 at 11:44:32AM -0800, Abhinav Kumar wrote: > > > There are cases where depending on the size of the devcoredump and the speed > > > at which the usermode reads the dump, it can take longer than the current 5 mins > > > timeout. > > > > > > This can lead to incomplete dumps as the device is deleted once the timeout expires. > > > > > > One example is below where it took 6 mins for the devcoredump to be completely read. > > > > > > 04:22:24.668 23916 23994 I HWDeviceDRM::DumpDebugData: Opening /sys/class/devcoredump/devcd6/data > > > 04:28:35.377 23916 23994 W HWDeviceDRM::DumpDebugData: Freeing devcoredump node > > > > What makes this so slow? Reading from the kernel shouldn't be the > > limit, is it where the data is being sent to? > > We are still checking this. We are seeing better read times when we bump up > the thread priority of the thread which was reading this. Where is the thread sending the data to? > We are also trying to check if bumping up CPU speed is helping. > But, results have not been consistently good enough. So we thought we should > also increase the timeout to be safe. Why would 10 minutes be better than 30? What should the limit be? :) thanks, greg k-h