Bug 39866 - Reduce maximum possible memory limit on MIPS32
Summary: Reduce maximum possible memory limit on MIPS32
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: xz (show other bugs)
Version: unstable
Hardware: mipsel Linux
: P5 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-02 12:27 MSK by Ivan A. Melnikov
Modified: 2021-07-02 16:10 MSK (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan A. Melnikov 2021-04-02 12:27:30 MSK
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's PAE).

So, for MIPS32, we have impose stronger memory limits. I'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.
Comment 1 Vitaly Chikunov 2021-04-02 22:31:58 MSK
Can you send this patch to xz-devel@tukaani.org?
Comment 2 Vitaly Chikunov 2021-04-09 11:02:15 MSK
Seems not. Then, I will send it myself. Thanks.
Comment 3 Ivan A. Melnikov 2021-04-09 11:35:56 MSK
Sorry, I missed your comment #1.

No, I did not send this patch anywhere yet. I'll be grateful if you could send it to upstream.
Comment 4 Ivan A. Melnikov 2021-07-02 16:10:25 MSK
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