More information would be helpful…OS, Zbrush memory settings, the size of the tool or document youre trying to mainpulate when you get these out of mem warnings,etc.
In general terms, you shouldn’t have to do anything on the OS level. IN Zbrush, move the Preferences>Mem>compact mem slider up to the amount of ram you have…which actually controls how quickly Zbrush will go to virtual memory…BUT
If you are on Win XP-86 ( 32 bit), the OS can’t use more than 2gb per application, no matter how much physical ram you have, so dont set it higher than that. You will have to move to 64 bit OS in order to use the full 4 gig, or whatever is available after hardware and the OS has taken its cut.