Re: [v8-dev] Clever number of parallel jobs for Ninja?

2024-05-01 Thread Paul Harris
Ok thanks all for your suggestions! On Wednesday, May 1, 2024 at 12:15:32 AM UTC+8 seth.b...@microsoft.com wrote: > If you're running out of memory during C++ compilation tasks, I don't have > any useful suggestions beyond what you've already done. If you only run out > of memory while

Re: [v8-dev] Clever number of parallel jobs for Ninja?

2024-04-30 Thread 'seth.b...@microsoft.com' via v8-dev
If you're running out of memory during C++ compilation tasks, I don't have any useful suggestions beyond what you've already done. If you only run out of memory while running multiple linking tasks, you could try setting the gn argument `concurrent_links` to a smaller value than the default.

Re: [v8-dev] Clever number of parallel jobs for Ninja?

2024-04-30 Thread Jakob Kummerow
I don't think there's a built-in way to take RAM into account. ninja and autoninja both look at the number of CPU cores/threads. FWIW, with 2 GiB memory per thread (so e.g. 16 GiB on a 4C/8T CPU), I haven't had OOM issues on a fairly wide range of machines from laptops to workstations.

Re: [v8-dev] Clever number of parallel jobs for Ninja?

2024-04-30 Thread Ben Noordhuis
On Tue, Apr 30, 2024 at 3:56 AM Paul Harris wrote: > > Hi, > > I'd like to run Ninja build with as many jobs as I have CPUs. > However, some of the build jobs require a lot of RAM (especially for Debug > builds), so I have to reduce the number of jobs artificially, just to keep > the number of

[v8-dev] Clever number of parallel jobs for Ninja?

2024-04-29 Thread Paul Harris
Hi, I'd like to run Ninja build with as many jobs as I have CPUs. However, some of the build jobs require a lot of RAM (especially for Debug builds), so I have to reduce the number of jobs artificially, just to keep the number of jobs under the ram limit. Is there a clever set of flags or