OS/2, eCS & ArcaOS - Technical > Setup & Installation

Virtual memory, a curious phenomenon

(1/11) > >>

roberto:
There is a strange result in virtual memory, depending on where the Swapper position is defined in the config.
In my case if I have the config.sys:
SWAPPATH=C:\OS2\SYSTEM 0 4096
after start the system:
[C:\]mem /v

Total physical memory:      3 895 MB
Accessible to system:       2 999 MB
Additional (PAE) memory:      896 MB

Resident memory:              129 MB
Available virtual memory:     514 MB   <------

Available process memory:
  Private low memory:         373 MB
  Private high memory:      2 240 MB
  Shared low memory:          310 MB
  Shared high memory:       2 211 MB

 But if I create a new unit in 512MB memory,with Ramdisk, unit L: \, HPFS type, and define in the config.sys as:
 SWAPPATH=L:\ 0 4096
 [C:\]mem /v

Total physical memory:      3 895 MB
Accessible to system:       2 999 MB
Additional (PAE) memory:      896 MB

Resident memory:              129 MB
Available virtual memory:   3 321 MB  <------

Available process memory:
  Private low memory:         373 MB
  Private high memory:      2 240 MB
  Shared low memory:          310 MB
  Shared high memory:       2 211 MB

It seems that the 512MB is more important, than anything else, so that it occurs, that change.
On the other hand I do not see any change in the rest of the operation of the system, but it took a short time of evidence.

Saludos

ivan:
I can never understand your setup.  I have ArcaOS v5.0.7 as a standard setup with c a couple of exceptions, the boot drive C: is hpfs and the swap file is on D:  I get

[C:\]mem /v

Total physical memory:      7,906 MB
Accessible to system:       3,311 MB
Additional (PAE) memory:    4,595 MB

Resident memory:              193 MB
Available virtual memory:   2,590 MB

Available process memory:
  Private low memory:         213 MB
  Private high memory:      2,240 MB
  Shared low memory:          149 MB
  Shared high memory:       2,160 MB

[C:\]

  SWAPPATH=D:\ 2048 2048

My test setup on my Ryzen third generation processor is very much the same.

roberto:
Hello Ivan
You already have half of the test done.

Now you run this program:
C:\sys\bin\HIDISK.EXE
Define 512MB, HPFS, and Format US HPFS
Name unit X:
Change your config.sys
rem SWAPPATH=D:\ 2048 2048
SWAPPATH=X:\ 2048 2048
Restart the system
and
run mem /v
saludos

Dariusz Piatkowski:

--- Quote from: roberto on January 03, 2023, 10:32:49 am ---...
Total physical memory:      3 895 MB
Accessible to system:       2 999 MB
Additional (PAE) memory:      896 MB

Resident memory:              129 MB
Available virtual memory:   3 321 MB  <------

Available process memory:
  Private low memory:         373 MB
  Private high memory:      2 240 MB
  Shared low memory:          310 MB
  Shared high memory:       2 211 MB
...

--- End quote ---

The 'Available virtual memory' you're seeing is what I have here on a 8G = 4G + 4G RAMDISK.

What I think is uber strange is that 'Shared high memory' reading!!! wwwwhhhhaaattt???? isn't that an OS/2 dream for everyone...seriously, the LOW/SEGMENTED shared memory area is our weak point!!!

Dave Yeo:

--- Quote from: Dariusz Piatkowski on January 04, 2023, 02:10:08 am ---
--- Quote from: roberto on January 03, 2023, 10:32:49 am ---...
Total physical memory:      3 895 MB
Accessible to system:       2 999 MB
Additional (PAE) memory:      896 MB

Resident memory:              129 MB
Available virtual memory:   3 321 MB  <------

Available process memory:
  Private low memory:         373 MB
  Private high memory:      2 240 MB
  Shared low memory:          310 MB
  Shared high memory:       2 211 MB
...

--- End quote ---

The 'Available virtual memory' you're seeing is what I have here on a 8G = 4G + 4G RAMDISK.

What I think is uber strange is that 'Shared high memory' reading!!! wwwwhhhhaaattt???? isn't that an OS/2 dream for everyone...seriously, the LOW/SEGMENTED shared memory area is our weak point!!!

--- End quote ---

Hi Dariusz, there's something weird about your mem -v output if you have 8GB installed, your "Total physical memory" should show close to 8GB with "Additional (PAE) memory" showing about 4GB.
Here with 12 GB of ram installed, and a 8GB or so ram disk (JFS)

--- Code: ---Total physical memory:     12,169 MB
Accessible to system:       3,241 MB
Additional (PAE) memory:    8,928 MB

Resident memory:              153 MB
Available virtual memory:   1,855 MB

Available process memory:
  Private low memory:         294 MB
  Private high memory:      2,240 MB
  Shared low memory:          177 MB
  Shared high memory:         980 MB

--- End code ---

As you can see, my "Available virtual memory" does not reflect upper memory. I don't really understand virtual memory excepting it includes ram plus swap file space and it is changable depending on various things like when I built Qt5 and the system was swapping (yes I hit the swap file with 3.2GB of ram visible), it likely dropped to close to zero.
As for Shared high memory, that is where DLL's go when marked to load high, I have Dooble and SeaMonkey open right now so as you see, "Shared high memory" is down to 980 MB. Closing Dooble gives,

--- Code: ---Total physical memory:     12,169 MB
Accessible to system:       3,241 MB
Additional (PAE) memory:    8,928 MB

Resident memory:              152 MB
Available virtual memory:   1,973 MB

Available process memory:
  Private low memory:         294 MB
  Private high memory:      2,240 MB
  Shared low memory:          193 MB
  Shared high memory:       1,175 MB

--- End code ---

More virtual memory now as well as shared low/high memory.

Navigation

[0] Message Index

[#] Next page

Go to full version