![]() Lower value (than 100) means GC will run more often. To change the level, you can set the GOGC environment variable to specify how often the garbage collection will happen. It will run Garbage Collection during the analysis phase with constant level of aggressiveness.Īs a result, the analysis will be about 25% slower and will consume about 30% less memory. ![]() If you want manual control over Garbage Collection, you can use -const-gc / -g flag. The more memory is used and the less memory is free, the more often will the GC happen. Then Garbage Collection is disabled during the analysis phase completely to gain maximum speed. When less memory is used by gdu than the total free memory of the host, Gdu tries to balance performance and memory usage. To configure gdu to permanently run in gray-scale color mode:.$HOME/.config/gdu/gdu.yaml and $HOME/.gdu.yaml are checked for the presense of the config file by default. Gdu can read (and write) YAML configuration file. H Same file was already counted (hard link). An error occurred while reading a subdirectory, size may be not File is symlink or socket. ! An error occurred while reading this directory. File flagsįiles and directories may be prefixed by a one-character ![]() Non-interactive mode is started automatically when TTY is not detected (using go-isatty), for example if the output is being piped to a file, or it can be started explicitly by using a flag.Įxport mode (flag -o) outputs all usage data as JSON, which can be later opened using the -f flag. Gdu has three modes: interactive (default), non-interactive and export. Zcat | gdu -f- # read analysis from file Gdu -o- / | gzip -c > # write all info to JSON file for later analysis Gdu / > file # write stats to file, do not start interactive mode Gdu -nps /some/dir # show only total usage for given dir Gdu -np / # do not show progress, useful when using its output in a script Gdu -n / # only print stats, do not start interactive mode Gdu -c / # use only white/gray/black colors Gdu -X ignore_file / # ignore paths by regular patterns from file Gdu -I '.*+' # ignore paths by regular pattern Gdu -a # show apparent size instead of disk usage write-config Write current configuration to file (default is $HOME/.gdu.yaml) s, -summarize Show only a total in non-interactive mode si Show sizes with decimal SI prefixes (kB, MB, GB) instead of binary prefixes (KiB, MiB, GiB) B, -show-relative-size Show relative size a, -show-apparent-size Show apparent size o, -output-file string Export all info into file as JSON n, -non-interactive Do not run in interactive mode p, -no-progress Do not show progress in non-interactive mode no-prefix Show sizes as raw numbers without any prefixes (SI or binary) in non-interactive mode H, -no-hidden Ignore hidden directories (beginning with dot) x, -no-cross Do not cross filesystem boundaries c, -no-color Do not use colorized output m, -max-cores int Set max cores that GDU will use. l, -log-file string Path to a logfile (default "/dev/null") f, -input-file string Import analysis from JSON file X, -ignore-from string Read absolute path patterns to ignore from file I, -ignore-dirs-pattern strings Absolute path patterns to ignore (separated by comma) i, -ignore-dirs strings Absolute paths to ignore (separated by comma) (default ) show the size of the file to which symlink points to (symlinks to directories are not followed) enable-profiling Enable collection of profiling data and provide it on -L, -follow-symlinks Follow symlinks for files, i.e. g, -const-gc Enable memory garbage collection during analysis with constant level set by GOGC config-file string Read config from file (default is $HOME/.gdu.yaml)
0 Comments
Leave a Reply. |