Sudo uses the limits specified in /etc/security/limits to set the resource limits for the commands it runs. Note that the values in /etc/security/limits are in 512 byte blocks rather than kilobytes. Do the limits you get match what is in /etc/security/limits? - todd