Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1oXiHU-00010T-Li for mharc-grub-devel@gnu.org; Mon, 12 Sep 2022 08:11:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiHP-0000yk-Rg for grub-devel@gnu.org; Mon, 12 Sep 2022 08:11:12 -0400 Received: from smtp35.i.mail.ru ([94.100.177.95]:48774) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXiH8-0001ee-TO for grub-devel@gnu.org; Mon, 12 Sep 2022 08:11:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail4; h=In-Reply-To:Cc:References:To:From:Subject:MIME-Version:Date:Message-ID:Content-Type:From:Subject:Content-Type:Content-Transfer-Encoding:To:Cc; bh=flBmW+qp41Bs0IiVHQY2zZYW/Uw+lqbUppN/PIJXUGA=; t=1662984654;x=1663074654; b=ytlqHwxEkJUfYBFalvTdDFoL4e9RHi7gCF4Dv5x6+JkRU9gDZ2bHLe/SSV9gtgDO9SNdj9kb6h+jvMtu3L0YnAPBfi/DhnAZi8QrgKcbKJ43pc5xXYKrHV12ny2JSPmKSD0G0o9MUBk+kr/ymuEWsbONMFUuKlGxYPa1VlQe2+5HSyfSc2LFvgrpCEf3T8xMOD0cxryqFEkBdXG/OuueuGYTHzhcUFymVal0MeXcrfp0ce0D4qwuxCwXp0jAuclFAk0hBaiHjdK3jBVXvb6yQdd5b8xqzAsDNOXOolw2KBM7o/+yeTLN6Saxfk35a09vXZEiYVscDl6Mko5t997Yig==; Received: by smtp35.i.mail.ru with esmtpa (envelope-from ) id 1oXiH3-0002Rk-W0; Mon, 12 Sep 2022 15:10:50 +0300 Content-Type: multipart/alternative; boundary="------------ir7eDk0EGjUueI6ui6GMnfwC" Message-ID: <6d5208ee-d9f7-de87-b8fe-031e680af7b7@mail.ru> Date: Mon, 12 Sep 2022 15:10:49 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: Slow loading and GRUB work after commit 938c3760b Content-Language: en-US From: jim945 To: Zhang Boyang References: <28f67c55-d011-3203-a03f-01827a860156@mail.ru> Cc: grub-devel@gnu.org In-Reply-To: <28f67c55-d011-3203-a03f-01827a860156@mail.ru> Authentication-Results: smtp35.i.mail.ru; auth=pass smtp.auth=jim945@mail.ru smtp.mailfrom=jim945@mail.ru X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: 78E4E2B564C1792B X-77F55803: 4F1203BC0FB41BD98A32D11463CB84D87C8E7E229E76C8F0D8D739C62B210C94182A05F538085040F4A7C3B3D8C1E9CFBAEA8C4C3794A1859673EE278A8B467FABD34BD09F08A2CA X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7963A96EF19BF462AEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637ECAF4C2CEE0D0B2F8638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D83827A893F0CF66C3116200F90EB086446F9789CCF6C18C3F8528715B7D10C86878DA827A17800CE7E4DF6D1C10F22F599FA2833FD35BB23D9E625A9149C048EEB1593CA6EC85F86D6FD1C55BDD38FC3FD2E47CDBA5A96583BD4B6F7A4D31EC0BC014FD901B82EE079FA2833FD35BB23D27C277FBC8AE2E8BECADA55FE5B58BB7A471835C12D1D977C4224003CC836476EB9C4185024447017B076A6E789B0E975F5C1EE8F4F765FC31EFF0C8685CA4B63AA81AA40904B5D9CF19DD082D7633A078D18283394535A93AA81AA40904B5D98AA50765F790063724A66778E5B60AD2D81D268191BDAD3D698AB9A7B718F8C4D1B931868CE1C5781A620F70A64A45A98AA50765F79006372E808ACE2090B5E1725E5C173C3A84C3C5EA940A35A165FF2DBA43225CD8A89F05DF73978FA0049535872C767BF85DA2F004C90652538430E4A6367B16DE6309 X-C1DE0DAB: 9604B64F49C60606AD91A466A1DEF99B296C473AB1E142185AC9E3593CE4B31AB1881A6453793CE9274300E5CE05BD4401A9E91200F654B0C7A0BC55FA0FE5FC718DB3206172084F24FC0D9977F2677E47CBC3574E87FA75B1881A6453793CE9C32612AADDFBE06133F7A9E5587C79A693EDB24507CE13387DFF0A840B692CF8 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34AA13E2DDB90678625309CC72C9F16F879AC1CE8A78252388F147688E68A04FEE861E62D1D21CF9F81D7E09C32AA3244C42D38602CC7AE05D61C5AC8B5E9D48D4B038C9161EF167A1729B2BEF169E0186 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojlrfVkOjGUc+UbLAnZAmy+g== X-Mailru-Sender: 00097D31F91C944BE40B9DFFF9A454DA892B3FD00DC27C9693D88C1FA0683C88FCB7861228910ADAD4DCF7DF7BF12E811458020726E2BC9F511FF2930B279AAA84285AF20BA446005FEEDEB644C299C0ED14614B50AE0675 X-Mras: Ok Received-SPF: pass client-ip=94.100.177.95; envelope-from=jim945@mail.ru; helo=smtp35.i.mail.ru X-Spam_score_int: -39 X-Spam_score: -4.0 X-Spam_bar: ---- X-Spam_report: (-4.0 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, NICE_REPLY_A=-2.153, SPF_HELO_PASS=-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 12:11:12 -0000 This is a multi-part message in MIME format. --------------ir7eDk0EGjUueI6ui6GMnfwC Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 12.09.2022 14:29, jim945 пишет: > > > 10.09.2022 17:51, Zhang Boyang пишет: >> 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 > > > After swapping "case 0:" and "case 1:" works fine. > --------------ir7eDk0EGjUueI6ui6GMnfwC Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit


12.09.2022 14:29, jim945 пишет:


10.09.2022 17:51, Zhang Boyang пишет:
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


After swapping "case 0:" and "case 1:" works fine.

--------------ir7eDk0EGjUueI6ui6GMnfwC--