Is there a simple way to request how much memory an MPI-task has
available? I know this is specified in the loadleveler script in the
@resources parameter, but I would like to use request available memory
in a c-program to control the memory-usage.

Any thoughts on this? Should I just do malloc()/realloc() until i get an