Swapper.dat won't behave!!

Swapper.dat won't behave!!

Post by john.. » Fri, 31 Mar 1995 04:00:00



I picked up Rick Meigs excellent cnfginfo.exe from the os2 shareware BBS.
713-385-4325.  This program is priceless for tuning your config.sys file.
A problem with mine though.  I have a 486/66 16 mg ram.
In the config.sys I had the swapper.dat file set to 2048 2048 as per IBM's suggestion
Cnfginfo said my swapper.dat was 13,000 + so i reset the initial size of swapper to 14,000.
I reboted and now swapper was 14,680.  I reset the initial size to 15,000 and
rebotted. Cnfginfo said that my swapper was now 15728.  and so on and so on ....
What is going on here?  Is IBM suggestion of a starting size of 2048 not realistic?
I dont do anything unusual with os/2.  Is a swapper of 13,000 + normal?
How do i stop this thing from growing?
Help!!
 
 
 

Swapper.dat won't behave!!

Post by Roderick Smi » Fri, 31 Mar 1995 04:00:00


: I picked up Rick Meigs excellent cnfginfo.exe from the os2 shareware BBS.
: 713-385-4325.  This program is priceless for tuning your config.sys file.
: A problem with mine though.  I have a 486/66 16 mg ram.
: In the config.sys I had the swapper.dat file set to 2048 2048 as per IBM's suggestion
: Cnfginfo said my swapper.dat was 13,000 + so i reset the initial size of swapper to 14,000.
: I reboted and now swapper was 14,680.  I reset the initial size to 15,000 and
: rebotted. Cnfginfo said that my swapper was now 15728.  and so on and so on ....
: What is going on here?

I believe the swap file grows in some set increment that's greater than
one byte (I think it's 1MB), so what you're seeing is probably measurement
slop -- you set it to 14,000, but that's not a legal value, so OS/2
created the next largest legal size of swap file.  Also, the size you set
in CONFIG.SYS is in KILOBYTES, but the size shown by DIR is in BYTES.  
Don't make the mistake of lopping off the last three digits to get the
size in K; you need to divide by 1024.

: Is IBM suggestion of a starting size of 2048 not realistic?

No, it's not.  I've got 16MB RAM and have my swap file set to 10MB
(10240).  That's the precise size that my swap file is right now.

: I dont do anything unusual with os/2.  Is a swapper of 13,000 + normal?

Depends on what you're doing.  Immediately after starting OS/2 with a
16MB system, no, it's not, unless you're loading up applications
automatically (and the Windows "fast start" feature DOES count as an
application -- you're loading Windows into memory immediately in this
case).  Once you're running two or three modest-to-major applications, a
13MB swap file on a 16MB system isn't at all unusual.  I reset mine to
10MB from 8MB when I realized that starting both DeScribe and ZOC would
bring the swap file to 10MB on my system.

: How do i stop this thing from growing?

You don't; you stop worrying about it.  Unless you're short on disk space,
in which case you clear off unnecessary files or buy a larger disk.  Don't
judge OS/2 by the size of the swap file; it grows to preposterous sizes BY
DESIGN.  Judge OS/2 by the speed and stability of its performance.  A
large swap file may or may not impact these things.

--
                                        --Rod Smith


 
 
 

Swapper.dat won't behave!!

Post by Jason F. McBray » Fri, 31 Mar 1995 04:00:00


j> I picked up Rick Meigs excellent cnfginfo.exe from the os2
j> shareware BBS.  713-385-4325.  This program is priceless for tuning
j> your config.sys file.  A problem with mine though.  I have a 486/66
j> 16 mg ram.  

j> In the config.sys I had the swapper.dat file set to 2048 2048 as
j> per IBM's suggestion Cnfginfo said my swapper.dat was 13,000 + so i
j> reset the initial size of swapper to 14,000.  I reboted and now
j> swapper was 14,680.  

You did right.  The swapper always grows or shrinks by a whole number
of megabytes.  14,000 isn't a legal size, so it jumped to the next
larger legal one.  

j> I reset the initial size to 15,000 and rebotted. Cnfginfo said that
j> my swapper was now 15728.  and so on and so on ....  What is going
j> on here?  

Exactly the same thing.  The swap file is not growing because you need
more swap space, it's just trying to be a legal size.  Set the initial
size of your swapper to at least 13312 if you don't want to see the
swapfile grow and shrink.  14336 would be fine, too.  You can get away
with less, but it might grow sometimes.

j> Is IBM suggestion of a starting size of 2048 not
j> realistic?  I dont do anything unusual with os/2.  Is a swapper of
j> 13,000 + normal?  How do i stop this thing from growing?  Help!!

The starting size of 2048 is silly.  I don't know why IBM does it.  A
swapper.dat of greater than 13MB is totally normal, at least on my 9MB
system.  It's not because you need more memory, either.  It's mostly
that Warp plays tricks with the swapfile to increase overall performance.

Jason F. McBrayer

 
 
 

Swapper.dat won't behave!!

Post by rmck.. » Fri, 31 Mar 1995 04:00:00



>In the config.sys I had the swapper.dat file set to 2048 2048 as per IBM's suggestion
>Cnfginfo said my swapper.dat was 13,000 + so i reset the initial size of swapper to 14,000.
>I reboted and now swapper was 14,680.  I reset the initial size to 15,000 and
>rebotted. Cnfginfo said that my swapper was now 15728.  and so on and so on ....
>What is going on here?  Is IBM suggestion of a starting size of 2048 not realistic?
>I dont do anything unusual with os/2.  Is a swapper of 13,000 + normal?
>How do i stop this thing from growing?

The swap file grows in response to memory overcommitment. Thats what it is for.
How big it gets depends on what you're doing.  

Specifying any size for swapper.dat is just an *initial* (minimum) size.  This size is
rounded to the next multiple of 1024.  This is the size to which it us initialized upon
system startup.  As your memory requirements exceed your physical memory,
swapper.dat will be used & re-used as required to accomodate this.  If the
initial/minimum size is insufficient, more will be allocated (if available on the
partition), and as the need  for such additional memory abates, the file will
eventually shrink accordingly towards the given minimum size.

Specifying a larger-than-default size is not strictly necessary, but since it reduces
the need to expand and/or shrink the file it can improve performance.  

Quote:>Help!!

If you have enough disc space, don't worry about it.  All is as it should be.  

If you *don't* have enough space, however, you can:

1) Move the swap file to another partition where you do have space.
    (change SWAPPATH in config.sys and reboot), and/or
2) Become more frugal with memory usage, i.e. close windows/applications
    you're not using (don't just minimize them) and/or reduce the numbers
    of programs you try to use at one time and/or avoid Windows apps, etc.
    You might also take a look at the "Filebar" shareware program as an
    alternative to the workplace shell.
3) Increase your physical memory.

Regards

--

 
 
 

Swapper.dat won't behave!!

Post by Matthew Pinkh » Fri, 31 Mar 1995 04:00:00



>I picked up Rick Meigs excellent cnfginfo.exe from the os2 shareware BBS.
>713-385-4325.  This program is priceless for tuning your config.sys file.
>A problem with mine though.  I have a 486/66 16 mg ram.
>In the config.sys I had the swapper.dat file set to 2048 2048 as per IBM's suggestion
>Cnfginfo said my swapper.dat was 13,000 + so i reset the initial size of swapper to 14,000.
>I reboted and now swapper was 14,680.  I reset the initial size to 15,000 and
>rebotted. Cnfginfo said that my swapper was now 15728.  and so on and so on ....
>What is going on here?  Is IBM suggestion of a starting size of 2048 not realistic?
>I dont do anything unusual with os/2.  Is a swapper of 13,000 + normal?
>How do i stop this thing from growing?
>Help!!

Well, as people here will tell you, the swapper isn't set to the EXACT size that
you specify, just close enough... The starting size of 2048 is stupid, I have 20
megs of ram, and I have my swapper set to around 30 megs..  I have plenty of
disk, don't ever have to think about the swapper size, and PLUS, it won't
fragment if it grows... (not that it would fragment much with HPFS, but it might
if you are low on disk space..)

Set your swapper based on how much ram you have, and the average number of
programs you have loaded into memory.. not ibm's defaults... good luck..

                       *----------------------------------*
                       |       Matthew O. Pinkham         |

                       | Worcester Polytechnic Institute  |
                       |     Computer Science Major       |
                       | Proud to be a part of TEAM OS/2! |
                       | #include <standard_disclaimer.h> |
                       *----------------------------------*

 
 
 

Swapper.dat won't behave!!

Post by rdem.. » Sat, 01 Apr 1995 04:00:00



>I dont do anything unusual with os/2.  Is a swapper of 13,000 + normal?
>How do i stop this thing from growing?
>Help!!

hmmmm,  sounds like you may only have 8 meg. of ram.  i read somewhere
(don't ask; i don't remember) that if you have 16 meg. set the swapper to
16 meg.  if you have 15 meg ram set swapper to 17 meg. and so on.  the
reverse is true if you have more that 16 meg. if you have 17 meg. of ram set
swapper to 15 meg. etc.  i have found that when using the IAK i routinely
goto a little over 20 meg. in my swap file. so i set my swapper to 20 meg.
if you use the mmpm veiwers or the new icon manager that compresses your
icons then the swapper will grow ( at least on my sys. )to over 40 meg.

if, if you have the spare drive space set your swapper as large as is applicable
per the above +4 meg.  mileage may vary, but it works for me.

 
 
 

Swapper.dat won't behave!!

Post by David Shephe » Sat, 01 Apr 1995 04:00:00




: j> Is IBM suggestion of a starting size of 2048 not
: j> realistic?  I dont do anything unusual with os/2.  Is a swapper of
: j> 13,000 + normal?  How do i stop this thing from growing?  Help!!

: The starting size of 2048 is silly.  I don't know why IBM does it.  A
: swapper.dat of greater than 13MB is totally normal, at least on my 9MB
: system.  It's not because you need more memory, either.  It's mostly
: that Warp plays tricks with the swapfile to increase overall performance.

My theory:

1) I think that Warp actually allocates a vaguely sensible size for a 4Mb
configuration - i.e. big enough for all the initial code to load into.

2) New swap behaviour in warp swaps out the same code after boot on all
memory sizes so all need the same initial swap as 4Mb

3) People writing installer got (1) right but someone forgot to tell them
about (2) and assumed that for (4+x)MB system you need the 4MB swap size
- xMB.

--
--------------------------------------------------------------------------
                               david shepherd
 SGS-THOMSON Microelectronics Ltd, 1000 aztec west, bristol bs12 4sq, u.k.

               www: http://www.inmos.co.uk/~des/welcome.html
       "whatever you don't want, you don't want negative advertising"

 
 
 

Swapper.dat won't behave!!

Post by Hans E. Hans » Sat, 01 Apr 1995 04:00:00


Quote:>A problem with mine though.  I have a 486/66 16 mg ram.
>In the config.sys I had the swapper.dat file set to 2048 2048 as per IBM's
>suggestion
>Cnfginfo said my swapper.dat was 13,000 + so i reset the initial size of swapper
>to 14,000.
>I reboted and now swapper was 14,680.  I reset the initial size to 15,000 and
>rebotted. Cnfginfo said that my swapper was now 15728.  and so on and so on ....
>What is going on here?  Is IBM suggestion of a starting size of 2048 not
>realistic?
>I dont do anything unusual with os/2.  Is a swapper of 13,000 + normal?
>How do i stop this thing from growing?
>Help!!

OS/2 will 'round' your specified size setting to a convenient binary number.  
It won't necessarily use your exact figure.  (Try setting it to 14680 and
see.)  Don't worry.  Your swapper didn't arbitrarily expand because of usage.
 
 
 

1. Swapper.dat won`t behave!


j> I picked up Rick Meigs excellent cnfginfo.exe from the os2
j> shareware BBS. 713-385-4325.  This program is priceless for
j> tuning your config.sys file. A problem with mine though.  I have
j> a 486/66 16 mg ram. In the config.sys I had the swapper.dat file
j> set to 2048 2048 as per IBM's suggestion Cnfginfo said my
j> swapper.dat was 13,000 + so i reset the initial size of swapper
j> to 14,000. I reboted and now swapper was 14,680.  I reset the
j> initial size to 15,000 and  rebotted. Cnfginfo said that my
j> swapper was now 15728.  and so on and so on .... What is going
j> on here?  Is IBM suggestion of a starting size of 2048 not
j> realistic? I dont do anything unusual with os/2.  Is a swapper
j> of 13,000 + normal? How do i stop this thing from growing? Help!!
j>                        

The number specified in your config.sys is getting rounded up to
a  multiple of 1024 or 2038 and is also specified in megabytes
which is NOT 1,000,000 bytes but 1,048,576 bytes.

To prove this, make the number in your config.sys 16384 and your
swap file will be 16777216 bytes (16384 x 1024) when OS/2 starts.

---

--

2. Wondering...

3. swapper.dat in os2-win grows quickly

4. Directory structure for an FP98 web site ... what should it look like

5. Question: Why the swapper.dat doesn't shrink?

6. period recognition

7. OS/2's "SWAPPER.DAT" file

8. REX Pro/5001: NT4 driver

9. Can't move my swapper.dat file ?!?

10. Swapper.DAT Placement.

11. WARP Swapper.dat

12. Info-ZIP: zip and swapper.dat file

13. Swapper.dat troubles