2

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?

3
  • mac is not for games :)
    – Elgert
    Oct 18, 2014 at 13:56
  • I just quit the process every hour or so Oct 20, 2014 at 4:53
  • @Elgert, I know, but stuck it with till I get a PC.
    – apoorv020
    Oct 22, 2014 at 16:43

1 Answer 1

2

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .