added getTotalSharedMem() et al.