You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
debos: Warn if parsed memory/scratchsize may be too small
Since the --memory and --scratchsize arguments are parsed with human-readable
suffixes into bytes (e.g 2048MB or 2GB), if a user does not put a suffix
the arguments are parsed as bytes which can cause issues later when a user
sets the memory to be 2048 assuming it will be parsed as MB.
Change the documentation to match reality and also add a warning if the user
has set either parameter less than the recommended default.
Closes: #509
Signed-off-by: Christopher Obbard <[email protected]>
ScratchSizestring`long:"scratchsize" description:"Size of diskbacked scratch space"`
69
+
ScratchSizestring`long:"scratchsize" description:"Size of disk-backed scratch space (parsed with human-readable suffix; assumed bytes if no suffix)"`
70
70
CPUsint`short:"c" long:"cpus" description:"Number of CPUs to use for build VM (default: 2)"`
71
-
Memorystring`short:"m" long:"memory" description:"Amount of memory for build VM (default: 2048MB)"`
71
+
Memorystring`short:"m" long:"memory" description:"Amount of memory for build VM (parsed with human-readable suffix; assumed bytes if no suffix. default: 2048MB)"`
72
72
ShowBootbool`long:"show-boot" description:"Show boot/console messages from the fake machine"`
0 commit comments