synthetic: allow cache/memory sizes to be specified in TB/GB/MB/kB

(cherry picked from commit 61c4ae706d6739f2d27f3c231bf3a4fba646a1d6)