Re: [gentoo-user] Portage load control

2023-05-12 Thread Peter Humphrey
On Saturday, 13 May 2023 00:53:49 BST Mark Knecht wrote: >Anyway, I had a couple of thoughts: > > 1) If it's really a bug then as others have said report it up the > chain and hope for a fix. https://bugs.gentoo.org/905933 > 2) If I wanted to solve the problem today(ish) then I'd build > a

Re: [gentoo-user] Portage load control

2023-05-12 Thread Mark Knecht
On Fri, May 12, 2023 at 10:42 AM Peter Humphrey wrote: > > On Friday, 12 May 2023 17:58:46 BST Jack wrote: > > > Again, --load-average tells emerge whether it can start a new > > job/package, but has no control over how high the load will get based > > on the already started jobs. If emerge

Re: [gentoo-user] Portage load control

2023-05-12 Thread Jack
On 5/12/23 20:08, Peter Humphrey wrote: On Saturday, 13 May 2023 00:53:49 BST Mark Knecht wrote: Anyway, I had a couple of thoughts: 1) If it's really a bug then as others have said report it up the chain and hope for a fix. https://bugs.gentoo.org/905933 2) If I wanted to solve the

Re: [gentoo-user] Portage load control

2023-05-12 Thread Peter Humphrey
On Friday, 12 May 2023 01:38:52 BST Jack wrote: > Sorry if I'm repeating myself, but as I see it, there are two different > --load-average settings to consider. I'd have to go back to the > beginning of the thread to confirm you are setting both of them. I am also going to repeat myself. > The

Re: [gentoo-user] Apache and systemd problem

2023-05-12 Thread Jacques Montier
Le ven. 12 mai 2023 à 10:40, Alexandru N. Barloiu a écrit : > How can you not miss it when it's specified in the ebuild? > > [root@ruja:~]# grep service > /usr/portage/www-servers/apache/apache-2.4.55-r1.ebuild > # Then apache2.4.service can be used and systemd support controlled >

Re: [gentoo-user] Apache and systemd problem

2023-05-12 Thread Alexandru N. Barloiu
How can you not miss it when it's specified in the ebuild? [root@ruja:~]# grep service /usr/portage/www-servers/apache/apache-2.4.55-r1.ebuild     # Then apache2.4.service can be used and systemd support controlled     systemd_newunit "${FILESDIR}/apache2.4-hardened.service" "apache2.service"

Re: [gentoo-user] Apache and systemd problem

2023-05-12 Thread Jacques Montier
> > After you are able to start it manually, you can edit your systemd service > file accordingly. GOOD NEWS ! i can start apache2ctl manually by #/usr/bin/apache2ctl I get the warning message : AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using

Re: [gentoo-user] Apache and systemd problem

2023-05-12 Thread Jacques Montier
Le ven. 12 mai 2023 à 02:54, Alexandru N. Barloiu a écrit : > first of all, gentoo does install with a service file: > > [root@noela:~]# equery f apache | grep systemd | grep service > /lib/systemd/system/apache2.service > > Hi Alexandru, Gentoo did not install any apache2.service. I had to

Re: [gentoo-user] Portage load control

2023-05-12 Thread Peter Humphrey
On Friday, 12 May 2023 09:34:27 BST I wrote: > > The --load-average in MAKEOPTS gets passed to make, and controls how > > many processes make starts. If that is set, and the load is still too > > high, the problem is in make not in emerge. Also, that setting will > > have no effect if the

Re: [gentoo-user] Portage load control

2023-05-12 Thread Jack
On 2023.05.12 11:27, Mark Knecht wrote: On Fri, May 12, 2023 at 7:27 AM Peter Humphrey wrote: > > On Friday, 12 May 2023 15:13:08 BST Mark Knecht wrote: > > > My opinion: load-average probably works, but we are misunderstanding > > the documentation. > > That's what bothers me the most -

Re: [gentoo-user] Portage load control

2023-05-12 Thread Mark Knecht
On Fri, May 12, 2023 at 7:27 AM Peter Humphrey wrote: > > On Friday, 12 May 2023 15:13:08 BST Mark Knecht wrote: > > > My opinion: load-average probably works, but we are misunderstanding > > the documentation. > > That's what bothers me the most - that I have a mental block somewhere. :( > > --

Re: [gentoo-user] Portage load control

2023-05-12 Thread Mark Knecht
On Fri, May 12, 2023 at 9:08 AM Jack wrote: > > > -j 1 > > -j1 --load-average=40 > > -j1 --load-aveeage=40.0 > > -j1 --load-average=4.0 > > -j1 --load-average=0.4 > > -j10 --load-average=0.4 > > > > etc., and see what happens? > --load-average controls whether or not emerge starts another >

Re: [gentoo-user] Portage load control

2023-05-12 Thread Arve Barsnes
On Fri, 12 May 2023 at 10:34, Peter Humphrey wrote: > On Friday, 12 May 2023 01:38:52 BST Jack wrote: > > The --load-average to emerge itself just tells it not to start a new job > > if the load is above the setting. If there are several large jobs, but > > all start with single threaded

Re: [gentoo-user] Portage load control

2023-05-12 Thread Peter Humphrey
On Friday, 12 May 2023 11:09:37 BST Arve Barsnes wrote: > On Fri, 12 May 2023 at 10:34, Peter Humphrey wrote: > > I have said several times that portage is ignoring that setting. I have it > > at 40, yet portage kicks off more packages at 72, and continues doing so > > for extended periods - at

Re: [gentoo-user] Portage load control

2023-05-12 Thread Jack
On 5/12/23 09:16, Peter Humphrey wrote: On Friday, 12 May 2023 11:09:37 BST Arve Barsnes wrote: On Fri, 12 May 2023 at 10:34, Peter Humphrey wrote: I have said several times that portage is ignoring that setting. I have it at 40, yet portage kicks off more packages at 72, and continues

Re: [gentoo-user] Portage load control

2023-05-12 Thread Michael Cook
On 5/12/23 09:46, Peter Humphrey wrote: On Friday, 12 May 2023 00:08:03 BST Mark Knecht wrote: On Thu, May 11, 2023 at 3:07 PM Peter Humphrey wrote: On Thursday, 11 May 2023 17:18:17 BST Mark Knecht wrote: The ''problem' is this can easily hit 100% of the cores you have in the machine if

Re: [gentoo-user] Portage load control

2023-05-12 Thread Peter Humphrey
On Friday, 12 May 2023 14:37:13 BST Jack wrote: > I still see two separate issues. First, you are saying that emerge > still launches new jobs when the load is over what is set with > --load-average. A possible way to test this directly is to run or > create some job that pushed the load

Re: [gentoo-user] Portage load control

2023-05-12 Thread Mark Knecht
On Fri, May 12, 2023 at 6:46 AM Peter Humphrey wrote: > > On Friday, 12 May 2023 00:08:03 BST Mark Knecht wrote: > > On Thu, May 11, 2023 at 3:07 PM Peter Humphrey > > > > wrote: > > > On Thursday, 11 May 2023 17:18:17 BST Mark Knecht wrote: > > > > > > > > The ''problem' is this can easily hit

Re: [gentoo-user] Portage load control

2023-05-12 Thread Peter Humphrey
On Friday, 12 May 2023 15:06:21 BST Michael Cook wrote: > You can read /usr/share/portage/config/make.conf.example for an > explanation. All children processes will use that. I can run portage and > play games on the same system with my settings. That example says nothing about any of the emerge

Re: [gentoo-user] Apache and systemd problem

2023-05-12 Thread Jacques Montier
> > Yes, you need to configure the apache files to specify IP address to > listen > to, webroot, etc. for each host you want to serve files from. > > Ok, it's done > > > Fix this by adding the "start" subcommand: > > ExecStart=/usr/sbin/apache2ctl start > > > ExecStart=/usr/sbin/apache2ctl start

Re: [gentoo-user] Portage load control

2023-05-12 Thread Peter Humphrey
On Friday, 12 May 2023 15:13:08 BST Mark Knecht wrote: > My opinion: load-average probably works, but we are misunderstanding > the documentation. That's what bothers me the most - that I have a mental block somewhere. :( -- Regards, Peter.

Re: [gentoo-user] Portage load control

2023-05-12 Thread Peter Humphrey
On Friday, 12 May 2023 00:08:03 BST Mark Knecht wrote: > On Thu, May 11, 2023 at 3:07 PM Peter Humphrey > > wrote: > > On Thursday, 11 May 2023 17:18:17 BST Mark Knecht wrote: > > > > > The ''problem' is this can easily hit 100% of the cores you have in the > > > machine if not sensibly set.

Re: [gentoo-user] Apache and systemd problem

2023-05-12 Thread Michael
On Friday, 12 May 2023 10:41:32 BST Jacques Montier wrote: > > After you are able to start it manually, you can edit your systemd service > > file accordingly. > > GOOD NEWS ! i can start apache2ctl manually by #/usr/bin/apache2ctl > I get the warning message : > AH00558: apache2: Could not

Re: [gentoo-user] Portage load control

2023-05-12 Thread Jack
On 2023.05.12 12:23, Mark Knecht wrote: [snip .] One interesting point is that the first Gentoo page I found to look at the emerge man page shows LOAD as the value provided to the --load-average option, but nowhere does it specify anything other than it's a floating point value: I suspect

Re: [gentoo-user] Portage load control

2023-05-12 Thread Peter Humphrey
On Friday, 12 May 2023 17:58:46 BST Jack wrote: > Again, --load-average tells emerge whether it can start a new > job/package, but has no control over how high the load will get based > on the already started jobs. If emerge starts new jobs when the load > is over that specified by

Re: [gentoo-user] Portage load control

2023-05-12 Thread Mark Knecht
On Fri, May 12, 2023 at 9:59 AM Jack wrote: > > On 2023.05.12 12:23, Mark Knecht wrote: > [snip .] > >One interesting point is that the first Gentoo page I found to > > look at the emerge man page shows LOAD as the value provided > > to the --load-average option, but nowhere does it