Re: git: c8c2d4f22536 - main - lang/python3: allow using LTO on powerpc64

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sun, 26 Feb 2023 13:50:33 UTC
Matthias Andree <matthias.andree@tu-dortmund.de> writes:

> Am 24.02.23 um 16:48 schrieb Piotr Kubaj:
>
>> The branch main has been updated by pkubaj:
>> URL:
>> https://cgit.FreeBSD.org/ports/commit/?id=c8c2d4f2253694802ef720f098c57800570ad2fc
>> commit c8c2d4f2253694802ef720f098c57800570ad2fc
>> Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
>> AuthorDate: 2023-02-24 15:48:16 +0000
>> Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
>> CommitDate: 2023-02-24 15:48:16 +0000
>>      lang/python3: allow using LTO on powerpc64
>>           It was recently fixed and will be available in
>> 13.2-RELEASE.
>>      Since LTO is not enabled by default, it's ok to make it available.
>
> Careful. LTO causes EXCESSIVE memory use for the build.
> I've had to disable it for a low-memory server I operate (amd64 based,
> but that's the LTO feature itself, not the CPU).

Are you sure 570Mb RAM is EXCESSIVE for amd64 ? For example,

# LTO=on (default)
$ command time -l poudriere testport -j 131amd64 lang/python311
[...]
      239,69 real       337,42 user        28,81 sys
    576192  maximum resident set size
     31894  average shared memory size
       376  average unshared data size
       130  average unshared stack size
   6421966  page reclaims
       722  page faults
         0  swaps
       264  block input operations
      7192  block output operations
    492544  messages sent
   1601891  messages received
       206  signals received
    557019  voluntary context switches
     94688  involuntary context switches

# LTO=off
$ command time -l poudriere testport -j 131amd64 lang/python311
[...]
       51,74 real       157,36 user        24,55 sys
    227632  maximum resident set size
     38459  average shared memory size
       342  average unshared data size
       133  average unshared stack size
   5435102  page reclaims
       169  page faults
         0  swaps
        27  block input operations
      5922  block output operations
    152036  messages sent
    841866  messages received
       207  signals received
    269370  voluntary context switches
     86800  involuntary context switches