Memory allocations in linux for processes