Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E38F0FD9E37 for ; Fri, 27 Feb 2026 03:40:27 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4fMYxk0yZlz2xLv; Fri, 27 Feb 2026 14:40:26 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=115.124.30.131 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1772163626; cv=none; b=FxZ1bI8ULY0eq/xTvcAEODMSOpzk1oC/z0B14RSPKJ7Q+CJTgMWK281Y0oaSR+m6HQJi2oGnuyrMeGtYMA58RTWoclt0zh2jquKsAWNV9hPEYAwrn7ikJLtatlmVSCvt1wSkTuf2u5VbgW9YizH7qQ0/DMQQvZetwIwWYIG1FEV7iWNJA9UcFtxffMn+lIUOq1lbKTuijYQy53Qy50xxXErXwbKOabPGpZZowu1J+M5ncVoQ1RqAoJ2XH+z+/32nOK7cDTD6fjaRB0aExl6W5XBemJ7cg27zUEH4qLhoXavs0uQHX8BKT/KVpGBxfUYSWMOeed6FFGfZayYskwh/Ng== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1772163626; c=relaxed/relaxed; bh=7vY+x5LDeZAv0fhFs/K2EnaovCQGvdtKgpMSkJB6DOQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=IS0beBwaxTV9auhBDConAajzry9RueAb44re7M5ziLhK4isd4TjsiuaqZHGGtkz7HJUIJxdP+XRnW7LZFXOfmkr4w27Mrfz82siP8YyHjRuLCXo+/tNEZP5z0PB8y0YKorQfF20syoRHn3fRSBcxCnDc7cpl3NNuT6cwkdxcb0Q1H1qCUa+uIru3tDzTJlA7dCiaYkMYqDFPTOkkw871XBormyY4rGdUHDiCnDxkoaWrGAhwOf1ZaLdkKijDmHrBrMtFhm7cxbWXoz0ChMXP1p7Y0aIgV35SOhR65odecqnOylNRZ4bX4ikze4ZO8E4zxTVgJk9my01xequibXu9uQ== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; dkim=pass (1024-bit key; unprotected) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=hIaNJR/o; dkim-atps=neutral; spf=pass (client-ip=115.124.30.131; helo=out30-131.freemail.mail.aliyun.com; envelope-from=hsiangkao@linux.alibaba.com; receiver=lists.ozlabs.org) smtp.mailfrom=linux.alibaba.com Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=hIaNJR/o; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.alibaba.com (client-ip=115.124.30.131; helo=out30-131.freemail.mail.aliyun.com; envelope-from=hsiangkao@linux.alibaba.com; receiver=lists.ozlabs.org) Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4fMYxg0rG0z2xKh for ; Fri, 27 Feb 2026 14:40:21 +1100 (AEDT) DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1772163615; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=7vY+x5LDeZAv0fhFs/K2EnaovCQGvdtKgpMSkJB6DOQ=; b=hIaNJR/obSckjJI7I/s/furd3M66z2YIcSszSNmtvK7XvL4Ccj7RaQPUwuoOBpqACaXmnP5Pg9IB/nYCUtVdrmWHKYxFg8+uxGhGA3MQHYqRh6QSjZUby4ssn7sagPm2ROFn/LQ0CE+FT+h3WRzg0oPr9Ersq34e86V6dsY7rx8= Received: from 30.221.131.231(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0Wzsxcaw_1772163611 cluster:ay36) by smtp.aliyun-inc.com; Fri, 27 Feb 2026 11:40:12 +0800 Message-ID: Date: Fri, 27 Feb 2026 11:40:10 +0800 X-Mailing-List: linux-erofs@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] erofs-utils: lib: converted division to shift in z_erofs_load_compact_lcluster To: Ashley Lee Cc: Yifan Zhao , linux-erofs@lists.ozlabs.org References: <20260225173036.194311-1-yester1324@gmail.com> <555e6fbb-79f9-422f-9b43-bc655a106229@linux.alibaba.com> From: Gao Xiang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2026/2/27 07:37, Ashley Lee wrote: > On Wed, 25 Feb 2026 at 18:40, Gao Xiang wrote: >> >> >> >> On 2026/2/26 10:32, Yifan Zhao wrote: >>> >>> A quick search shows that x86 kernel implementation also use `div` instruction >>> >>> under Linux v6.19 and GCC 15.2.1, add GCC correctly generate shift instruction >> >> Could we try more GCC versions and find the impacts? >> >> Does it a recent GCC regression? >> >> >>> >>> in my arm64 machine with GCC 14.2.0. >>> >>> Could you also consider evaluate this optimization in kernel? >> >> Yes, but I wonder if `div` is already used for these years on x86, >> could you check this? > > Hello all, > > I'll attempt to perform benchmarks on as many architectures and > compiler variants as I can. I was looking into lkp-tests to perform > this however I was facing trouble running on my OS. Is there a > simple way to do this? I never customize lkp-tests, but I guess just triggering fio on common platfroms with a given dataset (like enwik9) is enough. Thanks, Gao Xiang > > Thank you, > > Ashley