Calculate the total memory allocated on a per-capability basis