Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3972943rwa; Tue, 23 Aug 2022 13:39:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR7g87x3ULFYbnGOoavRBv6cL0sslv3iD26qTSGJgkkz5WQ2OOXBRkb5bi4EQPPC1vQJxXNG X-Received: by 2002:a17:902:9a44:b0:171:3541:2c75 with SMTP id x4-20020a1709029a4400b0017135412c75mr25168791plv.15.1661287179462; Tue, 23 Aug 2022 13:39:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661287179; cv=none; d=google.com; s=arc-20160816; b=VuG3C1yIYuw1UPOgJnTgQCqMEEif4KAiVSYnUw+YLzoY50w8+ncsaBLXMcj68XJ6FE ul+BMuYMOcJ32wa8lVtNJX0yjmJIBff5fFV60GPb5lNHssB61wtaqVQrOACCDiywRrME lCKHLcVNjGydodg6035++aFbRmpCECEmL22xjd1W6Cc0tPr0Xp+Tuyhy4Dpnxkv4Sdmy K+NYN8I70y1diPE09rI06NuhqtyNDGA4kyhASp1Lp7yJzp5mFi2Z0Ib+VfrcnmD0EcUR NEm07OHyOis5IthkLm8iwDTt9GLzNfssR32wFpBVbqcPL2V92TXkPSaecDdQm6bRhmuJ 821w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=ylLNO1fgckMQ5w81w1kel4JxKH9A6EdW63n6gd8KoHE=; b=vRYhasJwyaheMDiR9A98DXLIT2C3Wbb7JJvGjVZjJEtUh8Jp/O1Mve5maAkYSUJ0YN GrsXOPYEw0nQPnk0im6aGmLsBkpeyz/UIicnVGb+wk3iCatdI1e5POQI/9c3sYHV2DSA RQPEj3w1d9P2K73kZbt7HT3/Rbd54DrpD2kgz6P8+WUlCd0hj44GBbx3N2+qDWA0ZSzS Ly7th3nWDrMxU6eeimOdL0e5SInwxcG7FF6moq8QrAhFOtlPeDtLGIWoSb2LfQrJFakd 4ChMKS4vS3uUImM8vxP3sm1Jnc+dxnEO57O3QnhRVg4rdBs8fWjGFsRuMEwbhz5e9EXZ Urgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=cUvZqq9x; dkim=neutral (no key) header.i=@suse.cz header.b=ZFGVAfO1; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p12-20020a63fe0c000000b00429f6569910si16126746pgh.348.2022.08.23.13.39.26; Tue, 23 Aug 2022 13:39:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@suse.cz header.s=susede2_rsa header.b=cUvZqq9x; dkim=neutral (no key) header.i=@suse.cz header.b=ZFGVAfO1; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229658AbiHWUfX (ORCPT + 99 others); Tue, 23 Aug 2022 16:35:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231644AbiHWUfE (ORCPT ); Tue, 23 Aug 2022 16:35:04 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0D32491CF for ; Tue, 23 Aug 2022 13:15:59 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 7B6C4336A3; Tue, 23 Aug 2022 20:15:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1661285758; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=ylLNO1fgckMQ5w81w1kel4JxKH9A6EdW63n6gd8KoHE=; b=cUvZqq9x8zguNrUikQwVS/Vigz3Rjm1raZg80myaDuOPoQmzgzP3wZ2WCtqvSQa23+iLoM M+82sNwgadc7I/zT4f61s0DBI9xFBjE8ZEK8ZtZly+hvpPsVt2GNw66Crqp2iThbwINVPB d7RB45Hskxl4qqv2vUPZbf4N2lOATh4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1661285758; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=ylLNO1fgckMQ5w81w1kel4JxKH9A6EdW63n6gd8KoHE=; b=ZFGVAfO1nKInv/f130Wc60um+9hztgPNEABclC13LAXGkwgPoIUCMnS/JTjIX0k6ldRJ6a isfHs2mivapT9uCw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 680EC13A89; Tue, 23 Aug 2022 20:15:58 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id ZlNjGX41BWPGAQAAMHmgww (envelope-from ); Tue, 23 Aug 2022 20:15:58 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id DF4E5A067B; Tue, 23 Aug 2022 22:15:57 +0200 (CEST) From: Jan Kara To: Ted Tso Cc: , Thorsten Leemhuis , Ojaswin Mujoo , Stefan Wahren , Harshad Shirwadkar , Jan Kara Subject: [PATCH 0/2] ext4: Fix performance regression with mballoc Date: Tue, 23 Aug 2022 22:15:52 +0200 Message-Id: <20220823134508.27854-1-jack@suse.cz> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1218; h=from:subject:message-id; bh=6TD0Hniho0zrt3E1zoZv0H/hS0BhvhWUEtZ3IoG9V0E=; b=owEBbQGS/pANAwAIAZydqgc/ZEDZAcsmYgBjBTVyOY7S0aoenEcikcYosX1ydyc0sL4oZ42AUFg3 AgYn1BKJATMEAAEIAB0WIQSrWdEr1p4yirVVKBycnaoHP2RA2QUCYwU1cgAKCRCcnaoHP2RA2VPbB/ sFn/0qmHE8iHDsZF+UMJOcSXCVdI3zqNwtFnqhf5SvnGKTywXTPoaUbXfxppWeDyqI9f1RqgnO1HUk qDgP0m5UmGxtgppb4IkqV5+M/P95BGfZUFuo1JuJbGitup4zdxhPwvAHthNdIm5PNm9mUuYhgPHNMS 2Zp40jqt7DEl1uR0esaf6JU23DKYseuCqthNuFgqaCvldHnNw/slgdj1MmcNa/S7112v5mF0HkPmGF pjfF6TGR/F7f7zjCoUBaJS+Jx9OYSwyTYfyBLdvGYzqO54gntrScvDNCSMJZmcMFZcNhD37ei54oHe pnAH3VGDT/eWS8hiNiA6Virn6mbhGE X-Developer-Key: i=jack@suse.cz; a=openpgp; fpr=93C6099A142276A28BBE35D815BC833443038D8C Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_SOFTFAIL, T_SCC_BODY_TEXT_LINE autolearn=no 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-ext4@vger.kernel.org Hello, So I have implemented mballoc improvements to avoid spreading allocations even with mb_optimize_scan=1. It fixes the performance regression I was able to reproduce with reaim on my test machine: mb_optimize_scan=0 mb_optimize_scan=1 patched Hmean disk-1 2076.12 ( 0.00%) 2099.37 ( 1.12%) 2032.52 ( -2.10%) Hmean disk-41 92481.20 ( 0.00%) 83787.47 * -9.40%* 90308.37 ( -2.35%) Hmean disk-81 155073.39 ( 0.00%) 135527.05 * -12.60%* 154285.71 ( -0.51%) Hmean disk-121 185109.64 ( 0.00%) 166284.93 * -10.17%* 185298.62 ( 0.10%) Hmean disk-161 229890.53 ( 0.00%) 207563.39 * -9.71%* 232883.32 * 1.30%* Hmean disk-201 223333.33 ( 0.00%) 203235.59 * -9.00%* 221446.93 ( -0.84%) Hmean disk-241 235735.25 ( 0.00%) 217705.51 * -7.65%* 239483.27 * 1.59%* Hmean disk-281 266772.15 ( 0.00%) 241132.72 * -9.61%* 263108.62 ( -1.37%) Hmean disk-321 265435.50 ( 0.00%) 245412.84 * -7.54%* 267277.27 ( 0.69%) Stefan, can you please test whether these patches fix the problem for you as well? Comments & review welcome. Honza