It sounds like your script is trying use more than 90MB which is probably the process limit set in php.ini. Dreamhost allows you to use a custom php.ini file in which you can increase your process limit. From experience Dreamhost allows each shared account to use just under 512MB per account of system memory before they start killing processes so you should be able to up that limit a fair bit.
memory_limit = 128M to your php.ini file
instructions http://wiki.dreamhost.com/PHP.ini
or you can set it in the individual php script.
ini_set('memory_limit', '128M');