Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5944495pxb; Mon, 14 Feb 2022 11:19:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwr2zmnkJoycC85hE4KRiYJds8ZhElYuUskdUmmRMh5JL7/qtjTTOHdoaeXRVZYp0LiYX8i X-Received: by 2002:a17:90a:bf81:: with SMTP id d1mr96935pjs.147.1644866369654; Mon, 14 Feb 2022 11:19:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644866369; cv=none; d=google.com; s=arc-20160816; b=Z3xPsCT9NLRfVl45LIDmZcBffbq1Fg5N2cZXnYkvC9z0ha+3qJHFpmG467JB3lUZv7 KBHwp+Xg8nj0HiOxkI1v0DUVLwYQU0xmPkhrAeMI0+9UNRVU6i5DNBb3qZJD5EqnN8q1 EAPbLYqqqj/hDuH6h/UBBwsmU85tgnjaWEyUjUxAV3HAuWCSjlkQNh9y2E+wMHSGtBbz utTMzgZDEEbdRZquJ1vyULxhQmKMz5twJCf/ScT4lrKVfRlNOjKXiS2X8F5weHZtjWFk 512o8rronIeGfP7Adrt1z71QgMWrrMfPvf5HnR/h2/HefA5bv1FFx5xUV8zh4iGCrT4n GQhA== 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=j+bju+kDe47swbs+w0cbHTcauO2BFJSmjuhgyJugRXA=; b=ise3n5bgz9MU1GAKfKCz9edogUyRppLVIAccFsEo+a42k8yehrTOT7ZCv+JBvQX8il rpZU8JSAvLRYjpol9NlJtUDw9vItcC0VvTT7V352wMk7dWt7PlZq5yk1CxAYcCej5vDf tIWzOJEjDNommAW/owEAUIVQQokZK0zHz4NglHgAERe3VInzifOXjT8C7uvMEQ2yi4t8 F//MfiuLNMrWOMQmeidH/VZK68iAjSm7PAWnA4yzUU5p4GiqGPfxpLLFUQwlPNpaRo6Z 5B6B8VTTBcqBkCpG2SMlokHK0n7Vc9+/67Ii8JJVniJ0Rsw5xsBSPZIHHMTBKGQ7BjCZ NqtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=b9gRUd33; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m14si576682pgu.855.2022.02.14.11.19.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 11:19:29 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=b9gRUd33; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 72001B821C; Mon, 14 Feb 2022 11:11:13 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232619AbiBLI3r (ORCPT + 99 others); Sat, 12 Feb 2022 03:29:47 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:38038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232503AbiBLI3p (ORCPT ); Sat, 12 Feb 2022 03:29:45 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34AE526AF9; Sat, 12 Feb 2022 00:29:43 -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 dfw.source.kernel.org (Postfix) with ESMTPS id BB3A460B03; Sat, 12 Feb 2022 08:29:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44AD5C340E7; Sat, 12 Feb 2022 08:29:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644654582; bh=y4KilKYc89ZHuBcR1jvfFk+I6XfG+CjqzU/QMhQZ+yc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=b9gRUd33jl/AJjhmHvTRwaLBmckC8XgQRDibEr6ug0oIECg3KkeYKOFTPMqRSR8nD 3e4CMbC9LD0JkGo8xuhFMvO54wXeQStWswhhgGpUIn6ksZf4/HCrf63oivlTcx6CXp OfltroUw3K0qSh64+8aZy6sSJxmzEOWXPyQSIPYU= Date: Sat, 12 Feb 2022 09:29:35 +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: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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 Fri, Feb 11, 2022 at 11:52:41PM -0800, Abhinav Kumar wrote: > Hi Greg > > On 2/11/2022 11:04 PM, Greg KH wrote: > > 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? > > 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. The read is coming directly from memory, there should not be any slowdown at all here. How can that be the delay? Have a trace somewhere? thanks, greg k-h