Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2568533iog; Sun, 26 Jun 2022 20:26:52 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v0cl2HDt3gmW4/clNv3LJcOe9l0ZdUOCpq3Mm5nuMgOjgMWz2TvP3A7TGV3uUhUrSPjthg X-Received: by 2002:a05:6a00:1253:b0:525:886a:37df with SMTP id u19-20020a056a00125300b00525886a37dfmr11477078pfi.85.1656300412556; Sun, 26 Jun 2022 20:26:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656300412; cv=none; d=google.com; s=arc-20160816; b=AYjFE9Jj4YjGloFCJ3b22q1aNIiPvyT4bomeB+M3RFtUB8ihbrMFAoUQzTVA6C6iRu FyMlS0xWnVCIj2SzcC38a6ZcmIfQL1CfNNKm0KR0ImoBWdLjhooE4Uj4w9pMwNBs55yc gvf+DuM8ahXNV+ILf8wM9bwL870JX9Y+kTSokKZSxtTnAcXBqYFLy+Sj3Dja3cJjGN4J d6tCcatEUiU8Y9Df9vd7GbOsb4lLX8p6PpBkzdfzRhdLFPRI0ioZWayM/fhZ4kVuTcX3 O2AIhAVlqr+96Q+NJYI6a5vGMNnoqrQO6MIsrCuUuQV7E5tzlaTMeCknsyaJmbr7No7d MEdA== 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=JakvLevS0YnBGyhibLY4QkJ72ieVyrb1/yRcRNc1BYw=; b=HHtJQHL6az7WuXT6vkmZecGORJspr8gNQHtl/Zpt328kfrDJLW78KGL6owE1tfP6gz x9LFVdsyxV7/hAKRr2uT40ZUwmkpF6aklTcF9rScbj1NPQmV/HsGtYiSRmanMRSJf1aM iC8t6OQiQFsskOuuqyzyx/udlsY/yFPzaPA6lvGRwhUoF27XQbHnLbpL98WLIulLB+fH NsKOi0K6atBTRoU0kDU0KbrDct4S/Van8TxBZ9fzl6u6rXNlsDb48HU2T5MWBIuZwaQh GYymJDjUfpj/81ygUuB9LUedyN628rnbn4JTFIN9JFseMx8JuV9e6eDAl4yK6HkQJiPs uS8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=W8ML5LPR; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f129-20020a636a87000000b003fca31afbc1si10953451pgc.564.2022.06.26.20.26.40; Sun, 26 Jun 2022 20:26:52 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b=W8ML5LPR; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231889AbiF0Cwj (ORCPT + 99 others); Sun, 26 Jun 2022 22:52:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231855AbiF0Cwj (ORCPT ); Sun, 26 Jun 2022 22:52:39 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 247593894 for ; Sun, 26 Jun 2022 19:52:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1656298357; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=JakvLevS0YnBGyhibLY4QkJ72ieVyrb1/yRcRNc1BYw=; b=W8ML5LPRh1Dp19WIipWlhBzHAMl6U9R34xgQRkHshJRBzphD5jF9eewHINnC5IFZLUcIoj zewTjSvAUlzMQEfXS0n1sqln+EWezQ5MZPthIFTCN/Rqif7QmA6OSjxk6WNYA9QwNhbanv TdqBcOKuPM0HJy8io1UwvkuNw9iqp7M= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-3-3tZgnw0DPyKkAw1P9ym7bg-1; Sun, 26 Jun 2022 22:52:32 -0400 X-MC-Unique: 3tZgnw0DPyKkAw1P9ym7bg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8B95D811E75; Mon, 27 Jun 2022 02:52:31 +0000 (UTC) Received: from localhost (ovpn-13-65.pek2.redhat.com [10.72.13.65]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B0D6F40CFD05; Mon, 27 Jun 2022 02:52:29 +0000 (UTC) Date: Mon, 27 Jun 2022 10:52:26 +0800 From: Baoquan He To: Catalin Marinas Cc: Kefeng Wang , Zhen Lei , Ard Biesheuvel , Mark Rutland , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H . Peter Anvin" , Eric Biederman , Rob Herring , Frank Rowand , devicetree@vger.kernel.org, Dave Young , Vivek Goyal , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Will Deacon , linux-arm-kernel@lists.infradead.org, Jonathan Corbet , linux-doc@vger.kernel.org, Randy Dunlap , Feng Zhou , Chen Zhou , John Donnelly , Dave Kleikamp , liushixin Subject: Re: [PATCH 5/5] arm64: kdump: Don't defer the reservation of crash high memory Message-ID: References: <20220613080932.663-1-thunder.leizhen@huawei.com> <20220613080932.663-6-thunder.leizhen@huawei.com> <3f66323d-f371-b931-65fb-edfae0f01c88@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 06/23/22 at 03:07pm, Catalin Marinas wrote: > On Wed, Jun 22, 2022 at 04:35:16PM +0800, Baoquan He wrote: > > On 06/21/22 at 07:04pm, Catalin Marinas wrote: > > > The problem with splitting is that you can end up with two entries in > > > the TLB for the same VA->PA mapping (e.g. one for a 4KB page and another > > > for a 2MB block). In the lucky case, the CPU will trigger a TLB conflict > > > abort (but can be worse like loss of coherency). > > > > Thanks for this explanation. Is this a drawback of arm64 design? X86 > > code do the same thing w/o issue, is there way to overcome this on > > arm64 from hardware or software side? > > It is a drawback of the arm64 implementations. Having multiple TLB > entries for the same VA would need additional logic in hardware to > detect, so the microarchitects have pushed back. In ARMv8.4, some > balanced was reached with FEAT_BBM so that the only visible side-effect > is a potential TLB conflict abort that could be resolved by software. I see, thx. > > > I ever got a arm64 server with huge memory, w or w/o crashkernel setting > > have different bootup time. And the more often TLB miss and flush will > > cause performance cost. It is really a pity if we have very powerful > > arm64 cpu and system capacity, but bottlenecked by this drawback. > > Is it only the boot time affected or the runtime performance as well? Sorry for late reply. What I observerd is the boot time serious latecy with huge memory. Since the timestamp is not available at that time, we can't tell the number. I didn't notice the runtime performance.