Hello list,I don't know how much it would matter, but are you missing a number
While building a new KDE system (see my post a few minutes ago), I'm finding the system stalling because it can't handle all its install jobs. I have this set:
$ grep '\-j' /etc/portage/make.conf
EMERGE_DEFAULT_OPTS="--jobs --load-average=30 [...]"
MAKEOPTS="-j16 -l16"
The CPU has 24 threads and 64GB RAM, and lots of swap space, and those values have worked well for some time. Now, though, I'm going to have to limit the --jobs or the --load-average.
On interrupting one such hang, I found that 32 install jobs had been waiting to run; is this limit hard coded? I also saw "too many jobs" or something, and
"could not read job counter".
Is it now bug-report time?
On 6/20/24 8:46 AM, Peter Humphrey wrote:
Hello list,
While building a new KDE system (see my post a few minutes ago), I'm finding the system stalling because it can't handle all its install jobs.
I have this set:
$ grep '\-j' /etc/portage/make.conf
EMERGE_DEFAULT_OPTS="--jobs --load-average=30 [...]"
I don't know how much it would matter, but are you missing a number
after --jobs?
MAKEOPTS="-j16 -l16"
The CPU has 24 threads and 64GB RAM, and lots of swap space, and those values have worked well for some time. Now, though, I'm going to have to limit the --jobs or the --load-average.
On interrupting one such hang, I found that 32 install jobs had been waiting to run; is this limit hard coded? I also saw "too many jobs" or something, and "could not read job counter".
Is it now bug-report time?
On 6/20/24 8:46 AM, Peter Humphrey wrote:
Hello list,
While building a new KDE system (see my post a few minutes ago), I'm finding the system stalling because it can't handle all its install jobs.
I have this set:
$ grep '\-j' /etc/portage/make.conf
EMERGE_DEFAULT_OPTS="--jobs --load-average=30 [...]"
I don't know how much it would matter, but are you missing a number
after --jobs?
MAKEOPTS="-j16 -l16"
The CPU has 24 threads and 64GB RAM, and lots of swap space, and those values have worked well for some time. Now, though, I'm going to have to limit the --jobs or the --load-average.
On interrupting one such hang, I found that 32 install jobs had been waiting to run; is this limit hard coded?
I also saw "too many jobs" or
something, and "could not read job counter".
Is it now bug-report time?
On Thursday, 20 June 2024 14:40:12 BST Michael wrote:Again, I don't know if it matters in this case, but my understanding is
On Thursday, 20 June 2024 14:27:18 BST Jack wrote:We went through all this at great length not long ago (months, perhaps: a certain A. McK had returned to the list for a while). /usr/bin/make will stop spawning make jobs once either (a) the number it's running reaches -j16 or (b)
On 6/20/24 8:46 AM, Peter Humphrey wrote:Without a number of jobs specified in make.conf emerge will not limit the
While building a new KDE system (see my post a few minutes ago), I'm
finding the system stalling because it can't handle all its installI don't know how much it would matter, but are you missing a number
jobs. I have this set:
$ grep '\-j' /etc/portage/make.conf
EMERGE_DEFAULT_OPTS="--jobs --load-average=30 [...]"
after --jobs?
number of packages it tries to build, except it will not start new jobs
while there are at least --load-average=30 running already.
MAKEOPTS="-j16 -l16"
the load average of those reaches -l16. Portage sending more tasks to /usr/bin/make simply fills the latter's input queue.
It's certainly a suspicious number.The CPU has 24 threads and 64GB RAM, and lots of swap space, and those >>>> values have worked well for some time. Now, though, I'm going to have to >>>> limit the --jobs or the --load-average.
On interrupting one such hang, I found that 32 install jobs had been
waiting to run; is this limit hard coded?
I take it the --load-average is what it says, an average, so it will jumpSee above re. input queue.
above the specified number if you have not limited the --jobs number.
The existing 64GiB swap partition is rarely touched, if ever. I've never seen an OOM error. I haven't touched jobs or loads for many months until today, norYou could set up a swap file, to avoid OOM situations, while you're tweaking >> the --jobs & --load-average.I also saw "too many jobs" or something, and "could not read job
counter".
Is it now bug-report time?
have I seen a failure to read a job counter.
Anyway, it still rankles that I can't use more than half the machine's power because of limits in portage. This can't be the only 64GiB machine in gentoo- land, surely.
On Thursday, 20 June 2024 14:27:18 BST Jack wrote:
On 6/20/24 8:46 AM, Peter Humphrey wrote:
While building a new KDE system (see my post a few minutes ago), I'm
finding the system stalling because it can't handle all its install
jobs. I have this set:
$ grep '\-j' /etc/portage/make.conf
EMERGE_DEFAULT_OPTS="--jobs --load-average=30 [...]"
I don't know how much it would matter, but are you missing a number
after --jobs?
Without a number of jobs specified in make.conf emerge will not limit the number of packages it tries to build, except it will not start new jobs
while there are at least --load-average=30 running already.
MAKEOPTS="-j16 -l16"
The CPU has 24 threads and 64GB RAM, and lots of swap space, and those values have worked well for some time. Now, though, I'm going to have to limit the --jobs or the --load-average.
On interrupting one such hang, I found that 32 install jobs had been waiting to run; is this limit hard coded?
I take it the --load-average is what it says, an average, so it will jump above the specified number if you have not limited the --jobs number.
I also saw "too many jobs" or something, and "could not read job counter".
Is it now bug-report time?
You could set up a swap file, to avoid OOM situations, while you're tweaking the --jobs & --load-average.
Anyway, it still rankles that I can't use more than half the machine's power because of limits in portage. This can't be the only 64GiB machine in gentoo- land, surely.
On Thursday, 20 June 2024 14:40:12 BST Michael wrote:
On Thursday, 20 June 2024 14:27:18 BST Jack wrote:
On 6/20/24 8:46 AM, Peter Humphrey wrote:
While building a new KDE system (see my post a few minutes ago), I'm
finding the system stalling because it can't handle all its install jobs. I have this set:
$ grep '\-j' /etc/portage/make.conf
EMERGE_DEFAULT_OPTS="--jobs --load-average=30 [...]"
I don't know how much it would matter, but are you missing a number after --jobs?
Without a number of jobs specified in make.conf emerge will not limit the number of packages it tries to build, except it will not start new jobs while there are at least --load-average=30 running already.
MAKEOPTS="-j16 -l16"
We went through all this at great length not long ago (months, perhaps: a certain A. McK had returned to the list for a while). /usr/bin/make will
stop spawning make jobs once either (a) the number it's running reaches
-j16 or (b) the load average of those reaches -l16. Portage sending more tasks to /usr/bin/make simply fills the latter's input queue.
The CPU has 24 threads and 64GB RAM, and lots of swap space, and those values have worked well for some time. Now, though, I'm going to have to
limit the --jobs or the --load-average.
On interrupting one such hang, I found that 32 install jobs had been waiting to run; is this limit hard coded?
It's certainly a suspicious number.
I take it the --load-average is what it says, an average, so it will jump above the specified number if you have not limited the --jobs number.
See above re. input queue.
I also saw "too many jobs" or something, and "could not read job counter".
Is it now bug-report time?
You could set up a swap file, to avoid OOM situations, while you're tweaking the --jobs & --load-average.
The existing 64GiB swap partition is rarely touched, if ever. I've never
seen an OOM error. I haven't touched jobs or loads for many months until today, nor have I seen a failure to read a job counter.
Anyway, it still rankles that I can't use more than half the machine's power because of limits in portage. This can't be the only 64GiB machine in
gentoo- land, surely.
On 6/20/24 8:46 AM, Peter Humphrey wrote:
On interrupting one such hang, I found that 32 install jobs had been waiting to run; is this limit hard coded? I also saw "too many jobs" or something, and "could not read job counter".
Is it now bug-report time?
It's not clear to me what "stalling" means here. Did portage stop doing
any work as verified by ps or htop? Did it just spend a long time
showing no progress?
I do know what the 32 install jobs "waiting to run" is though. Or at
least I'm pretty sure I know what it means.
Recent portage has this change: https://gitweb.gentoo.org/proj/portage.git/commit/?id=825db01b91a37dcd9890ee 5bf9f462ea524ac5cc
"Add merge-wait FEATURES setting enabled by default"
From the changelog:
portage-3.0.62 (2024-02-22)
--------------
* FEATURES: Add FEATURES="merge-wait", enabled by default, to control
whether we do parallel merges of images to the live filesystem (bug
#663324).
If enabled, we serialize these merges.
For now, this makes FEATURES="parallel-install" a no-op, but in
future, it will be improved to allow parallel merges, just not while
any packages are compiling.
8
In https://bugs.gentoo.org/934382 portage is adding additional options:
--jobs-merge-wait-threshold=X will cause portage to stop starting new
jobs when X number of packages are in pending-merge state, and portage
will copy the installed package files from the image to the root
filesystem. Otherwise, portage will get there eventually but it might
take a bit longer
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 156:09:04 |
Calls: | 10,384 |
Calls today: | 1 |
Files: | 14,056 |
Messages: | 6,416,468 |