• as: out of memory allocating 4072 bytes after a total of 546328576

    From YunQiang Su@21:1/5 to All on Wed Nov 14 15:40:01 2018
    YunQiang Su <wzssyqa@gmail.com> 于2018年11月14日周三 下午10:29写道:

    With read as(1), I see

    --reduce-memory-overheads
    This option reduces GAS 's memory requirements, at the expense of
    making the assembly processes slower. Currently this switch is a
    synonym for --hash-size=4051, but in the future it may have other
    effects as well.

    I guess you can have a try.

    If you need pass this option from gcc, you can use
    -Wa,option

    https://gcc.gnu.org/onlinedocs/gcc/Assembler-Options.html#Assembler-Options

    Mathieu Malaterre <malat@debian.org> 于2018年11月9日周五 下午5:14写道:

    Hi mips guru,

    Could someone please comment on:

    https://buildd.debian.org/status/fetch.php?pkg=openvdb&arch=mips&ver=5.2.0-1&stamp=1541130852&raw=0

    Is there a set of flags to use to reduce memory usage on 32bits system
    ? For reference I am using : --param ggc-min-expand=10 -O1

    Thanks much



    --
    YunQiang Su



    --
    YunQiang Su

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From YunQiang Su@21:1/5 to All on Wed Nov 14 15:30:01 2018
    With read as(1), I see

    --reduce-memory-overheads
    This option reduces GAS 's memory requirements, at the expense of
    making the assembly processes slower. Currently this switch is a
    synonym for --hash-size=4051, but in the future it may have other
    effects as well.

    I guess you can have a try.
    Mathieu Malaterre <malat@debian.org> 于2018年11月9日周五 下午5:14写道:

    Hi mips guru,

    Could someone please comment on:

    https://buildd.debian.org/status/fetch.php?pkg=openvdb&arch=mips&ver=5.2.0-1&stamp=1541130852&raw=0

    Is there a set of flags to use to reduce memory usage on 32bits system
    ? For reference I am using : --param ggc-min-expand=10 -O1

    Thanks much



    --
    YunQiang Su

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mathieu Malaterre@21:1/5 to wzssyqa@gmail.com on Thu Nov 15 08:10:02 2018
    On Wed, Nov 14, 2018 at 3:35 PM YunQiang Su <wzssyqa@gmail.com> wrote:

    YunQiang Su <wzssyqa@gmail.com> 于2018年11月14日周三 下午10:29写道:

    With read as(1), I see

    --reduce-memory-overheads
    This option reduces GAS 's memory requirements, at the expense of
    making the assembly processes slower. Currently this switch is a
    synonym for --hash-size=4051, but in the future it may have other
    effects as well.

    I guess you can have a try.

    If you need pass this option from gcc, you can use
    -Wa,option

    https://gcc.gnu.org/onlinedocs/gcc/Assembler-Options.html#Assembler-Options

    Thanks for the suggestion ! That looked promising, however this did
    not turn out well:

    https://buildd.debian.org/status/fetch.php?pkg=openvdb&arch=mips&ver=5.2.0-2&stamp=1542229604&raw=0

    As a side note, the message went from:

    as: out of memory allocating 4072 bytes after a total of 546328576 bytes

    to

    as: out of memory allocating 4072 bytes after a total of 557305856 bytes

    So I would even be tempted to report a bug to gcc/gas...



    Mathieu Malaterre <malat@debian.org> 于2018年11月9日周五 下午5:14写道:

    Hi mips guru,

    Could someone please comment on:

    https://buildd.debian.org/status/fetch.php?pkg=openvdb&arch=mips&ver=5.2.0-1&stamp=1541130852&raw=0

    Is there a set of flags to use to reduce memory usage on 32bits system
    ? For reference I am using : --param ggc-min-expand=10 -O1

    Thanks much



    --
    YunQiang Su



    --
    YunQiang Su

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mathieu Malaterre@21:1/5 to malat@debian.org on Tue Nov 20 08:20:01 2018
    On Thu, Nov 15, 2018 at 8:07 AM Mathieu Malaterre <malat@debian.org> wrote:

    On Wed, Nov 14, 2018 at 3:35 PM YunQiang Su <wzssyqa@gmail.com> wrote:

    YunQiang Su <wzssyqa@gmail.com> 于2018年11月14日周三 下午10:29写道:

    With read as(1), I see

    --reduce-memory-overheads
    This option reduces GAS 's memory requirements, at the expense of
    making the assembly processes slower. Currently this switch is a
    synonym for --hash-size=4051, but in the future it may have other
    effects as well.

    I guess you can have a try.

    If you need pass this option from gcc, you can use
    -Wa,option

    https://gcc.gnu.org/onlinedocs/gcc/Assembler-Options.html#Assembler-Options

    Thanks for the suggestion ! That looked promising, however this did
    not turn out well:

    https://buildd.debian.org/status/fetch.php?pkg=openvdb&arch=mips&ver=5.2.0-2&stamp=1542229604&raw=0

    As a side note, the message went from:

    as: out of memory allocating 4072 bytes after a total of 546328576 bytes

    to

    as: out of memory allocating 4072 bytes after a total of 557305856 bytes

    So I would even be tempted to report a bug to gcc/gas...

    So it turns out that simply using -g1 seems to fix all the symptoms on mips/mipsel (virtual memory exhausted: Cannot allocate memory
    ). Found it reference in:

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890237

    OpenVDB is now building fine on mips/el.




    Mathieu Malaterre <malat@debian.org> 于2018年11月9日周五 下午5:14写道:

    Hi mips guru,

    Could someone please comment on:

    https://buildd.debian.org/status/fetch.php?pkg=openvdb&arch=mips&ver=5.2.0-1&stamp=1541130852&raw=0

    Is there a set of flags to use to reduce memory usage on 32bits system ? For reference I am using : --param ggc-min-expand=10 -O1

    Thanks much



    --
    YunQiang Su



    --
    YunQiang Su

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)