Wednesday, May 15, 2024
Tuesday, March 19, 2024
Monitor Apple M1/M2 CPU performance
MacBook Air with Apple Silicon CPU is very efficient but it comes with a cost -- reduced CPU performance during heavy-duty jobs. This is due to the lack of cooling fan so the CPU needs to reduce clock speed to prevent overheating.
To monitor this performance change, there are two handy tools:
- asitop: use simple ASCII graphics to show CPU/GPU frequency and power usage.
- influxDB dashboard: if you like nice-looking GUI, this is your choice.
To overcome this bottleneck, there are a few ways shown by Max Tech on youtube.
Monday, July 03, 2023
Optimize Java JVM for Matlab
Sunday, June 11, 2023
Useful software on Mac (with native Apple Silicon ARM64 support):
1. Homebrew:
2. Mounty: to r/w NTFS.
* install Mounty by homebrew as it will automatically install ntfs-3g and macfuse:
brew install gromgit/fuse/mounty3. Skim: lightweight tab PDF reader
* Use "defaults write -app Skim AppleWindowTabbingMode -string always" to enable opening in tab by default.
4. CloudFlare WARP: secure wifi access
5. BBEdit: all-round free editor.
* Add this to make BBEdit as the default editor in command-line:
export EDITOR="/Applications/BBEdit.app/Contents/MacOS/BBEdit"
6. ToyViewer: lightweight image viewer (App Store)
7. RealVNC
Scientific software:
1. FSL: If the installer didn't stop after 100% complete, just kill it by Ctrl+C. It will be ready to use.
2. ANTs (need to compile for ARM64)
* Set the following in .bashrc to enable multicore support:
export ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS=8
export ITK_GLOBAL_DEFAULT_THREADER=Pool
3. Visual Studio Code: powerful IDE for almost any coding.
4. Julia: super fast Matlab-like software.
* Set the following for multicore support:
export JULIA_NUM_THREADS=8
5. MRIcroGL: powerful Nifti viewer/converter.
6. Xcode command line tools: for compile. Install by "xcode-select –install".
Thursday, December 02, 2021
Monday, April 26, 2021
M$ Office High Memory on MacOS
Friday, June 19, 2020
Faster DNS
用ping實測新的DNS,1.1.1.1比Google快一倍!
Google DNS (8.8.8.8 and 8.8.4.4) has been very useful but sometimes still not quick. CloudFlare provides public DNS (1.1.1.1 and 1.0.0.1) claiming faster than Google. Just tested by ping, 1.1.1.1 has shorter than 15ms delay while 8.8.8.8 takes longer than 25ms. So it's time to make a change!