> so I assume setting hard ulimit to 128MB will just result in build > process crashing instead of slowdown and swapping,
We would limit physical ram, not virtual ram. If you do a "man setrlimit", I'm talking about RLIMIT_RSS. The result would be slowing down and swapping, not crashing.