Memory can't go above 100MB

19 views
Skip to first unread message

Philippe Noble

unread,
Feb 19, 2024, 12:10:23 PM2/19/24
to ARAnyM
Hi,

I am working on an update of Beekey which is based on Ubuntu Mini 16.04 and I am having troubles with aranym when I try to increase memory above 100MB : It freezes.
I have this issue with versions 1.1.0 and above.

I believe that this issue is coming from my Linux distribution, which is very light, as I don’t have it with MacAranym or with a more recent and complete version of Ubunutu.
I have tried to set Fixedmemory parameter with —probe-fixed output, but it doesn’t resolve the issue.

What could be the reason of such a problem ? What parameter or package could be missing?
Is there a way to debug it as the standard console output from Aranym doesn’t show any error, just that the boot process stopped.

Regards,

Philippe

Thorsten Otto

unread,
Feb 20, 2024, 1:17:42 AM2/20/24
to ara...@googlegroups.com

On Montag, 19. Februar 2024 18:10:17 CET Philippe Noble wrote:

> I am working on an update of Beekey which is based on Ubuntu Mini 16.04 and

> I am having troubles with aranym when I try to increase memory above 100MB

> :  It freezes. I have this issue with versions 1.1.0 and above.


I once had that problem too, but never figured out what is causing this. Sometimes just killing aranym and restarting it helped. Currently i can configure 512MB without problems.


Its only a guess, but it might have to do with the settings of the text start address of aranym (it is currently set to 0x10000000), and the way other shared libraries are loaded (in modern distros, their address is typically randomized).

Paul Wratt

unread,
Feb 20, 2024, 2:05:49 PM2/20/24
to ARAnyM-list
> Its only a guess, but it might have to do with the settings of the text start address of aranym
> (it is currently set to 0x10000000), and the way other shared libraries are loaded (in modern
> distros, their address is typically randomized).

I am pretty sure an Ubuntu 16.04 kernel _does not_ have the new
randomizing load feature.
(ie I agree with Thorstens assessment)

> I am having troubles with aranym when I try to increase memory above 100MB
> : It freezes. I have this issue with versions 1.1.0 and above.

which OS are you compiling it on, it might be that GCC version is also
affecting the results. for reference, you will need to use a GCC
version of 11 (GCC 11.4 - May 29, 2023) or less (12 and above have a
different ABI)

Also I think you can use `ld` options to look at the libraries. Check
the repo comments, ARAnyM may have updated to a _newer library
version_ than what you have on 16.04

Cheers
Paul
> --
> You received this message because you are subscribed to the Google Groups
> "ARAnyM" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to aranym+un...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/aranym/2474670.nGGa3Ir7rL%40earendil.
>

Philippe Noble

unread,
Feb 25, 2024, 5:31:49 AM2/25/24
to ARAnyM-list
>
> I am pretty sure an Ubuntu 16.04 kernel _does not_ have the new
> randomizing load feature.
> (ie I agree with Thorstens assessment)

Is this something that can be fixed with a specific package / library or specific build instruction for Aranym ?
The distribution that I use, Ubuntu mini remix 16.04, is no longer developed, and I don’t know of a recent light Ubuntu distro that can be run on a USB key.
Do you know of an alternative more recent Debian distribution ?

>
>> I am having troubles with aranym when I try to increase memory above 100MB
>> : It freezes. I have this issue with versions 1.1.0 and above.
>
> which OS are you compiling it on, it might be that GCC version is also
> affecting the results. for reference, you will need to use a GCC
> version of 11 (GCC 11.4 - May 29, 2023) or less (12 and above have a
> different ABI)

I have built Aranym on 16.04 and 18.04, with in both cases the same result regarding memory limitation.
Runnig on a 16.04 system : up to 100Mb max no freeze, from 101 to 128 MB random freezes, > 128 Mb constant freezes.
Running on 18.04 : no limitation

GCC version on 16.04 is pretty old : v 5.4.0
On 18.04 it’s v 7.5.0

>
> Also I think you can use `ld` options to look at the libraries. Check
> the repo comments, ARAnyM may have updated to a _newer library
> version_ than what you have on 16.04

Sorry but I don’t understand your suggestion. What do you mean by « ld » option ?
Ld version is 2.26.1 on 16.04
On 18.04 it’s V2.30

Cheers,

Philippe


Reply all
Reply to author
Forward
0 new messages