Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-08-24 Thread Panu Matilainen
On 8/16/21 11:18 AM, Panu Matilainen wrote: On 8/16/21 12:25 AM, Michel Alexandre Salim wrote: On Thu, Aug 12, 2021 at 06:14:57PM -0700, Michel Alexandre Salim via [...]    %make_build %{limit_build -m 4096} -- with %limit_build used as a    %function that spits out the relevant -j override

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-08-16 Thread Panu Matilainen
On 8/16/21 12:25 AM, Michel Alexandre Salim wrote: On Thu, Aug 12, 2021 at 06:14:57PM -0700, Michel Alexandre Salim via devel wrote: On Thu, Aug 12, 2021 at 05:23:18PM -0700, Michel Alexandre Salim via devel wrote: On Wed, Aug 11, 2021 at 10:56:39AM +0300, Panu Matilainen wrote: On 8/10/21 8

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-08-15 Thread Michel Alexandre Salim via devel
On Thu, Aug 12, 2021 at 06:14:57PM -0700, Michel Alexandre Salim via devel wrote: > On Thu, Aug 12, 2021 at 05:23:18PM -0700, Michel Alexandre Salim via devel > wrote: > > On Wed, Aug 11, 2021 at 10:56:39AM +0300, Panu Matilainen wrote: > > > On 8/10/21 8:53 PM, Ankur Sinha wrote: > > > > On Thu,

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-08-12 Thread Michel Alexandre Salim via devel
On Thu, Aug 12, 2021 at 05:23:18PM -0700, Michel Alexandre Salim via devel wrote: > On Wed, Aug 11, 2021 at 10:56:39AM +0300, Panu Matilainen wrote: > > On 8/10/21 8:53 PM, Ankur Sinha wrote: > > > On Thu, Aug 05, 2021 09:01:14 +0200, Miroslav Suchý wrote: > > > > Dne 05. 08. 21 v 2:42 Michel Alex

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-08-12 Thread Michel Alexandre Salim via devel
On Wed, Aug 11, 2021 at 10:56:39AM +0300, Panu Matilainen wrote: > On 8/10/21 8:53 PM, Ankur Sinha wrote: > > On Thu, Aug 05, 2021 09:01:14 +0200, Miroslav Suchý wrote: > > > Dne 05. 08. 21 v 2:42 Michel Alexandre Salim via devel napsal(a): > > > > This is now implemented on Rawhide; Fedora updates

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-08-12 Thread Michel Alexandre Salim via devel
On Wed, Aug 11, 2021 at 01:53:51PM +0300, Panu Matilainen wrote: > On 8/11/21 11:19 AM, Ankur Sinha wrote: > > On Wed, Aug 11, 2021 10:56:39 +0300, Panu Matilainen wrote: > > > On 8/10/21 8:53 PM, Ankur Sinha wrote: > > > > On Thu, Aug 05, 2021 09:01:14 +0200, Miroslav Suchý wrote: > > > > > Dne 05

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-08-12 Thread Michel Alexandre Salim via devel
Hi all, On Wed, Aug 11, 2021 at 10:56:39AM +0300, Panu Matilainen wrote: > On 8/10/21 8:53 PM, Ankur Sinha wrote: > > On Thu, Aug 05, 2021 09:01:14 +0200, Miroslav Suchý wrote: > > > Dne 05. 08. 21 v 2:42 Michel Alexandre Salim via devel napsal(a): > > > > This is now implemented on Rawhide; Fedor

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-08-11 Thread Ankur Sinha
On Wed, Aug 11, 2021 13:53:51 +0300, Panu Matilainen wrote: > > > The macro needs to be fixed, ending up with 0 is unacceptable and so is > breaking debuginfo. For the moment, until these issues can be ironed out, I've given both F33 and F34 updates negative karma to prevent them from going stab

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-08-11 Thread Panu Matilainen
On 8/11/21 11:19 AM, Ankur Sinha wrote: On Wed, Aug 11, 2021 10:56:39 +0300, Panu Matilainen wrote: On 8/10/21 8:53 PM, Ankur Sinha wrote: On Thu, Aug 05, 2021 09:01:14 +0200, Miroslav Suchý wrote: Dne 05. 08. 21 v 2:42 Michel Alexandre Salim via devel napsal(a): This is now implemented on Ra

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-08-11 Thread Ankur Sinha
On Wed, Aug 11, 2021 10:56:39 +0300, Panu Matilainen wrote: > On 8/10/21 8:53 PM, Ankur Sinha wrote: > > On Thu, Aug 05, 2021 09:01:14 +0200, Miroslav Suchý wrote: > > > Dne 05. 08. 21 v 2:42 Michel Alexandre Salim via devel napsal(a): > > > > This is now implemented on Rawhide; Fedora updates are

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-08-11 Thread Panu Matilainen
On 8/10/21 8:53 PM, Ankur Sinha wrote: On Thu, Aug 05, 2021 09:01:14 +0200, Miroslav Suchý wrote: Dne 05. 08. 21 v 2:42 Michel Alexandre Salim via devel napsal(a): This is now implemented on Rawhide; Fedora updates are in testing: Where is it documented? I suggest one of these https://rpm-p

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-08-10 Thread Ankur Sinha
On Tue, Aug 10, 2021 18:53:35 +0100, Ankur Sinha wrote: > On Thu, Aug 05, 2021 09:01:14 +0200, Miroslav Suchý wrote: > > Dne 05. 08. 21 v 2:42 Michel Alexandre Salim via devel napsal(a): > > > This is now implemented on Rawhide; Fedora updates are in testing: > > > > Where is it documented? > > >

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-08-10 Thread Ankur Sinha
On Thu, Aug 05, 2021 09:01:14 +0200, Miroslav Suchý wrote: > Dne 05. 08. 21 v 2:42 Michel Alexandre Salim via devel napsal(a): > > This is now implemented on Rawhide; Fedora updates are in testing: > > Where is it documented? > > I suggest one of these > > https://rpm-packaging-guide.github.io/

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-08-05 Thread Miroslav Suchý
Dne 05. 08. 21 v 2:42 Michel Alexandre Salim via devel napsal(a): This is now implemented on Rawhide; Fedora updates are in testing: Where is it documented? I suggest one of these https://rpm-packaging-guide.github.io/ https://docs.fedoraproject.org/en-US/packaging-guidelines/ Miroslav ___

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-08-04 Thread Michel Alexandre Salim via devel
On Tue, Jun 29, 2021 at 04:25:13PM -0400, Ben Cotton wrote: > https://fedoraproject.org/wiki/Changes/MemoryConstraintsMacros > > == Summary == > Introduce macros, similar to openSUSE's > [https://build.opensuse.org/package/show/openSUSE:Factory/memory-constraints > memory-constraints]), for option

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-08-04 Thread Michel Alexandre Salim via devel
On Wed, Jun 30, 2021 at 08:54:11AM +, Zbigniew Jędrzejewski-Szmek wrote: > On Tue, Jun 29, 2021 at 04:25:13PM -0400, Ben Cotton wrote: > > https://fedoraproject.org/wiki/Changes/MemoryConstraintsMacros > > > > == Summary == > > Introduce macros, similar to openSUSE's > > [https://build.opensus

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-06-30 Thread Michel Alexandre Salim via devel
On Tue, Jun 29, 2021 at 04:21:03PM -0500, Michael Catanzaro wrote: > On Tue, Jun 29 2021 at 11:05:26 PM +0200, Dan Čermák > wrote: > > Thanks a lot for this Michel! > > Yes, this will reduce packager pain and suffering. Nice! > You're welcome :) If affected package owners want to help, I'm happy

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-06-30 Thread Kevin Fenzi
On Tue, Jun 29, 2021 at 04:25:13PM -0400, Ben Cotton wrote: > https://fedoraproject.org/wiki/Changes/MemoryConstraintsMacros > > == Summary == > Introduce macros, similar to openSUSE's > [https://build.opensuse.org/package/show/openSUSE:Factory/memory-constraints > memory-constraints]), for option

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-06-30 Thread Neal Gompa
On Wed, Jun 30, 2021 at 7:59 AM Colin Walters wrote: > > > > On Tue, Jun 29, 2021, at 4:25 PM, Ben Cotton wrote: > > https://fedoraproject.org/wiki/Changes/MemoryConstraintsMacros > > > > == Summary == > > Introduce macros, similar to openSUSE's > > [https://build.opensuse.org/package/show/openSUS

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-06-30 Thread Colin Walters
On Tue, Jun 29, 2021, at 4:25 PM, Ben Cotton wrote: > https://fedoraproject.org/wiki/Changes/MemoryConstraintsMacros > > == Summary == > Introduce macros, similar to openSUSE's > [https://build.opensuse.org/package/show/openSUSE:Factory/memory-constraints > memory-constraints]), for optionally l

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-06-30 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Jun 30, 2021 at 12:46:59PM +0200, Miroslav Suchý wrote: > Dne 30. 06. 21 v 12:29 Zbigniew Jędrzejewski-Szmek napsal(a): > >The OP talks exclusively about "RAM". And I think RAM is what we need > > From: > > https://build.opensuse.org/package/view_file/openSUSE:Factory/memory-constraints/m

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-06-30 Thread Miroslav Suchý
Dne 30. 06. 21 v 12:29 Zbigniew Jędrzejewski-Szmek napsal(a): The OP talks exclusively about "RAM". And I think RAM is what we need From: https://build.opensuse.org/package/view_file/openSUSE:Factory/memory-constraints/memory-constraints.macros?expand=1 max_swapmem=$(awk '/SwapTotal/ { print

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-06-30 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Jun 30, 2021 at 12:08:44PM +0200, Miroslav Suchý wrote: > Dne 29. 06. 21 v 22:25 Ben Cotton napsal(a): > >When this proposal is implemented, they can instead declaratively > >specify the amount of RAM needed per build thread, e.g. > > > > %limit_build -m 8192 > > > >for declaring a build

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-06-30 Thread Miroslav Suchý
Dne 29. 06. 21 v 22:25 Ben Cotton napsal(a): When this proposal is implemented, they can instead declaratively specify the amount of RAM needed per build thread, e.g. %limit_build -m 8192 for declaring a build thread should be allocated 8GB of RAM. Do I understand it correctly that semanti

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-06-30 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Jun 29, 2021 at 04:25:13PM -0400, Ben Cotton wrote: > https://fedoraproject.org/wiki/Changes/MemoryConstraintsMacros > > == Summary == > Introduce macros, similar to openSUSE's > [https://build.opensuse.org/package/show/openSUSE:Factory/memory-constraints > memory-constraints]), for option

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-06-29 Thread Michael Catanzaro
On Tue, Jun 29 2021 at 11:05:26 PM +0200, Dan Čermák wrote: Thanks a lot for this Michel! Yes, this will reduce packager pain and suffering. Nice! ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@li

Re: F35 Change: Memory Constraints macros for RPM (System-Wide Change proposal)

2021-06-29 Thread Dan Čermák
Thanks a lot for this Michel! Ben Cotton writes: > https://fedoraproject.org/wiki/Changes/MemoryConstraintsMacros > > == Summary == > Introduce macros, similar to openSUSE's > [https://build.opensuse.org/package/show/openSUSE:Factory/memory-constraints > memory-constraints]), for optionally limi