Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1274170rwi; Thu, 27 Oct 2022 13:37:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Es4UY+x/dmk2jhfUjkKacwFqnBpKqt5jSY46ezqmdIQNtlh4ycIVtW8lEcG7mxqE15V0h X-Received: by 2002:a17:902:f551:b0:186:be04:6670 with SMTP id h17-20020a170902f55100b00186be046670mr17339286plf.159.1666903051841; Thu, 27 Oct 2022 13:37:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666903051; cv=pass; d=google.com; s=arc-20160816; b=tkibuEFXkk9hJmzE4rPCb0FsJDlLmf8ZPbZimIbVMll8lpJ5C4Ynn365bh/casysDi zvkC6CEnQThhug7Gm8lvypoQf9/3r7tHuquNXkDzzx8drR+cTb41UJJN5dqO1sUTdqe/ H3TnZsnqBgo4bEBmTGVr9IE2RV0EraTUz7uTJqeeSHnQTwfl0skp8GEyE4Gq+p7Qf9Tl B4HBMwESVcIIZ4iz9ZIwFDfJdcEagAxYrxTbppmEMgioNDO+Ko7oRCemtHn4szgp2XQY lIn1l/DT8+Zc7AjCHBjoop6xHIbsFqjsIKOEtsTXEIzJjlTdVz+4hDwQTVl5300dX3w2 +JZw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature:dkim-signature; bh=LMItJ3yW6sPPg7eShJZXRLDCBZK8f/z3Elqr4S5Peo4=; b=YIyexm703LPw9T8L4nfjOJCox2ihgTFxZ/fY509jKINgzx0ufB7COnyP/fRtTLe6aD OXPYWnxaijA0kHGcFxMj1YD5KcLvmSjk5ENu8FWrmDSsVp9L1E0Gh8vbtHQ3MSrPQS+J 6Lznz+hrRKfI18+55PPxacaAETGk2H1MfZncezGsHUBzFnQpBFuBlAifOov3T59YSdrd 26mzTm+PLTJxFU9OPQxzG7jOfRAN3jxBtYRKCBYzYzJIkLuuiLzmJEcL92wea3uJcVj0 +UlAQdUYLm95j9AO90QwSlMbqb5C0P/aNsT7SCBK+U26fSJhYEoqStqNpvWeNhGU4WZr /W5A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b=2tPCucoB; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=IQS6PGnp; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); 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=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kk9-20020a17090b4a0900b002002d7f2504si10474160pjb.1.2022.10.27.13.37.20; Thu, 27 Oct 2022 13:37:31 -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=@oracle.com header.s=corp-2022-7-12 header.b=2tPCucoB; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=IQS6PGnp; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233569AbiJ0T32 (ORCPT + 99 others); Thu, 27 Oct 2022 15:29:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234988AbiJ0T3W (ORCPT ); Thu, 27 Oct 2022 15:29:22 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B8FB78BD1 for ; Thu, 27 Oct 2022 12:29:21 -0700 (PDT) Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29RHmpFN001416; Thu, 27 Oct 2022 19:28:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2022-7-12; bh=LMItJ3yW6sPPg7eShJZXRLDCBZK8f/z3Elqr4S5Peo4=; b=2tPCucoB+O7dNoAQo4PcWalZdvY/bKm678rpuY+IpF6zOJGEuPSDwQm2W3NJBcVh7KHY YcfRGhZgLNnhHd6XWnvCSvgWykEkjfhiz9WlcfS+nbSnQn37SljKLMWa+n6e2xOIDvrD ixMj1wwoZXOLQrqbeyABeWu+hbzHv/S8ZEZwBE+BHGKf0UDwgu0eZVlWxKPee8Vmf6oL TrMxU0f88Qz0HVOcOvxc/3XKjQcSjBw7lMMRCK6sTWIFzAihZehFP/rR3ZVVJlIqXDuL cv0613qGu4jbspZft9pO78Ij4mVobHsVPWY6RApNicLthZIPuxpzdKOvp+VexMzfIdxD Bw== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3kfawru54r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 27 Oct 2022 19:28:46 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 29RIT3LN026553; Thu, 27 Oct 2022 19:28:45 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2108.outbound.protection.outlook.com [104.47.55.108]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3kfagqb8ac-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 27 Oct 2022 19:28:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ag5gYQyHJEIR/ysyuMXj3a46oIg0582+NCbSA8FLlasN/8HH5Bhfa5QzLSF4Do1oOq3X9jFX1M8OZ1MAJla/DmlHU2FMrXFtoB+292gkl54rTQOMTrGbnq+LbiaWBx1d9s3rbL+4NmFk8YTXJIfS9aSasV5DfjDfLkTk5+AaB7lM38/72BtZ0fwQeKJqE+Fdxuo5kLohZnpo5psRtXwSXIYuUEa3jkMt3DekVjhm/bgGQGdBW2dzYFd6QpZGOgLwE8Zpn2NM7vXd56nJClF17DlAlzxvmqDzyLoupnl0X7Fi740k+eAkoEWJdN9K6YCpcx7Uu4N7X5uhlDAzJbXbYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LMItJ3yW6sPPg7eShJZXRLDCBZK8f/z3Elqr4S5Peo4=; b=WCZBCpg21l4VynYFACyMKerA5+DG5zBGAOLsOfml3gSijVJMNeoHG+5lQMakzLmeifxvTETxSYsfrRXh5wPx4+Rp0m6Ds2MaA2XgI2lgb8p9/T6cZz45fd5mxMrmxT9ZoTg8BWPSi80Bg0/spxwOEny9rYL3oBehue6+HK8DxZqQ+1sb1azArbhH0B02Dt7VY8t9JNKiydcMajVw/4IcEpgHOVP2MOXe2nbnhI883LL1mX4S+dFqnWy86Gnsj0PwBAKiIN7FICyxYx1QW9L7v+Wo5chjKEV1lXUCQeatDRta1ntJteSlkhUAzAxO0EJwBzNUcaGUp2UeCGVGQBqXXA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LMItJ3yW6sPPg7eShJZXRLDCBZK8f/z3Elqr4S5Peo4=; b=IQS6PGnpTYUQy9CWSl+oOxWx01WPQCPDN5BkDinnrzX//2moxZIc3a2U74ch3QKhFDcBktxdfVqXnSzvnzzAppy66yFFqr5GFLAmRqIFmh5gOls9oVWCpYe9yTmd6yaB/Xt8VFECZeRciC+IAS+omV0Mq2zZQ7bTiVOjy1GrvIo= Received: from CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) by SA1PR10MB6470.namprd10.prod.outlook.com (2603:10b6:806:29f::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.29; Thu, 27 Oct 2022 19:28:41 +0000 Received: from CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::f7b2:af85:fe37:31a7]) by CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::f7b2:af85:fe37:31a7%9]) with mapi id 15.20.5769.014; Thu, 27 Oct 2022 19:28:41 +0000 Message-ID: <368a61e7-818b-2ee4-8c8b-22218373622d@oracle.com> Date: Thu, 27 Oct 2022 14:28:34 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Subject: Re: [PATCH v12 7/7] x86/crash: Add x86 crash hotplug support Content-Language: en-US To: Baoquan He , David Hildenbrand , Borislav Petkov Cc: Oscar Salvador , Andrew Morton , linux-kernel@vger.kernel.org, x86@kernel.org, kexec@lists.infradead.org, ebiederm@xmission.com, dyoung@redhat.com, vgoyal@redhat.com, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, hpa@zytor.com, nramas@linux.microsoft.com, thomas.lendacky@amd.com, robh@kernel.org, efault@gmx.de, rppt@kernel.org, sourabhjain@linux.ibm.com, linux-mm@kvack.org References: <53aed03e-2eed-09b1-9532-fe4e497ea47d@oracle.com> From: Eric DeVolder In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SN6PR2101CA0008.namprd21.prod.outlook.com (2603:10b6:805:106::18) To CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR10MB4531:EE_|SA1PR10MB6470:EE_ X-MS-Office365-Filtering-Correlation-Id: b3686153-9224-4393-cf83-08dab8517466 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6Lm+8TpD83wJVYdw9I1d9rXdTmjGaL6yN7jFzg4d+ZBk5mS4Q4liadiuz22OMNtvXrbkvkEULA2u0hI4c7NBLltqDy5vxIhqJeG2AeXb45bLrf3AYW87DwTp1KaiI16rz0hJFbUaWOJa9bZnT2fm2G57uxeQHTo297kB4ZqEnTM/zEUlIcLZJLERwa7Ydt4gKHgwO1yrxAS+yDlWXHvFOf/O+2WzXScRlBdcmzP/EXWbLmaTQ0Q5d8MP33lt3wiFUX901y+mvFhKwPlanfh+U0uESl/HAt2JT5IqeVUMzBSfEO2Vj2TzE9RkbtbqyzltZoCtI8CUlwzGd+KgQGniWsjXqqJrZcesavssKIXLMDChKDb8M4LhaE+e0XaAKSp6o7Pw9/V8ZLEStfhkAEK5AYc7VfhTN2NjqHNZ+CsQYwHn8pDvIGV9bvouyL1iyaF2qZ50GlIePGHlkdB/VwFjZtFH5anjguxqq/GqhOMGrh/cIOIVBFstIijoBE+uPieBeRXK4cuEcz6JMdRyVtdRM2ggQ4u+5gXqrjvHISqxVAc5xl5RcjESRbem6P2AmEGAPQAJFvCzWFgW/yisUgW3Kob5LMXce4BVVc/KbcDu+jzP5+R++NtC498udfuNIjcVZKttk5Epnn52g2S82q8+ckSxU+sVe+/dXjbxP0fEdme2QS3DO5u/NEoWqkhmBC6852pl1lTV/m1xyYrSoLhuSwPYthb1W4p2YqwgLD3pBXH00Hb+Ip3jS2y+NrwWYF1avo0xuLGxrPeChRnfikQjsi+lEp3rae08cA88aYYZMWg= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR10MB4531.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(346002)(366004)(376002)(39860400002)(396003)(136003)(451199015)(31686004)(31696002)(36756003)(86362001)(41300700001)(8936002)(5660300002)(7416002)(2906002)(186003)(83380400001)(2616005)(38100700002)(54906003)(316002)(66946007)(66556008)(66476007)(4326008)(8676002)(110136005)(6512007)(53546011)(6506007)(6666004)(478600001)(6486002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?alZhTjVNTHJTL0hHNy9FRkpNMFZxcHF4Sk5TdyszZXdNeVpwRlRiUXBLTU1U?= =?utf-8?B?ckMzU3M3N08zUDMrMDhsanZ3S1FLNGUvT3ZGcS9ScitCcEl2ZGU4R3drbEZG?= =?utf-8?B?bVFmVDZqc0E2Y3RrS1cyNWVSRVNyUjFYZjZDNF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F1dmc3bEl4NTFBS3loaS9DNGlteGZON0lxSkRBdTltUkt1?= =?utf-8?B?cHFkbnVBRm45ZlVia2MxclJrOW5OVldkQVRJY2loMG9GbjFZbXNOL1BtN21m?= =?utf-8?B?d0crakgxSVB4YlZycFJLSDhTYXZOUlQ0OC9PY01yT29CZjA1WHRjcTVEckt1?= =?utf-8?B?cUFVWTFNcmQwdktFckNzZ3F3b09iYVdDeEtjOGs4WW1tVGNkL3o3emVLMmJi?= =?utf-8?Q?sYcPbVHqvbm3/VCopl8Z0DA=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: b3686153-9224-4393-cf83-08dab8517466 X-MS-Exchange-CrossTenant-AuthSource: CO1PR10MB4531.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2022 19:28:41.3602 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kyigMhipPU/Joi6pbVHKM2R3dkNC++iMn9j8QvxOHcHmWlcEb/SZ36usfZxHyeH2FCCw4J8MSgdgXscgowGV59nvdAhb7wkwWWCh0LyAOZc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR10MB6470 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-27_07,2022-10-27_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxscore=0 mlxlogscore=999 spamscore=0 phishscore=0 bulkscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2210270110 X-Proofpoint-ORIG-GUID: AYD_Lf8TJOeKc0C-T2sTSUCzcKKvAZe2 X-Proofpoint-GUID: AYD_Lf8TJOeKc0C-T2sTSUCzcKKvAZe2 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 10/27/22 08:52, Baoquan He wrote: > On 10/26/22 at 04:54pm, David Hildenbrand wrote: >> On 26.10.22 16:48, Baoquan He wrote: >>> On 10/25/22 at 12:31pm, Borislav Petkov wrote: >>>> On Thu, Oct 13, 2022 at 10:57:28AM +0800, Baoquan He wrote: >>>>> The concern to range number mainly is on Virt guest systems. >>>> >>>> And why would virt emulate 1K hotpluggable DIMM slots and not emulate a >>>> real machine? >> >> IIRC, ACPI only allows for 256 slots. PPC dlpar might provide more. >> >>> >>> Well, currently, mem hotpug is an important feature on virt system to >>> dynamically increase/shrink memory on the system. If only emulating real >>> machine, it won't be different than bare metal system. >>> >>> IIRC, the ballon driver or virtio-mem feature can add memory board, e.g >>> 1G, block size is 128M, 8 blocks added. When shrinking this 1G memory >>> later, it will take best effort way to hot remove memory. Means if any >>> memory block is occupied, it will be kept there. Finally we could only >>> remove every second blocks, 4 blocks altogether. Then the left >>> un-removed blocks will produce 4 separate memory regions. Like this, a >>> virt guest could have many memory regions in kernel after memory >>> being added/removed. >>> >>> If I am wrong, Please correct me, David. >> >> Yes, virtio-mem (but also PPC dlpar) can result in many individual memory >> blocks with holes in between after hotunplug. Hotplug OTOH, usually tries to >> "plug" these holes and reduce the total number of memory blocks. It might be >> rare that our range will be heavily fragmented after unplug, but it's >> certainly possible. >> >> [...] >> >>> >>> Yes, now assume we have a HPE SGI system and it has memory hotplug >>> capacity. The system itself has already got memory regions more than >>> 1024. Then when we hot add extra memory board, we want to include the >>> newly added memory regions into elfcorehdr so that it will be dumped out >>> in kdump kernel. >>> >>> That's why I earlier suggested 2048 for number of memory regions. >> >> The more the better, unless "it hurts". Assuming a single memory block is >> 128 MiB, that would be 256 GiB. >> >> Usually, on big systems, the memory block size is 2 GiB. So 4 TiB. > > Thanks a lot for these valuable inputs, David. > > Hi Boris, Eric > > So what's your suggested value for the Kconfig option? > > 1) cpu number, 1024? > 2) memory regions, 2048? > > About below draft, any comment? We can decide a value based on our > knowledge, can adjust later if any real system has more than the number. > > +config CRASH_ELF_CORE_PHDRS_NUM > + depends on CRASH_DUMP && KEXEC_FILE && (HOTPLUG_CPU || MEMORY_HOTPLUG) > + int > + default 3072 > + help > + For the kexec_file_load path, specify the default number of > + phdr for the vmcore. E.g the memory regions represented by the > + 'System RAM' entries in /proc/iomem, the cpu notes of each > + present cpu stored in /sys/devices/system/cpu/cpuX/crash_notes. > > Thanks > Baoquan > I prefer to keep CRASH_MAX_MEMORY_RANGES, as explained in my response to your message on October 26. eric