Get Total Memory Usage by Dataloader Workers & Parent Process

Is it possible to determine the total amount of CPU RAM memorry being used by the parent PyTorch processs and all the DataLoader worker child processes?

Will like to do this on the bash command line in Ubuntu. This can help me track PyTorch memory usage especially when there is a variable number of other processes running on the machine.