Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4433046pxb; Sat, 12 Feb 2022 05:07:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJx06SZ/+/LCNFocEmQ/pg8Yg60CshiG59B871FPc5Mvd19s1M8x/PVZ6OTRc6Fu8Jbj/nZu X-Received: by 2002:a17:902:d510:: with SMTP id b16mr5832351plg.89.1644671239420; Sat, 12 Feb 2022 05:07:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644671239; cv=none; d=google.com; s=arc-20160816; b=crkT09LyLNU6gZYgptSNK6FwFD4HyzbtwVcfD02/e1Mtg5h/oZ2XhqmjJFtlYTa7nB K921cgh8vWjg2A1IG85iJxh6TxRHRynn4bCL91ejRv++ytgluAb1IPlYbXfYXP1LPHi0 /ChpMqUUZ8e03A8tF7lXODkv8kCjGsXgOYa0uzQvQBM0zLu0un0J3rPEMWYziBctgX6R 0e7eDKS4CRPM3pRoSLwAC2jvnCDPCTzr1vaTAM82EQ1PPNrFr4qd1Gcy330Fa2KCvd+C tiYv9JDF71NdE0uDU/m0HiwMybyDpT1nAzLx3GdQrS4lywyKzeqUDSw6ZYL2cCkemIwg iBTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=MeLi2dYMbbNIf6RjIa19QVwgVecV8z/lw2J8bW0VgqA=; b=Xe2HWNaBAT9HMJSfER82EcOM5J02SkcXIEmjlsVIde55nDX6S8mRUcpUYXpyP+5LYT tkZZP1fQT4ny4us/l+HlTFzpNHevpyNnaZsXFokS7cJPSLkwOYdv79xwdk6p3WG2+Nld hjvR6OWp64G8Fwtk6a1+UkHNM3vFJYJuS1PkNy2yKTWV2mnE5Xn+CyVuCC4FGnPbOW9H P7b7JVRXH7AnsoqviQZPhVKFdLI1FoSsgJWXnVjeIwO8oF4VzENzOr85qzZPWQ4t6azp xOPfEDRWbAbAco5VKkfWyB6ccZUaPFREbHifiTYaPGdapeF5ioGSTtRadgxpW4IpLdjj SxIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=B8Qk5IvW; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a16si7586338plm.370.2022.02.12.05.07.03; Sat, 12 Feb 2022 05:07:19 -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=@quicinc.com header.s=qcdkim header.b=B8Qk5IvW; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232695AbiBLIfT (ORCPT + 99 others); Sat, 12 Feb 2022 03:35:19 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:40142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232647AbiBLIfR (ORCPT ); Sat, 12 Feb 2022 03:35:17 -0500 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9E56213; Sat, 12 Feb 2022 00:35:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1644654914; x=1676190914; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=MeLi2dYMbbNIf6RjIa19QVwgVecV8z/lw2J8bW0VgqA=; b=B8Qk5IvWIuVLPOMKuZ01+xFnjeAMJt9tzKBvDotGGYt4wrKxwG/secK8 sBLipi7oMMQWTrUEztyFHCrHdgMj2gU6ZdzmLE4iuJKtdF/tAYZ5wRmho UJwMfWxra6WLRwDWB8VILyGz0ePmDobTT+xXcNIIB93DlXDNIJ5a4r7cx w=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 12 Feb 2022 00:35:14 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2022 00:35:13 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Sat, 12 Feb 2022 00:35:13 -0800 Received: from [10.38.246.233] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Sat, 12 Feb 2022 00:35:10 -0800 Message-ID: <2add9ba7-7bc8-bd1d-1963-61e8154b0e3c@quicinc.com> Date: Sat, 12 Feb 2022 00:35:08 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH] devcoredump: increase the device delete timeout to 10 mins Content-Language: en-US To: Johannes Berg , Greg KH CC: , , , , , , , , , , , , References: <1644349472-31077-1-git-send-email-quic_abhinavk@quicinc.com> <654d620b-9e14-c47f-b48c-762dc0bd32a1@quicinc.com> <7db7d01fcf5a3edce61161769c0e6eb1541237bf.camel@sipsolutions.net> From: Abhinav Kumar In-Reply-To: <7db7d01fcf5a3edce61161769c0e6eb1541237bf.camel@sipsolutions.net> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, 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 Hi Johannes On 2/12/2022 12:24 AM, Johannes Berg wrote: > 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) > Yes, like I have already mentioned in earlier comments, we continue to check whats taking that long. Once we find something from our analysis and also have the trace, will update the thread. >> 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