pub fn parse_mem_str(mem_str: &str) -> u64
Parses memory strings like 2G, 512M, or 1024K into bytes.
2G
512M
1024K
The fallback defaults intentionally match the historical CLI behavior rather than failing hard on malformed input.