Locked Sticky Mac M1 Memory Error
Ken Hendrickson
Hello everyone,
After 30 years without a mac - my last and only one was the Mac SE - I took the leap and bought the Mac M1 Mini. I am proficient at running wsjt-x on Windows and Linux. I cannot get Wsjt-x to even run. This is the error messages I get before it crashes. I have run the apple diagnostic program and it found no errors. Help would be appreciated. Ken w6bzy |
|
Jim Bennett <w6jhb@...>
Ken - bring up a terminal session and run the following two commands. You will probably be asked for your password after entering the first one:
toggle quoted message
Show quoted text
sudo sysctl -w kern.sysv.shmmax=104857600 sudo sysctl -w kern.sysv.shmall=25600 Then, to verify it worked, run this command in terminal: sysctl -a | grep sysv.shm Those first two commands will get it working. However, until there is a permanent fix, you will need to re-do it after every re-boot of the OS. 73, Jim / W6JHB
|
|
Ken Hendrickson
Jim, you are amazing. You must monitor this group pretty closely.
Thank you for your quick response. I hope others who take the plunge and get a new M1 Mac will see this solution. I have only one question. Is this something that needs to be fixed in wsjt-x or in Mac OS? Thanks again for your quick response. 73, Ken / w6bzy |
|
Jim Bennett <w6jhb@...>
HI Ken - yeah, I’m an eBay seller (19th century postage stamps) and I’m by my computer pretty much all day, so I see a bazillion emails from my Groups.io subscriptions. :-)
toggle quoted message
Show quoted text
I ran into the same situation with the memory thing and after some searching I found those commands documented in a message from Bill G4WJS. As I recall, this is something that will eventually be fixed in WSJT-X. Soon, I hope! :-) 73, Jim / W6JHB
|
|
On 16/12/2020 18:33, Ken Hendrickson wrote:
Jim, you are amazing. You must monitor this group pretty closely.Hi Ken, we do not know why the original /etc/sysctl.conf mechanism for setting kernel parameters on macOS startup doesn't work on M1 Macs. It still works on Bug Sur with Intel Macs. We are hoping it is a defect, or that a different way of doing it will be documented by Apple. For now you have to set the parameters manually and repeat after every reboot. 73 bill G4WJS. |
|
Gary - AG0N
On Dec 16, 2020, at 11:33, Ken Hendrickson <Kensown@...> wrote:I believe it is discussed in the RELEASE NOTES. Gary - AG0N |
|
invl160 Davis
I have been using my 2017 iMac using the macro work around to get rid of the shared memory issue. After a week of having to do the macro fix I got tired of doing it each time I booted up. I like turning everything off in the shack when I am finished operating.
will there ever be a permanent fix in WSJT-x? Frank VO1HP |
|
On 10/01/2021 13:07, invl160 Davis wrote:
I have been using my 2017 iMac using the macro work around to get rid of the shared memory issue. After a week of having to do the macro fix I got tired of doing it each time I booted up. I like turning everything off in the shack when I am finished operating.Frank, the problem lies with Apple, we do not know why the mechanism using /etc/sysctl.conf to adjust kernel parameters does not work on macOS 11 using M1 hardware. At some point in the future the requirement for shared memory to communicate between the WSJT-X processes will be removed, but that is a big change that we do not intend to do quickly. Surely you can arrange for a script to be run on reboot to adjust the shared memory parameters, also why are you rebooting your M1 Mac so often that this becomes so annoying? 73 Bill G4WJS. |
|
On 10/01/2021 13:11, Bill Somerville
wrote:
On 10/01/2021 13:07, invl160 Davis wrote: Frank, here's an example of how to use LaunchDaemon to run a on-time command after reboot with root access. https://apple.stackexchange.com/questions/311188/running-a-sudo-command-on-startup/311189 73 |
|
invl160 Davis
Bill
Thank you for that explanation and the help with the script. I will review it and see if I can make it work. when I am finished operating daily I shut down everything in the shack. I do the same at my remote station after using it. At that location I only leave the router and the IP power bar energized. I am trying to economize on kWh used at both locations. Our power rates here are continually moving up. I’ll let u know how I make out with the script. Frank VO1HP |
|
invl160 Davis
Hi Bill
I spent a couple of hours yesterday trying to create the LaunchDaemon. It was quite difficult to follow all the steps I found in a YouTube video. Anyway I did complete the file but it didn't work for me. Obviously my next to nil knowledge of Apple coding is the issue not the instructions.! I did see a note in a posting on theis WSJTX group about making sure that file sysctl.conf is on your computer. i search on my iMac but can't find that file. I have a 2017 iMac Ver 11.1 MacOS Big Sur The note about sysctl.conf referenced a README note about how to install it. I looked in all the folders associated with the WSJT-X but cannot find the notes about sysctl.conf Can you direct me to it. 73 Frank VO1HP |
|
Austin 2E0MNV
The readme file is not copied to the user's system when wsjtx is installed. readme can be found inside the wsjtx .dmg install package which you download.
Hope this helps. Austin 2E0MNV |
|
On 12/01/2021 13:54, invl160 Davis
wrote:
Hi Bill Hi Frank, the sysctl.conf file is right next to the ReadMe.txt file on the WSJT-X installer DMG, but as said before it does not work on macOS running on M1 hardware for some unknown reason. As explained in the latest ReadMe.txt file shipped with the WSJT-X v2.3.0 RC3 beta release, the relevant sysctl commands have to be run manually to adjust the kernel shared memory configuration for the current system session. 73 |
|
Hi Gentlemen,
If you make a shell command file with the necessary command line entries and include it with startup items, then every time you reboot it will automatically set the parameters for WSJT-X on every reboot. Regards Bob N1KWH |
|
On 27/07/2021 05:06, Bob Murphy N1KWH via groups.io wrote:
Hi Gentlemen,Bob, the ReadMe.txt file available at the root of the WSJT-X installer DMG has instructions for preparing macOS systems for use with WSJT-X. The latest version (WSJT-X v2.5.0 RC3) has instructions that work with all macOS systems. 73 Bill G4WJS. |
|