Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel - Reduce BSS size to fix loader initrd problem
* kernel + modules + initrd.img (unpacked) exceeded the 63MB the loader has available for load-time data. * Top hogs are mainly in BSS. Make intr_info_ary and pcpu_sysctl kmalloc after boot instead of BSS as a temporary fix. 335872 ifnet_threads 335872 netisr_cpu 339968 dummy_pcpu 344064 bsd4_pcpu 344064 stoppcbs 346112 softclock_pcpu_ary 538624 cpu_topology_nodes 755712 dfly_pcpu 786432 icu_irqmaps 958464 map_entry_init 1048576 idt_arr 1064960 pcpu_sysctl <---- now kmallocd 1179648 ioapic_irqmaps <---- (used too early, cannot be kmallocd) 5242880 intr_info_ary <---- now kmallocd * Should fix loader issues when trying to use initrd.img[.gz] for now. Reported-by: Valheru
- Loading branch information
Charlie Root
committed
Apr 23, 2016
1 parent
d90e4fd
commit d8f4ebf
Showing
3 changed files
with
36 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters