<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>39866</bug_id>
          
          <creation_ts>2021-04-02 12:27:30 +0300</creation_ts>
          <short_desc>Reduce maximum possible memory limit on MIPS32</short_desc>
          <delta_ts>2025-06-03 20:37:30 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>xz</component>
          <version>unstable</version>
          <rep_platform>mipsel</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan A. Melnikov">iv</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>arseny</cc>
    
    <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>197474</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan A. Melnikov">iv</who>
    <bug_when>2021-04-02 12:27:30 +0300</bug_when>
    <thetext>Due to architectural limitations, address space available to a single userspace process on MIPS32 is limited to 2 GiB, not 4, even on systems that have more physical RAM -- e.g. 64-bit systems with 32-bit userspace, or systems that use XPA (an extension similar to x86&apos;s PAE).

So, for MIPS32, we have impose stronger memory limits. I&apos;ve chosen 2000MiB to give the process some headroom:

http://git.altlinux.org/people/iv/packages/?p=xz.git;a=commitdiff;h=4bd5fac4a0929ea8a6fef75f56eafb7fe69a5aee

Without this change, many tests of gear 2.5.0-alt1 fail on mipsel; with this change in xz, it builds successfully.

Please include this or similar change into the next xz build for Sisyphus.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>197485</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2021-04-02 22:31:58 +0300</bug_when>
    <thetext>Can you send this patch to xz-devel@tukaani.org?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>197671</commentid>
    <comment_count>2</comment_count>
    <who name="Vitaly Chikunov">vt</who>
    <bug_when>2021-04-09 11:02:15 +0300</bug_when>
    <thetext>Seems not. Then, I will send it myself. Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>197675</commentid>
    <comment_count>3</comment_count>
    <who name="Ivan A. Melnikov">iv</who>
    <bug_when>2021-04-09 11:35:56 +0300</bug_when>
    <thetext>Sorry, I missed your comment #1.

No, I did not send this patch anywhere yet. I&apos;ll be grateful if you could send it to upstream.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>199947</commentid>
    <comment_count>4</comment_count>
    <who name="Ivan A. Melnikov">iv</who>
    <bug_when>2021-07-02 16:10:25 +0300</bug_when>
    <thetext>The patch was committed upstream (https://git.tukaani.org/?p=xz.git;a=commit;h=fc3d3a7296ef58bb799a73943636b8bfd95339f7), thank you Vitaly for submitting it. 

But it does not seem that a new release containing this change will be out any time soon, so I cherry-picked it onto the current sisyphus version. Could you please approve?

#276721 EPERM #2 sisyphus xz.git=5.2.5-alt3

http://git.altlinux.org/people/iv/packages/?p=xz.git;a=shortlog;h=refs/tags/5.2.5-alt3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>266395</commentid>
    <comment_count>5</comment_count>
    <who name="Arseny Maslennikov">arseny</who>
    <bug_when>2025-06-03 20:37:30 +0300</bug_when>
    <thetext>FWIW, the patch has been present in our xz since 5.2.5-alt3 (August 2021).

https://git.altlinux.org/gears/x/..git?p=xz.git;a=commit;h=d4131f590c7354e1fcb9af9d405b5f553426c0f4</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>