size of pinned memory for safe computation

i wonder how large the size allowed pinned memory allowed with the consideration that system doesn’t degrade.
any clue? or any one knows articles related to this?
thank you