SWAP PROBLEM: Swap not being used...

SWAP PROBLEM: Swap not being used...

Post by Matthew Fif » Tue, 14 Mar 1995 23:37:58



I didn't find any information on this particular problem, so I thought I'd post.

* The Problem: Linux doesn't seem to be using the swap partition.

-----------------------------------------------------------------------------

* The Particulars:

- I have 16MB of physical RAM and I am running kernel 1.1.59

- I have my drive split into two Linux partitions: one main (/dev/hda1)
and one  
  swap (/dev/hda2).

- My /etc/fstab entry reads:

/dev/hda1        /        ext2        defaults
/dev/hda2        swap     swap        defaults
none             /proc    proc        defaults

- My /etc/mtab entry reads:

/dev/hda1 / ext2 rw 0 0
none /proc proc rw 0 0

- My rc.M includes this:

/sbin/swapon -a /dev/hda2

- But the result of "cat /proc/meminfo" is always something like this:

        total:   used:    free:   shared:  buffers:
Mem:  15880192 15372288   507904  3448832 11206656
Swap: 14446592        0 14446592

-----------------------------------------------------------------------------

Is the system not taxed enough to require use of the swap space or did I
do something wrong?

Please let me know if I need to provide more information.  Any help would
be greatly appreciated (even a point to an FAQ or HOWTO that specifically
answers this)!  I read this group regularly so a reply would be fine (and
possibly of help to others, too).

Many thanks in advance!!!

-- Matthew

________________________________________________________________

 Matthew Fifer                      Multi-Media Learning Center
                                    Northwestern University


                                    708.491.4820
________________________________________________________________

 
 
 

SWAP PROBLEM: Swap not being used...

Post by B.A.McCau.. » Wed, 15 Mar 1995 19:11:24



>* The Problem: Linux doesn't seem to be using the swap partition.

>- I have 16MB of physical RAM and I am running kernel 1.1.59

That's the sort of problem I'd *like* to have. I'll swap your 16MB for
my 8MB then this "problem" will likely go away.

Quote:>/sbin/swapon -a /dev/hda2

              ^^^^^^^^^^^^
This is a contradiction (but probably harmless).

Quote:>        total:   used:    free:   shared:  buffers:
>Mem:  15880192 15372288   507904  3448832 11206656
>Swap: 14446592        0 14446592

>Is the system not taxed enough to require use of the swap space or did I
>do something wrong?

Given that you still have 507904 bytes of free RAM then your system is
certainly not taxed.
--

 .  _\\__[oo       from       | Phones: +44 121 471 3789 (home)

.  l___\\    /~~) /~~[  /   [ | PGP-fp: D7 03 2A 4B D8 3A 05 37
 # ll  l\\  ~~~~ ~   ~ ~    ~ |         A1 93 FE EA BE E3 2A 91


 
 
 

1. Adding swap space using 'swap -a' command ?

Greetings,

I am using SCO OpenServer 5.0.4 on a compaq prolian 4500 server. The
initial swap space setup is too small. I want to increase the swap
space.

I first create a directory say '/hotswap' and inside the hotswap
directory, I created a empty file called 'swapfile2'. I then make the
file swapfile2 act as a swap space
using :
              swap -a /hotswap/swapfile2 65536

When I used 'swap -l' to list the current swap space, it appears to have
added to the system. But when I check the system disk space, it appear
to be the same as before the swap file is added to the system.

path                                        swaplo    block        free
block
=========================================
/dev/swap                  1,41            0        196668      186790
/hotswap/swapfile2     76,1            0        65536        65536

Can someone tell if I done it correctly?  If not, how should I do it ?


Thank in advance

Eric Chin

2. 'dir' doesn't work for anonymous ftp

3. Using a swap partition and a swap file together?

4. Chipmunk Log upload to sunsite

5. Allocated swap space versus used swap space

6. Sendmail loses smart host

7. Why swap partition not swap file?

8. SLIP Gets Network Unreachable

9. Q: Why swap partition and not swap file???

10. Swap space not show by swap -l

11. Solaris 2.5.1 swap: "FSType swap not installed in the kernel" ?

12. Why am I using lots of swap with plenty of RAM free?

13. Swap not being used