Adding --set to videoinfo to retrieve current video resolution

2022-10-12 Thread Markus Scholz
Dear Grub Developers, recently we faced the problem the author in this old thread faced: - https://lists.gnu.org/archive/html/grub-devel/2012-10/msg9.html Ie. our theme wouldn't display properly due to different screen resolutions. Hence, I wanted to change specifically the font size of our t

[RFC PATCH v3 0/2] mm: Better handling of regions

2022-10-12 Thread Zhang Boyang
Hi, Change from V2: 1. Splited into two patches. One deal with the disk cache problem. The other is focused on improvement. 2. Add types to regions. So small and large allocations are effectively seperated into different heaps. This facility can also seperate module segments and plain data chunks

[RFC PATCH v3 2/2] mm: Separate different types of allocations into different regions

2022-10-12 Thread Zhang Boyang
This patch add type infomation to heap regions. Currently there are four types: GRUB_MM_SIZE_SMALL, GRUB_MM_SIZE_LARGE, GRUB_MM_CLASS_DATA, GRUB_MM_CLASS_MODULE. Each heap region can have its own mask of acceptable memory allocation types. The GRUB_MM_SIZE_* types denotes the relative size of an a

[RFC PATCH v3 1/2] mm: Try invalidate disk caches last when out of memory

2022-10-12 Thread Zhang Boyang
Previously, every heap grow will cause all disk caches invalidated, which decreases performance severely. This patch moves disk cache invalidation code to the last of memory squeezing measures, so disk caches are released only when no other ways to get free memory. Signed-off-by: Zhang Boyang ---