SchmockLord / Hackintosh-Intel-i9-10900k-Gigabyte-Z490-Vision-D

https://www.patreon.com/SchmockLord
https://youtu.be/szOofRy7uBc
686 stars 124 forks source link

Slow boot with Monterey and no longer recognizes new software update #195

Open MidnightDiner opened 2 years ago

MidnightDiner commented 2 years ago

Hey,

Thank you so much for consistently releasing updates!

Ever since upgrading to Monterey, I've noticed that my boot sequence is very slow. It takes 4mins for my computer to boot up and it seems to hang at a certain point. I've attached an image of the boot sequence, the red circle is where it starts to slow down, the rest is where it take 3-4mins to get through. IMG_5008

Also, since the release of Monterey 12.0.1, I haven't been able to update to 12.1 through the software updater. It just says that my computer is up to date.

I'm using the iMacPro config. Z490 Vision D, AMD 5700XT, i7 processor, Broadcom bluetooth+wi-fi board.

Any help with this issue would be great!

ethankhoa commented 2 years ago

I had a similar issue and I had to set the SecureBootModel in Misc -> Security to Default.

MidnightDiner commented 2 years ago

I had a similar issue and I had to set the SecureBootModel in Misc -> Security to Default.

I changed this value to default and a couple of other things. My computer now recognizes the new software update, but I'm still having troubles with slow boot sequence.

mueex commented 2 years ago

Do you use a samsung ssd? there are known issues on that because of the trim.

jamesfawcett commented 2 years ago

I am experiencing the exact same issue, I see the same code as your screenshot. Mine seems a little longer than 4 minutes.

I am using a Samsung m.2 nvme drive.

Nelbjo commented 2 years ago

Hi guys, I have the same issue with slow boot since upgrading to Monterey. My boot time has increased to >3 min.

Like other affected users, I am running a Samsung 970 EVO M2 SSD (500 gb). Other components: Intel 10850K, Z490 Vision D, AMD 5700XT, Fenvi BT+Wifi card.

The issue seems related to failed TRIM support on Samsung SSDs, which is reported e.g. here: https://github.com/dortania/bugtracker/issues/192

Using verbose argument, I managed to take a photo just after the system hang for 2 min after the entry "opened core file of size 1 MB". The next section is about trim and notice it states "disc2 scan took 73.21.... s, trims took 73.103... s"

Today, I have purchased a new WD Black SN850 M2 SSD (1 TB) (which is also referenced in the above link) and have migrated my installation from the Samsung SSD to it. Direct clone of the SSD was not possible, I had to "reinstall" Monterey again from the recovery tool and migrated my original data from a Time Machine Backup. What can I say? Boot time reduced to 18 sec! Works wonders.

Hope this if helpful to you guys! Cheers

IMG_1022

jamesfawcett commented 2 years ago

Thanks @Nelbjo

I have two Samsung 970 Evo Plus NVMe in my desktop. If I do the steps to disable TRIM, do you know if I will cause future damage to the drives, will it overwrite too many times? There doesn't seem to be any indication if the Samsung will be future supported. Alternatively I am considering downgrading back to Big Sur.

In my Hackintosh laptop I am using a WD_BLACK SN750 1TB which is also on the compatible list you shared, so thank's for that! Phew! I just cannot decide now whether to swap one of my Samsung desktop M.2 to a WD.

Nelbjo commented 2 years ago

Thanks @Nelbjo

I have two Samsung 970 Evo Plus NVMe in my desktop. If I do the steps to disable TRIM, do you know if I will cause future damage to the drives, will it overwrite too many times? There doesn't seem to be any indication if the Samsung will be future supported. Alternatively I am considering downgrading back to Big Sur. (...)

@jamesfawcett tbh, I have no knowledge about the TRIM issue with Samsung and how to disable etc - this is way beyond my skills ;-) I just felt my positive experience in replacing the Samsung SSD as recommended by other users, was worth to mention here.

jamesfawcett commented 2 years ago

Thanks @Nelbjo

I have removed the 1TB WD M.2 from my laptop. I'm going to clone the 1TB Samsung M.2 to that and test. I'll report back my findings and hopefully it solves the issue for me too :)

jamesfawcett commented 2 years ago

Thanks again @nelbjo

I cloned my Samsung 970 Evo M.2 to the 1TB WDS100TOC from my laptop and everything is working great now on the desktop!

Boot up is super fast now. I originally started following this repo at Catalina and as I've updated each OS, it's slowly become slow and slower at booting up, but I never knew the reason. It's now as fast as a genuine mac at starting up.

I'm running my laptop from a standard SATA SSD drive now, it's noticeably slower than the M.2.

I found that using the Clonezilla boot USB was perfect for cloning the NVMe M.2 drives.

Thanks James

MidnightDiner commented 2 years ago

Thanks for the tips guys. I did the same and installed on to a WD SSD. It all works fine now. Now, my Thunderbolt won't work.. can't understand why. But I'll keep plugging away at it!

SchmockLord commented 2 years ago

Enable the SSDT-DTGP.aml and the SSDT-TB3HP.aml. Then Thunderbolt should work again.

I will enable them in my next release again. Didn't expect so many people having issues with that.

jamesfawcett commented 2 years ago

@MidnightDiner there's two thunderbolt .aml files to set to enabled > true in the config.plist. @SchmockLord said in the next release he will set them enabled.

jamesfawcett commented 2 years ago

@SchmockLord sorry you beat me to it!

SchmockLord commented 2 years ago

nah. thanks for your support!

MidnightDiner commented 2 years ago

Got Thunderbolt working. I remembered that you disabled it and went back to re-enable it. Works now! Thanks for getting back to me so quickly!

iraniamir commented 2 years ago

I have 2 Samsung 970/Evo and with TRIM enable macos boot is slow. Will the hard drive be damaged if I continue to work in this way?

jamesfawcett commented 2 years ago

@iraniamir I couldn't find the answer to this, apparently TRIM is not that important anyway on NVME, but, I didn't risk it. I also had two Samsung 970 EVO, I swapped to WD Black and now booting is extremely fast. It was worth it, the Samsung's are still valuable second hand.

g3d commented 2 years ago

I had a similar issue and I had to set the SecureBootModel in Misc -> Security to Default.

That worked for me, thanks!

irodeanu commented 2 years ago

I have same issue. Samsung SSD 970 EVO 1TB - Monterey 12.0.1

I ran: log show --last boot | grep "trims took"

Results: 2022-03-17 10:59:29.588422+0200 0x74 Default 0x0 0 0 kernel: (apfs) spaceman_scan_free_blocks:3153: disk2 scan took 0.073080 s, trims took 252.498028 s

252.498028 seconds !!!!

I tried all the solutions without success.

I found this: After updating OpenCore from v0.7.6 to v0.7.9 and setting SetApfsTrimTimeout to 0, my Samsung 970 EVO Plus 500GB (older Version) now boots in ~9 seconds (from Apple logo to macOS login screen). It was more than ~140 seconds before the OpenCore update, no matter what SetApfsTrimTimeout was set to. Using macOS Monterey v12.1. Very happy!

@SchmockLord When will we have an update to v0.7.9? 👯

SchmockLord commented 2 years ago

@irodeanu It's already committed. But I need someone to test it ;). Can you please test it? Just download the whole repo, not the latest release.

irodeanu commented 2 years ago

@irodeanu It's already committed. But I need someone to test it ;). Can you please test it? Just download the whole repo, not the latest release.

I tested now, and it's working !!!!

log show --last boot | grep "trims took"

2022-03-17 16:48:11.232034+0200 0x2ad Default 0x0 0 0 kernel: (apfs) spaceman_scan_free_blocks:3153: disk2 scan took 0.000000 s, trims took 0.000000 s

It's damn fast now !! From press start button to login screen, 6 seconds ! ❤️ ❤️ ❤️

Solution to skip trim on boot and increase speed is OpenCore v0.7.9 and SetApfsTrimTimeout: 0

Screenshot 2022-03-17 at 16 56 48 Screenshot 2022-03-17 at 16 55 36
gtrooper commented 2 years ago

@irodeanu SetApfsTrimTimeout: 0 SEEMS to enable crazy fast booting REGARDLESS of the SSD Vendor ! I tested booting speed with a Seagate PCIe 4.0 NVME AND with an ADATA XPG PCIe 4.0 NVME and in BOTH Drives it reduced booting from 20 seconds to 9 seconds ! Also this works in Catalina and NOT ONLY Monterey+ ! Very Nice Discovery ! :)