The solution is a special fan control software:
FreeBSD:
- asmc – the asmc driver controls the Apple System Management Console (SMC for
short) found on Intel Apple systems.
OSX:
- smcFanControl – controls the fans of every Intel Mac to make it run cooler.
- SSD Fan Control – fixes fan noise issues with iMacs (not tested – last version from 31.10.2013)