@xenic
If you have a SWAP partition you may not be able to run the test I suggested.
I for now just disable my swap parition as you suggest. And run few tests with disabled swap.
1). "Allocmem 900 M SHARED". AllocMem says:
Allocating 943718400 bytes...
Error: Memory allocation failed!
So far all seems ok. Not have enough memory, no swap : exit with NULL (kind of).
2). "Allocmem 900 M PRIVATE". AllocMem says:
Allocating 943718400 bytes...
Error: Memory allocation failed!
So far all seems ok as well. Not have enough memory, no swap : exit with NULL (kind of).
3). "Allocmem 800 M PRIVATE". Allocmem alloc it fine , and i have left about 30mb free, then "copy work:distrib/SDK_53.20.lha ram:" , and after few secs of copy i have a dos window:
AmigaDOS
RAM Disk
is full
proces: 220 "copy"
retry/chancel.
Press "retry" by some reassons close window, and exits (while, i assume it should all the time try to retry without exit, right ?). But still, file is never half-copied and always nothing if there is no place in RAM: anymore.
But what i notice,is that warning window happens not all the time. Sometime "copy" silency exit, and no warning window from amigados (but what is important, is that i never have "half-copied" file happens). I.e. if there is no free ram in RAM: , and files is bigger, then them never copies and never half-copies. Some time its just by some reassons didn't bring amigados warnings, but in most cases are.
Now, what is mean is:
1). Beta ram-disk seems handle situation, just by some reassons not everytime bring a warning windowses (let's say in 10 times 8 warnings, 2 silence, but at least no-half-copy files). So i will make a BZ about it as well, and will try to find out 100% reproducable test case. But as it all work in progress, its all understanable.
2). os4 didn't freezes without swap if there is not enough memory. Its didn't alloc memory, with or without RAM: involved (so, no BZ for that, all is fine, and seems NULL returns as it should and so on. No problems not with RAM, not without).
3). swap broken and once it tryed to do anything with, os4 just freezes hard. It happens in all the cases. with MEMF_SHARED allocations (intended, but bad), with MEMF_PRIVATE (not intended, should not, so bug). And do not know what about RAM: when Swap is involved and what kind of memory it uses, but as it not freezes without SWAP, then it mean problem with SWAP.
So far, 2 BZ can be done : one for "why sometime RAM: didn't bring warnings, but still handle operation ok" and second one "swap is broken at all with all kind of memory, and nothing swapped at all does not matter what.
Imho sounds right and logical, what you think ?