Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp240620rdb; Thu, 22 Feb 2024 02:06:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUDfQeZRM1+n5wPQGR98s3HLUNeWMPJ9M6/sYiZRXVUBL2VpNIKJ5MwEjVJoYSg1S9n7rF6TQwUdaKNlXsABtYsLVex5cEEztoe8sFO6A== X-Google-Smtp-Source: AGHT+IGeu+fgS0NVbIygXnUd59Pgpu/ZeFnH5rzngfc75x2HlTtS2oykPDl6hd1+E4bZLxGRXZ1o X-Received: by 2002:a05:622a:1653:b0:42d:a920:e046 with SMTP id y19-20020a05622a165300b0042da920e046mr25608692qtj.52.1708596402216; Thu, 22 Feb 2024 02:06:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708596402; cv=pass; d=google.com; s=arc-20160816; b=tVViimp8PyproHmVFw9XSQkTNDnK0xSnCe7hDaSTqUJYZ77BnAe6bBxLUjpqT4piex n+A1A3f6/1N2j64jw/Q6mfyQwW+KT7YXGDJnUlXGviCH2ZkJXMTdCu/uI3Zx/QD7cFXG 78bXHXea9sraCy9BVALuonHtXTFhmGx6ialF3uLvVSWb++UimlXQVG512rtcUxZ4kcIY qXCPHhFLV7WsrJNUdXkBiOlqOookaf5+WvxPgX6b9lyukthF82ylYs1uBCWTQrbZlhhE z09kefPzfIwe68z3jNETVNjW7cv5PJ2wZR5MUgiMzNzJtzUiImxOoY57HaIq5VLTczEe qZlQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject; bh=jSw22g2B8iC1bOFssqKHJobuBKoWga+s4b9XjENiWxI=; fh=hACuv29a5sQg6xbqZVlYYsJpMEKUxj3bwjA+4/JoxBQ=; b=a0zrxazgMxVpSPIsbJNOJthhryn2Z0KvXDLt9VpLqPhWwZdClwGrHJSJk5QNLwtHeR jWs0gjUNTIEkZBFcfeKURNahXxWQeJp9ue3Kw9X3yEnyFQ8EYyrFv1PMFUCacP1Exp7Y AslXS7Il77eZLzsKcfuhY/3GqHD0sdCJKoyOs7Uml3dGQk3fhpRD7ex2BaBruJI8nArZ mmyxxQ+v6rcYX3lHpRH5AFnuwUi7rejbX1xZY+OFXzZaLAMCtGBJPtipW4LzYOEUOJ7a unsJDfbfiV0+xFliUEwRfBjWKd6CUljclURlFRfU92rVpVDiGaSg4igbBFOBQ2T5dWy8 uBeA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=loongson.cn); spf=pass (google.com: domain of linux-kernel+bounces-76294-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76294-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bb29-20020a05622a1b1d00b0042e288b6d26si2684309qtb.490.2024.02.22.02.06.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 02:06:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76294-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=loongson.cn); spf=pass (google.com: domain of linux-kernel+bounces-76294-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76294-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id F2C221C21A61 for ; Thu, 22 Feb 2024 10:06:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 626353A1C8; Thu, 22 Feb 2024 10:06:12 +0000 (UTC) Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 192F439875; Thu, 22 Feb 2024 10:06:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=114.242.206.163 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708596371; cv=none; b=L1iV842SbOxXXx5NL5CmPOcMcNNFT5x61kUkwGAL9S9S3dZ8JUwL5AuFGBEpMk5gcfAz1hxBw31D5gSC2s269izQa4Rn0tR5z+IIpfCVH2SDumWa/ISkoATj5WuGyIjKSf0+KBLDzLcUGQRAASDuEkhpk/JpFYg4MWEwlJ3sWZg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708596371; c=relaxed/simple; bh=72HRlj4wNG+uTgP9OOegzPNQJN5da4Rz0slrIrJJ5N8=; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=rGcMIkptk50PkqAQmH+wFhkLJm4hT9BQI4T9GBB0r9sa0K4OhLE9LyNuzg4PzUCQ4zHlYYmVH3OyXSFk16/6aXh+R/xROZ3US0OFVhpQhOM7/IYnJeLyiRnqLB6F82910QkbX0yzXjFCZTWwOq+Gb/4OjBABNIUrnP5fPKZ+mC4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=loongson.cn; spf=pass smtp.mailfrom=loongson.cn; arc=none smtp.client-ip=114.242.206.163 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=loongson.cn Received: from loongson.cn (unknown [10.20.42.173]) by gateway (Coremail) with SMTP id _____8BxnuuKHNdlNSkQAA--.41380S3; Thu, 22 Feb 2024 18:06:02 +0800 (CST) Received: from [10.20.42.173] (unknown [10.20.42.173]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Cxf8+HHNdlC7I+AA--.31618S3; Thu, 22 Feb 2024 18:06:01 +0800 (CST) Subject: Re: [PATCH v4 0/6] LoongArch: Add pv ipi support on LoongArch VM To: WANG Xuerui , Huacai Chen , Tianrui Zhao , Juergen Gross , Paolo Bonzini Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, virtualization@lists.linux.dev, kvm@vger.kernel.org References: <20240201031950.3225626-1-maobibo@loongson.cn> <0f4d83e2-bff9-49d9-8066-9f194ce96306@xen0n.name> <447f4279-aea9-4f35-b87e-a3fc8c6c20ac@xen0n.name> <4a6e25ec-cdb6-887a-2c64-3df12d30c89a@loongson.cn> <7867d9c8-22fb-4bfc-92dc-c782d29c56f9@xen0n.name> From: maobibo Message-ID: <542a8f4e-cec3-92d0-1cdd-43d112eec605@loongson.cn> Date: Thu, 22 Feb 2024 18:06:05 +0800 User-Agent: Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <7867d9c8-22fb-4bfc-92dc-c782d29c56f9@xen0n.name> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CM-TRANSID:AQAAf8Cxf8+HHNdlC7I+AA--.31618S3 X-CM-SenderInfo: xpdruxter6z05rqj20fqof0/ X-Coremail-Antispam: 1Uk129KBj93XoW7urW5JFykZw15AFy3GrWUKFX_yoW8WFy3pF WS9a4UKF4vyry0y392kw40gryYyr4xJr1SqrnYkryqk3y5XryavrsFqr9YgF9xu34fJw1Y q3yUtayxXFWUZacCm3ZEXasCq-sJn29KB7ZKAUJUUUUr529EdanI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On 2/15/24 18:11, WANG Xuerui wrote: >>>> Sorry for the late reply (and Happy Chinese New Year), and thanks >>>> for providing microbenchmark numbers! But it seems the more >>>> comprehensive CoreMark results were omitted (that's also absent in >>>> v3)? While the >>> >>> Of course the benchmark suite should be UnixBench instead of >>> CoreMark. Lesson: don't multi-task code reviews, especially not after >>> consuming beer -- a cup of coffee won't fully cancel the influence. ;-) >>> >> Where is rule about benchmark choices like UnixBench/Coremark for ipi >> improvement? > > Sorry for the late reply. The rules are mostly unwritten, but in general > you can think of the preference of benchmark suites as a matter of > "effectiveness" -- the closer it's to some real workload in the wild, > the better. Micro-benchmarks is okay for illustrating the points, but > without demonstrating the impact on realistic workloads, a change could > be "useless" in practice or even decrease various performance metrics > (be that throughput or latency or anything that matters in the certain > case), but get accepted without notice. yes, micro-benchmark cannot represent the real world, however it does not mean that UnixBench/Coremark should be run. You need to point out what is the negative effective from code, or what is the possible real scenario which may benefit. And points out the reasonable benchmark sensitive for IPIs rather than blindly saying UnixBench/Coremark. Regards Bibo Mao >