Just because you set your RAM limit to 2048 does not mean that your render will use all of your ram. What it means is that your render will not use over 2048.
If you render only needs 500 meg then it will only use 500 meg. If it needs 3000 meg then the memory limit will tell mental ray to try to flush unused information from your ram to keep renders under 2048meg.