Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
140 user(s) are online (102 user(s) are browsing Forums)

Members: 1
Guests: 139

sofistisoftware, more...

Support us!

Headlines

 
  Register To Post  

Sam460 scandal Kernel issue
Not too shy to talk
Not too shy to talk


See User information
after a lot of years the ram kernel issue hasn't been resolved, it's a scandal, a temporary patch could be realized and released, with 2GB of memory you can use about 50% after that system freeze or crash....

Sam 460EX, 2Gb Ram, Sapphire RX580 8GB NITRO+ SE, AmigaOS4.1 FE
A4000 PPC604@233, Mediator
A1200 PPC603@160, Mediator
uA1 G3@800, 512 Mb [sold]
Go to top
Re: Sam460 scandal Kernel issue
Just popping in
Just popping in


See User information
yes, we know.... but is not dependent from us.
you need to ask to Hyperion and or Aeon.

Go to top
Re: Sam460 scandal Kernel issue
Not too shy to talk
Not too shy to talk


See User information
frankly execsg is so bad your chances of a freeze are worse than 50% even before hitting that particular issue

Go to top
Re: Sam460 scandal Kernel issue
Home away from home
Home away from home


See User information
@sofistisoftware

Some where in some mysterius software negative numbers where error codes..

when look at binary number..

1000 0000 0000 0000 0000 0000 0000 0000

this number can be negative or a positive number.

as for code -1 its..

1111 1111 1111 1111 1111 1111 1111 1111

the number -2 its..

1111 1111 1111 1111 1111 1111 1111 1110

you think why just exclude this numbers.

Well not its no that simple programs who check negative numbers use int32 not APTR to compare numbers. its means its 2 million postive numbers, and 2 million negative numbers you know for errors codes

Don't ask where in the OS this legacy issue exists, it's most likely wort to break programs, so many things are not supported like Paula, Denice, CIAA/CIAB

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Sam460 scandal Kernel issue
Home away from home
Home away from home


See User information
@sofistisoftware

imaging this code

int32 rc;

rc = somefunction(a,b);

if (
rc>0)
{
     
printf("object at address 0x%x\n",rc);
}
else
{
      switch (
rc)
      {
        
csae 0: printf("No free memory\n"); break;
        case -
1: printf("Memory fragmented\n"); break;
        default: 
printf("Unknown error code\n"); break;
      }

}



but if code looks like:

int32 rc;

rc = somefunction(a,b);

if (
rc)
{
     
printf("object at address 0x%x\n",rc);
}
else
{
      
printf("Unknown error code\n"); break;      
}



in one case you have code that will break, in second case it does not, changing ptr to support 4GB is unpredictable, what it breaks. but also courses software, not be able to handle error conditions correct.

there is way to write the code above so works, but require recompiling programs, and creating patches.

int32 rc;

rc = somefunction(a,b);

switch (
rc)
{
        
csae 0: printf("No free memory\n"); break;
        case -
1: printf("Memory fragmented\n"); break;
        default: 
printf("object at address 0x%x\n",rc); break;
}


but this code does not handle unknown error codes.

We might say that this code is broken, because does not support 64bit and your right... but old programs can’t support 64bit with out being rewritten. The only way a 64bit OS can run 32bit program, is if OS acts like it is a 32bit OS. When it is not..

We are talking about a OS that makes a home for 32bit programs to live inside, so the programs do not know the world of 64bit memory pointers.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Sam460 scandal Kernel issue
Home away from home
Home away from home


See User information
@LiveForIt
Quote:
Don't ask where in the OS this legacy issue exists, it's most likely wort to break programs
In AmigaOS <= 3.9: exec.library AllocEntry(). The OS itself was using it.
In ExecSG this function is depreciated and not used at all in the kernel, nor by any other system parts like dos.library.

There is probably very few, or even none at all, ancient m68k software using AllcoEntry(), unless it was used in a C library like the DICE C library, etc., for it's malloc implementation.
There should be no AmigaOS 4.x/PPC software using IExec->AllocEntry() since you get compiler warnings or errors when trying to use such depreciated functions.

The only reason there is a 2 GB RAM limit in AmigaOS 4.x is that the upper 2 GB are completely reserved for virtual=physical mapped PCI(e) address space (and maybe some other small parts like U-Boot variables), instead of simply adding the unused parts of it to the memory regions usable by the memory and page allocators after all PCI(e) configuration is done.

Go to top
Re: Sam460 scandal Kernel issue
Home away from home
Home away from home


See User information
@joerg

Then you have none OS stuff like AMOS, where everything is a int32 not a pointer or uint32. (I can solve it in Amos Kittens), its just a question adding a extra data type I guess..

the problem with int32 is when get negative address.. and let say add 16 to it, it will move in the wrong direction in memory I believe..

I guess the same issue you can have in 680x0 assembly if the wrong opcode is used.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Sam460 scandal Kernel issue
Not too shy to talk
Not too shy to talk


See User information
@joerg

so you could explain why exist this old, frustating and never resolved issue with ram and Sam machines? After about some program go up to 50/57 % of memory usage the system crash! Also if u try to extract some big archive to ram:

Sam 460EX, 2Gb Ram, Sapphire RX580 8GB NITRO+ SE, AmigaOS4.1 FE
A4000 PPC604@233, Mediator
A1200 PPC603@160, Mediator
uA1 G3@800, 512 Mb [sold]
Go to top
Re: Sam460 scandal Kernel issue
Home away from home
Home away from home


See User information
@sofistisoftware

I don’t think Joerg is part of Hyperion anymore, not sure if work on ExecSG at all, but memory copy routine optimized with DMA on Sam machines? Memory objects don’t support that.. its like 2 programs and RAM disk that support ext memory objects.

Lets say we break the 2GB limit, as Joerg points out it’s nothing in ExecSG needs its, so all depends on some old 68K programs, and a few buggy ones, with AI stuff, it should be possible feed the programs to AI, ask it to write a patch..

But if they did that, you won’t be able to use all your 4GB as none virtual, sense some of 4 million addresses must be allocated to other hardware. Let’s say you get 3,5Gb of ram instead of 2GB of ram, that be a lot better, in any case.


Edited by LiveForIt on 2026/11/3 8:51:48
Edited by LiveForIt on 2026/11/3 8:55:14
(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Sam460 scandal Kernel issue
Just popping in
Just popping in


See User information
@LiveForIt

Maybe I'm the one misunderstanding, but I think sofistisoftware is talking about having 2 GB (visible) in AOS4 on Sam, and after half of that (like ~1 GB) is in use, he gets freezes/crashes.

Go to top
Re: Sam460 scandal Kernel issue
Just popping in
Just popping in


See User information
@joerg

Quote:

There is probably very few, or even none at all, ancient m68k software using AllcoEntry(), unless it was used in a C library like the DICE C library, etc., for it's malloc implementation.


Quick grep shows Olsen's Term used it in his Term program in Tools.c/LocalCreateTask().

/* Special version of CreateTask() that allows for arguments to be passed to the Task to be created. */

Go to top
Re: Sam460 scandal Kernel issue
Not too shy to talk
Not too shy to talk


See User information
@Georg

yes super correct what you wrote ! I've this issue and i'm not the only one.... i think all sam460 user have this problem

Sam 460EX, 2Gb Ram, Sapphire RX580 8GB NITRO+ SE, AmigaOS4.1 FE
A4000 PPC604@233, Mediator
A1200 PPC603@160, Mediator
uA1 G3@800, 512 Mb [sold]
Go to top
Re: Sam460 scandal Kernel issue
Just can't stay away
Just can't stay away


See User information
@sofistisoftware

I can say this much: It is known and being worked on.

Best regards,

Niels

Go to top
Re: Sam460 scandal Kernel issue
Not too shy to talk
Not too shy to talk


See User information
@nbache

after many years I hope the patch will be released soon! Read A.S.A.P. !!

Sam 460EX, 2Gb Ram, Sapphire RX580 8GB NITRO+ SE, AmigaOS4.1 FE
A4000 PPC604@233, Mediator
A1200 PPC603@160, Mediator
uA1 G3@800, 512 Mb [sold]
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project