Linux and Mac have quite different patterns in memory consumption for the same tasks. For example, using the same script than in #606, we have this pattern for Mac:

whereas for Linux it goes like this:

This should be analyzed (perhaps we can get hints and provide a patch for saving memory).