I stopped the mds_stores process from running. I saw that it was using up between 500MB and 1GB of RAM.
You can do this if you want but it shouldn't matter; think of that memory as counting against swap space (~4x physical RAM). Only "wired memory" counts against physical RAM. Anything going to the GPU like the ML is wired memory.
That kernel patching is kind of wacky. If you're going to do that, at least patch it in memory so you can still do OS updates. But like other comments say, the iogpu sysctl should do what you want.
You can do this if you want but it shouldn't matter; think of that memory as counting against swap space (~4x physical RAM). Only "wired memory" counts against physical RAM. Anything going to the GPU like the ML is wired memory.
That kernel patching is kind of wacky. If you're going to do that, at least patch it in memory so you can still do OS updates. But like other comments say, the iogpu sysctl should do what you want.