distnoted process hogging memory when running dota2/steam on a mac

distnoted process hogging memory when running dota2/steam on a mac - Photo Of Person Using Laptop For Graphic Designs

I am playing Dota2 on a non-gaming oriented machine (low spec macbook). After I have been playing for some time, the process "distnoted" starts taking a lot of memory and I have to restart Dota otherwise it becomes unplayable.

Is there any way to fix this?



Best Answer

The official bug is pending (http://steamcommunity.com/groups/SteamClientBeta/discussions/0/616189742887319167/), so I just wrote a script to use the workaround (killing distnoted)

#!/bin/bash
MEM_LIMIT_PERCENTAGE=0.5
CHECK_INTERVAL=60
while true
do
  PID=`ps -f -U $USER | grep /usr/sbin/distnoted | grep -v grep | tr -s ' ' | cut -d ' ' -f 2`
  MEM_USAGE=`ps -o %mem -p $PID | sed 1d`
  if [ `echo "$MEM_USAGE > $MEM_LIMIT_PERCENTAGE" | bc` = "1" ]; then
    echo "Mem usage high. Killing distnoted"
    kill -9 $PID
  else
    echo "Mem usage within bounds"
  fi
  sleep $CHECK_INTERVAL
done



Pictures about "distnoted process hogging memory when running dota2/steam on a mac"

distnoted process hogging memory when running dota2/steam on a mac - Back view of unrecognizable professional photographer taking photo of anonymous model in modern light studio
distnoted process hogging memory when running dota2/steam on a mac - Crop unrecognizable female setting mobile phone on tripod while recording vlog on blurred background
distnoted process hogging memory when running dota2/steam on a mac - Crop anonymous female with neat manicure configuring modern photo camera near studio lamp in soft focus





Dota 2 - How to fix high CPU usage and frame drop




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: ANTONI SHKRABA, Harrison Haines, George Milton, Anete Lusina