swap partition vs swap file

swap partition vs swap file

Post by Seth Van Oor » Tue, 22 Sep 1998 04:00:00



I read that a swap partition may have better performance than a swap file.
If this is true, why? Any references to kernel code is welcome.

Seth Van Oort

 
 
 

swap partition vs swap file

Post by John Thomps » Wed, 23 Sep 1998 04:00:00



Quote:>To what extent a swap partition is more efficient than a swap file, I can't
>say.  A swap file is no laggart though, as I have used them in addition
>to a swap partition.

This suggests to me that I could augment my swap partition with a
swap file, should it become necessary.  How do you do this?  I
have only run out of swap space once (Netscape was trying to
gunzip a local file) and linux handled it gracefully enough; when
the swap space was out I was unable to start any new programs but
I could do a kill -9 on Netscape from an existing xterm.  But
still it might be handy to let swap overflow into a file in such
a situation...



 
 
 

swap partition vs swap file

Post by kip » Wed, 23 Sep 1998 04:00:00



Quote:> This suggests to me that I could augment my swap partition with a
> swap file, should it become necessary.  How do you do this?

# dd if=/dev/zero of=/swap bs=1024 count=<size of swap in blocks>
# mkswap /swap <size of swap in blocks>
# sync
# swapon /swap

--
party *

 
 
 

1. Swap partition vs Swap File

I was wondering what are the advantages on using a separate swap
partition as opposed to a swapfile on the Linux partition. I have one
2.1 GB HD therefore both the swap partition and Linux partition will be
on the same drive.
--
*******************************************************************************
            Gilles Khouzam, University of Waterloo, Ontario, Canada

                    (http://www.cgl.uwaterloo.ca/~gkhouzam)
If I ever become so pathetic as to listen to country music, please SHOOT
ME!!!

2. libf2c problems with T descriptors

3. MS-DOS Swap File vs. Swap Partition

4. keytool

5. Swap file VS Swap partition

6. IP Aliasing Support?

7. Swap File vs. Swap Partition - which is better?

8. Intel i960 subsystem

9. swap file vs swap partition

10. Swap file VS Swap partition

11. Swap partition vs. dynamic swap performance tradeoff?

12. Linux Swap Partition and Win3.1 Swap File

13. swap file instead of swap partition