Alain Knaff
2022-05-26 19:48:40 UTC
Hi,
Does anybody know how to activate swap on the 3B1?
I have 2 disks, with each a 4MB swap partition on it, but apparently
there is only around 2.5MB of memory available for the applications
(pool for *all* of them).
# iv -tv /dev/rfp000
Winchester disk
Volume Name: WINCHE
1400 Cylinders. 16 Heads per Cylinder.
There are 17 Physical Sectors (of 512 bytes) per Track.
272 Physical Sectors per Cylinder, 380800 Physical Sectors per Disk.
There are 8 Logical Blocks (of 1024 bytes) per Track.
128 Logical Blocks per Cylinder, 179200 Logical Blocks per Disk.
The Step Rate supplied to the Controller is 0.
Partition 0: start Track=0, size (in Blocks)=128
Partition 1: start Track=16, size (in Blocks)=4000
Partition 2: start Track=516, size (in Blocks)=175072
Loader starts at Block 2 (size=23 Blocks).
Bad Block Table starts at Block 1 (size=1 Blocks).
The Bad Block Table contains 0 entries.
# iv -tv /dev/rfp010
Second winchester disk
Volume Name: WINCHE
989 Cylinders. 5 Heads per Cylinder.
There are 17 Physical Sectors (of 512 bytes) per Track.
85 Physical Sectors per Cylinder, 84065 Physical Sectors per Disk.
There are 8 Logical Blocks (of 1024 bytes) per Track.
40 Logical Blocks per Cylinder, 39560 Logical Blocks per Disk.
The Step Rate supplied to the Controller is 0.
Partition 0: start Track=0, size (in Blocks)=40
Partition 1: start Track=5, size (in Blocks)=4000
Partition 2: start Track=505, size (in Blocks)=35520
Bad Block Table starts at Block 1 (size=1 Blocks).
The Bad Block Table contains 0 entries.
iv doesn't seem to show the type of the partitions, but I created the
swap partition on the second hard disk was created using the
01_Diagnosic_Disk_Ver_3.51 boot floppy, so it is for sure indeed a
swap partition :-)
To test whether swap is indeed available, I made a program that
gobbles up as much memory as it can (in chunks of 100K), and as soon
as it doesn't get any, breaks out of the loop, and waits for 10
seconds.
The first instance of the program gets 2.3MB. The second one gets
0.1MB.
I conclude by this that only about 2.5MB are available in *total*
i.e. only system memory, and no swap.
Questions:
1. Is there any command to activate the existing swap partitions (like
"swapon" on Linux)?
2. Is there any command to easily display available memory (like "free"
on Linux)
Anything else that I might be missing here?
Thanks,
--
Alain
Does anybody know how to activate swap on the 3B1?
I have 2 disks, with each a 4MB swap partition on it, but apparently
there is only around 2.5MB of memory available for the applications
(pool for *all* of them).
# iv -tv /dev/rfp000
Winchester disk
Volume Name: WINCHE
1400 Cylinders. 16 Heads per Cylinder.
There are 17 Physical Sectors (of 512 bytes) per Track.
272 Physical Sectors per Cylinder, 380800 Physical Sectors per Disk.
There are 8 Logical Blocks (of 1024 bytes) per Track.
128 Logical Blocks per Cylinder, 179200 Logical Blocks per Disk.
The Step Rate supplied to the Controller is 0.
Partition 0: start Track=0, size (in Blocks)=128
Partition 1: start Track=16, size (in Blocks)=4000
Partition 2: start Track=516, size (in Blocks)=175072
Loader starts at Block 2 (size=23 Blocks).
Bad Block Table starts at Block 1 (size=1 Blocks).
The Bad Block Table contains 0 entries.
# iv -tv /dev/rfp010
Second winchester disk
Volume Name: WINCHE
989 Cylinders. 5 Heads per Cylinder.
There are 17 Physical Sectors (of 512 bytes) per Track.
85 Physical Sectors per Cylinder, 84065 Physical Sectors per Disk.
There are 8 Logical Blocks (of 1024 bytes) per Track.
40 Logical Blocks per Cylinder, 39560 Logical Blocks per Disk.
The Step Rate supplied to the Controller is 0.
Partition 0: start Track=0, size (in Blocks)=40
Partition 1: start Track=5, size (in Blocks)=4000
Partition 2: start Track=505, size (in Blocks)=35520
Bad Block Table starts at Block 1 (size=1 Blocks).
The Bad Block Table contains 0 entries.
iv doesn't seem to show the type of the partitions, but I created the
swap partition on the second hard disk was created using the
01_Diagnosic_Disk_Ver_3.51 boot floppy, so it is for sure indeed a
swap partition :-)
To test whether swap is indeed available, I made a program that
gobbles up as much memory as it can (in chunks of 100K), and as soon
as it doesn't get any, breaks out of the loop, and waits for 10
seconds.
The first instance of the program gets 2.3MB. The second one gets
0.1MB.
I conclude by this that only about 2.5MB are available in *total*
i.e. only system memory, and no swap.
Questions:
1. Is there any command to activate the existing swap partitions (like
"swapon" on Linux)?
2. Is there any command to easily display available memory (like "free"
on Linux)
Anything else that I might be missing here?
Thanks,
--
Alain