0

[I'm on OSX but shouldn't be relevant] oftentimes, with many chrome tabs open, chrome will freeze and not serve any page. What seems to reliably work in this case is to go to: More Tools > Task Manager -> select 'GPU Process' -> click End Process. (doesn't require killing chrome, that process will auto-restart) However this is time consuming and sometimes doesn't work in case chrome is really unresponsive. also, ps auwx|grep GPU doesn't return anything relevant, so not sure how to find that process from cmd line.

How would one do that?

2
  • 3
    Questions on OSX should be asked on Unix & Linux or Ask Different.
    – muru
    Jun 23, 2018 at 6:49
  • it wasn't specific to OSX, it's also valid on ubuntu; @dsstorefile1 's answer was what I was searching for Jun 25, 2018 at 18:29

1 Answer 1

3

You have the right idea with the ps command. Try pgrep -f type=gpu-process instead to get the PID or pkill -f type=gpu-process to kill. You can do something similar with ps and grep if pgrep isn't available on macOS.

The underlying problem making Chrome freeze is worth investigating sometime, however.

1
  • due to the fact that some other processes may contain string type=gpu-process (for example, steamwebhelper) you could add chrome.* to the search pattern and the full commands will become respectively pgrep -f chrome.*type=gpu-process and pkill -f chrome.*type=gpu-process Sep 3, 2020 at 10:46

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