albertstarfield / libreperf

An project of attempting to Increase Performance on older Mac computer using various hidden kernel and UI tweaks
GNU General Public License v2.0
1 stars 1 forks source link

Zalloc exhaustion Resource Allocation problem #2

Open albertstarfield opened 7 years ago

albertstarfield commented 7 years ago

Panic Report panic(cpu 1 caller 0xffffff800a9352b0): "zalloc: zone map exhausted while allocating from zone kalloc.8192, likely due to memory leak in zone buf.4096 (854921216 total bytes, 208721 elements allocated)"@/Library/Caches/com.apple.xbs/Sources/xnu/xnu-3789.60.24/osfmk/kern/zalloc.c:2405 Backtrace (CPU 1), Frame : Return Address 0xffffff801401bbd0 : 0xffffff800a8ea53c 0xffffff801401bc50 : 0xffffff800a9352b0 0xffffff801401bda0 : 0xffffff800a8cb238 0xffffff801401bdd0 : 0xffffff800a8ef6ad 0xffffff801401be30 : 0xffffff800a8cbfb1 0xffffff801401be80 : 0xffffff800a8e0777 0xffffff801401bf10 : 0xffffff800a9eb1d8 0xffffff801401bfb0 : 0xffffff800a89bdb6

BSD process name corresponding to current thread: hidd Boot args: -v -f kext-dev-mode=1 vm_compressor=2 idlehalt=1 srv=1 cpuidle=1 serverperfmode=1

Mac OS version: 16F73

Kernel version: Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 Kernel UUID: FB2170A8-257D-3C64-B14D-BC06CC94E34C Kernel slide: 0x000000000a600000 Kernel text base: 0xffffff800a800000 __HIB text base: 0xffffff800a700000 System model name: MacBookPro8,1 (Mac-94245B3640C91C81)

System uptime in nanoseconds: 32126455090617 Zone Name Cur Size Free Size vm objects 217718784 213248 vm object hash entri 33745680 37040 VM map entries 6515760 2961920 pv_list 59531280 1680 vm pages array 82318712 0 vm pages 3518464 31424 kalloc.16 14884864 175776 kalloc.32 8200192 173376 kalloc.48 17050320 97776 kalloc.64 19701760 99520 kalloc.80 19371840 47200 kalloc.96 4075872

Model: MacBookPro8,1, BootROM MBP81.0047.B32, 2 processors, Intel Core i5, 2.4 GHz, 6 GB, SMC 1.68f99 Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1333 MHz, 0x0000, 0x202020202020202020202020202020202020 Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80AD, 0x484D54333235533642465238432D48392020 AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6), Broadcom BCM43xx 1.0 (5.106.98.100.24) Bluetooth: Version 5.0.4f18, 3 services, 27 devices, 1 incoming serial ports Network Service: Wi-Fi, AirPort, en1 Serial ATA Device: Hitachi HTS545050B9A302, 500.11 GB Serial ATA Device: MATSHITADVD-R UJ-8A8 USB Device: USB 2.0 Bus USB Device: FaceTime HD Camera (Built-in) USB Device: Hub USB Device: Apple Internal Keyboard / Trackpad USB Device: BRCM2070 Hub USB Device: Bluetooth USB Host Controller USB Device: USB 2.0 Bus USB Device: Hub USB Device: IR Receiver Thunderbolt Bus: MacBook Pro, Apple Inc., 22.1

albertstarfield commented 7 years ago

a simple fix might be to make resourceguard more sensitive to early memory leak detection

albertstarfield commented 7 years ago

and add a fly-by patcher to patch resourceguard module seamless without user interaction seamless hotfix