There is no way to reduce the amount of dwm shared RAM. You shouldn't worry about it as it will be used only if you open too many windows, like too many. e.g. My ATI has 1 Gb memory, dxdiag shows me 4 Gb total that can be used by dwm, but my task masnger shows it just 1,79 Gb of my 8 Gb RAM used.