Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1oXkIA-0006Fq-8g for mharc-grub-devel@gnu.org; Mon, 12 Sep 2022 10:20:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49300) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXkI6-0006DZ-Ew for grub-devel@gnu.org; Mon, 12 Sep 2022 10:20:02 -0400 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]:38676) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oXkI4-00086V-RR for grub-devel@gnu.org; Mon, 12 Sep 2022 10:20:02 -0400 Received: by mail-pl1-x62b.google.com with SMTP id x1so8747816plv.5 for ; Mon, 12 Sep 2022 07:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=OwrNuM7IX5A1DC+0o/m6mFxQr8ssxYtngk4AFgMbuTc=; b=IkbA3SPckg9cUCyxmuYtJIkSe45M2jfKP+ukxydGhOVo9THz9PkqcykEaqQ5UGHgBp ugMO0iFDQrKEhYGXxatnLusPytXFNCKmoA50c4VtKxVMw9whwW+WP0dciXNK7JCLGeL/ k+izRrOuAcMODehnfflgRRMtSEdmMDXEROBDzoxk37NXbdqc6YGeCPPs6DsFnJaLCbv+ rXe9UMTAPzRPLWj33eF0WfYATjDnmCxosMsNTPdMlqHLQQW1uFuXhiSxdWMfUOisgy82 J2OAL5htCeP65glM2ChQME/WrF+3lY+0Bfi8tiPzHeSwoZG5akhl73KIt89jPqs+F3/u TIgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=OwrNuM7IX5A1DC+0o/m6mFxQr8ssxYtngk4AFgMbuTc=; b=wkq0/LQmo1Pyz9N+rtG6UqgjyL3ZWVMWsQd7pR0BI/tPwkKZB/TvRF9ZNzGTQmdjUP z3g5s7L99+4nN0MgahHBj1e+mpP+1cMoi33TlOv/6dClHCn68FM4RFLlOFKtyMbAsmQk iKukgRTB2iGAa3TICraZIwCFL0oIoua4Pi3Y/U0cYjIbgc4M3G3R5H/FrHUeYvdWAJW3 aDPLfIpP7nr2CyZRmN89WscGyANjnBwL//lxXRrNMmIggeQxwX0lddZeBa6c9G//ErMi P9s/Uz/N6yQx0/GEjiQ5eXvfDmpVL9i5ip3L+6LCGpwWXxm/QaerBM2iy9z99w2/HbrU h8Ag== X-Gm-Message-State: ACgBeo3AEGOQsvyjBGvmiQG91bTmFJPWmPpnqUdz674WtDlPZJ9AbKGR U4pHz0LQ2SbRSLTcoz0fihsJJXw0y6f2EA== X-Google-Smtp-Source: AA6agR6m1qDc1ud5gFrHmceUZYMMvRgR67mYWlPrWtPB0P5Vq/slwhaOwrUjKvL5eZy7wxgZ/MsIVg== X-Received: by 2002:a17:90b:38cb:b0:200:aaa6:6428 with SMTP id nn11-20020a17090b38cb00b00200aaa66428mr24437483pjb.47.1662992399179; Mon, 12 Sep 2022 07:19:59 -0700 (PDT) Received: from localhost.localdomain (ec2-13-113-80-70.ap-northeast-1.compute.amazonaws.com. [13.113.80.70]) by smtp.gmail.com with ESMTPSA id u1-20020a17090341c100b00176ba091cd3sm2595406ple.196.2022.09.12.07.19.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 07:19:58 -0700 (PDT) From: Zhang Boyang To: grub-devel@gnu.org Cc: jim945@mail.ru, glin@suse.com, dkiper@net-space.pl, dja@axtens.net, ps@pks.im, droidbittin@gmail.com, heinrich.schuchardt@canonical.com, langner.marcel@myiq.de, marcan@marcan.st Subject: [PATCH 0/1] Fix slow loading problem introduced by 887f98f0d Date: Mon, 12 Sep 2022 22:19:34 +0800 Message-Id: <20220912141935.63344-1-zhangboyang.id@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=zhangboyang.id@gmail.com; helo=mail-pl1-x62b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2022 14:20:03 -0000 Hi, This patch should probably fix the slow loading problem introduced by 887f98f0db43 (mm: Allow dynamically requesting additional memory regions). Although I'm not against increasing default heap size, simply increasing heap size may not fully fix the problem. I think the root cause is disk caches are always invalidated when almost every malloc() after default heap size is exhausted. However, I havn't reproduced the problem, so I haven't tested my patch. I would appreciate if someone can test this patch. Best Regards, Zhang Boyang