Available memory is not fixed. In addition to differences in the device, there are running processes (system processes) that consume different amounts of device memory, and since there is no virtual memory, all processes are drawn from the same heap.
All iPhones up to 3G and including 3G, and all iPods are affected, at least up to current models (not sure about this), has 128 MB RAM. 3GS has 256 MB.
For devices with a capacity of 128 MB, it is recommended that you try to save below about 26 MB, although you usually need to have up to 60 MB available (you can use the 34 MB gap to cache temporary resources).
Sometimes the available RAM may even drop below 26 MB, so the smaller your size, the better.
philsquared
source share