If you have only a 32bits OS, you can use 4GB max but you also need to carve out chunks of it for memory-mapped IO for the video card and other devices, which may be how you end up under 3GB.
In that case, the only thing you can do is upgrade to a 64bits OS.