At Thu, 21 Apr 2016 08:45:13 -0700, Jordan Johnson wrote: > Is it possible to limit the memory that raco uses for running builds (beyond > whatever reduction I might get by using the -j option to reduce the number of > parallel jobs)? > > If so, how?
Mostly, a build with a given sets of packages an a given number of jobs will take a specific amount of memory. You can set a process memory limit at the OS level, at least on Unix variants, and that will influence Racket's GC to a limited extent --- but probably not enough to be useful. Besides adjusting `-j`, if you don't need documentation, you can use `-D` to reduce peak memory use somewhat. Or, if you're running the current Racket release, depending on the packages you need to build and which ones you're developing, you might be able to pull already-built packages from the catalog at https://pkg-build.racket-lang.org/server/built/catalog/ If we're talking about a main-distribution build, you can get an idea of what parts of the build use the most memory from http://build-plot.racket-lang.org/ None of that is much help if you're starting with an installation and `raco setup` for your own collections uses too much memory. In that case, `-j` is probably the only useful control. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.