Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1oX1pe-0002tq-7V for mharc-grub-devel@gnu.org; Sat, 10 Sep 2022 10:51:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57546) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oX1pb-0002tJ-Ua for grub-devel@gnu.org; Sat, 10 Sep 2022 10:51:39 -0400 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]:44928) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oX1pa-0000zR-3B for grub-devel@gnu.org; Sat, 10 Sep 2022 10:51:39 -0400 Received: by mail-pg1-x52b.google.com with SMTP id c24so4184175pgg.11 for ; Sat, 10 Sep 2022 07:51:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:cc:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=jifH1hhtkWJOzkoZIvZSxJf9l90OY90EU4I305jNpWQ=; b=aetzw3uxQrtplugnAGFFEqCtaFTizaQKMID6ZxCc/Gwj7wWsd1TM264fEdYXBNVrf4 ixAw96bxQdHIjl2FRD2Le8xxTCrVMfs/wRLAlwVGrDuPylylRhv5iWvSHpEpJVs/vIPs sqAIqaO09eDfDDe1c+CZlBfWaMrCb7Pk4/ldDZ9FOtNi/RdXp3OaJ52OjJnL66zRugnz Vx+fYzB/F09qxNYGplm2sWOkoB/+9jHI5MNDJo3MdwvWANNeP2dtgCfW+M1zfPecZV7R aOBI1XjZzkvpzhNW+Legz7eRDiU5wWUJDMdokmIgS3NiR4L2j3ziax8yzsf7YO+zC0zE sZnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:cc:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=jifH1hhtkWJOzkoZIvZSxJf9l90OY90EU4I305jNpWQ=; b=7gzjgwpmR4joJOlt5/xaIp7VFI0b5Vvi1QRxoVL+yEOrQ8oJvfZNcGkuQx76gieLmt 4awiv5MvP5S8G3/uBC6TNnOa/yrqsJ3NyT67tvXQfXCY31V0y+xiladqD3HDAWQzHHZj JVfO6CwZyZMwesrJss1SWqXTdZpF+eTs4M4xGzxCxsnqkyDLLRLjb4tn+uecCU8+qQd7 2k5Licl69uojaOtwkDEV3Xqguq/xjyCW93odhvLunK/iQ3TIEVgfPJCJGOOmk11fSJBk AxETZkojFln+V4eqPbDZaneyrTzpVSXkQxHXFwaHBV5+QNiwcgxu0CqPPtczbHdS/s02 g5Iw== X-Gm-Message-State: ACgBeo246f+EY/6J0h/0PZmi+cEB69qliFA0zsSwUveCnqIs5/2mwJEo pYbAOTOmQUkFL9KTPnkIuA0zul/+3xttcw== X-Google-Smtp-Source: AA6agR6tk03yr8Xl442Pr0S3hmbYk8MyQn4bb8A68II9QrFHrLyO7ewrPTVAXjwbEJtHGWicN0nU0Q== X-Received: by 2002:a63:ff5a:0:b0:42c:61f:b81 with SMTP id s26-20020a63ff5a000000b0042c061f0b81mr16486506pgk.254.1662821495226; Sat, 10 Sep 2022 07:51:35 -0700 (PDT) Received: from [0.0.0.0] (ec2-13-113-80-70.ap-northeast-1.compute.amazonaws.com. [13.113.80.70]) by smtp.gmail.com with ESMTPSA id s9-20020a170902ea0900b0015e8d4eb26esm2372207plg.184.2022.09.10.07.51.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 10 Sep 2022 07:51:34 -0700 (PDT) Message-ID: Date: Sat, 10 Sep 2022 22:51:30 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: Slow loading and GRUB work after commit 938c3760b Content-Language: en-US To: grub-devel@gnu.org References: Cc: jim945@mail.ru, glin@suse.com, dja@axtens.net, dkiper@net-space.pl, droidbittin@gmail.com, heinrich.schuchardt@canonical.com, langner.marcel@myiq.de, marcan@marcan.st, ps@pks.im From: Zhang Boyang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=zhangboyang.id@gmail.com; helo=mail-pg1-x52b.google.com X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 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, NICE_REPLY_A=-0.214, 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: Sat, 10 Sep 2022 14:51:40 -0000 Hi On 2022/9/10 14:33, jim945 via Grub-devel wrote: > Hi, > > I am compiling grubx64.efi with modulescpio exfat ext2 fat gzio iso9660 > loopback lzopio newc normal ntfs part_gpt part_msdos probe read search > tar test configfile echo xzio squash4 sfs memdisk > > The prefix is stored in the sfs container. > > After applying patch 938c3760b, the boot time before the menu appears > reaches 15-20 minutes. The work is very slow. > > And in Qemu this problem does not appear. > I'm not sure if this can help, could you please test if swapping "case 0:" and "case 1:" at this position can reduce the problem? "https://git.savannah.gnu.org/cgit/grub.git/tree/grub-core/kern/mm.c?id=d9b4638c50b16d4722e66d334e2c1a674b4a45cc#n443" It seems GRUB is likely to try freeing disk cache first before requesting new pages. Although I'm not sure, but I think swapping "case 0:" and "case 1:" may fix this problem. Best Regards, Zhang Boyang