Using a swap partition and a swap file together?

Using a swap partition and a swap file together?

Post by Jens Schleusen » Sat, 03 Feb 2001 00:29:23



Hi,

unfortunately the swap partition of my linux machine is too small for
some applications converting big images. Since it is impossible to
increase the swap partition or to add a swap partition I have the
question if it is possible to use a "hybrid" swap system by adding
a swap file (may be with lower priority). The swapon man page doesn't
give an answer for me.

Greetings

Jens

--
Dr. Jens Schleusener            T-Systems debis Systemhaus
phone: +49 (551) 709-2493       Solutions for Research GmbH
fax:   +49 (551) 709-2169       Bunsenstr.10

 
 
 

Using a swap partition and a swap file together?

Post by moonie; » Sat, 03 Feb 2001 02:19:37



>Hi,

>unfortunately the swap partition of my linux machine is too small for
>some applications converting big images. Since it is impossible to
>increase the swap partition or to add a swap partition I have the
>question if it is possible to use a "hybrid" swap system by adding
>a swap file (may be with lower priority). The swapon man page doesn't
>give an answer for me.

>Greetings

>Jens

>--
>Dr. Jens Schleusener            T-Systems debis Systemhaus
>phone: +49 (551) 709-2493       Solutions for Research GmbH
>fax:   +49 (551) 709-2169       Bunsenstr.10


Why is it impossible to add a swap partition?  I did, no problem.
--
moonie ;)

Registered Linux User #175104
   (Registered at: http://counter.li.org)

KDE2
Kernel 2.4.0-test5
XFree86 4.0 Nvidia .94 drivers
RAID 0 Striped
Test-Pilots-R-Us ;)
ICQ #83003404
AIM mooniesdl3


 
 
 

Using a swap partition and a swap file together?

Post by ne.. » Sat, 03 Feb 2001 03:52:45



Quote:>Hi,

>unfortunately the swap partition of my linux machine is too small for
>some applications converting big images. Since it is impossible to
>increase the swap partition or to add a swap partition I have the
>question if it is possible to use a "hybrid" swap system by adding
>a swap file (may be with lower priority). The swapon man page doesn't
>give an answer for me.

If you have enuf free space on one of your partitions, then
yes, you can do that. I don't think you can set priorities
on how the swap is used, but I stand to be corrected. Take a
look at the mkswap man page. This should help you out.

--
Registered Linux User # 125653 (http://counter.li.org)
Whom the mad would destroy, first they make Gods.
                -- Bernard Levin
  1:48pm  up 21 days, 16:47,  3 users,  load average: 0.04, 0.01, 0.00

 
 
 

Using a swap partition and a swap file together?

Post by ne.. » Sat, 03 Feb 2001 03:54:17




>>Hi,

>>unfortunately the swap partition of my linux machine is too small for
>>some applications converting big images. Since it is impossible to
>>increase the swap partition or to add a swap partition I have the
>>question if it is possible to use a "hybrid" swap system by adding
>>a swap file (may be with lower priority). The swapon man page doesn't
>>give an answer for me.

>Why is it impossible to add a swap partition?  I did, no problem.

He could have run out of partitions. He probably can't
repartition an existing partition......

--
Registered Linux User # 125653 (http://counter.li.org)
BOFH excuse #222:

I'm not sure.  Try calling the Internet's head office -- it's in the book.
  1:51pm  up 21 days, 16:50,  3 users,  load average: 0.02, 0.01, 0.00

 
 
 

Using a swap partition and a swap file together?

Post by Jim Randel » Sat, 03 Feb 2001 05:22:05



> Hi,

> unfortunately the swap partition of my linux machine is too small for
> some applications converting big images. Since it is impossible to
> increase the swap partition or to add a swap partition I have the
> question if it is possible to use a "hybrid" swap system by adding
> a swap file (may be with lower priority). The swapon man page doesn't
> give an answer for me.

Yep, there's no problem doing this.

See <URL:http://www.slashdot.f9.co.uk/jim/tips-swap.html> for more
details.

--
Jim Randell
http://www.slashdot.f9.co.uk/jim/
To reply replace the [sum in brackets] by it's value

 
 
 

Using a swap partition and a swap file together?

Post by Jens Schleusen » Sat, 03 Feb 2001 07:23:07






>>>Hi,

>>>unfortunately the swap partition of my linux machine is too small for
>>>some applications converting big images. Since it is impossible to
>>>increase the swap partition or to add a swap partition I have the
>>>question if it is possible to use a "hybrid" swap system by adding
>>>a swap file (may be with lower priority). The swapon man page doesn't
>>>give an answer for me.

>>Why is it impossible to add a swap partition?  I did, no problem.
>He could have run out of partitions. He probably can't
>repartition an existing partition......

Exactly. All disk space is in use :-(

Jens

--
Dr. Jens Schleusener                T-Systems debis Systemhaus
phone: +49 (551) 709-2493           Solutions for Research
fax:   +49 (551) 709-2169           Bunsenstr.10

 
 
 

Using a swap partition and a swap file together?

Post by Peter T. Breue » Sun, 04 Feb 2001 18:47:39



> increase the swap partition or to add a swap partition I have the
> question if it is possible to use a "hybrid" swap system by adding
> a swap file (may be with lower priority). The swapon man page doesn't
> give an answer for me.

Oh yes it does. Or at least the mkswap page (which it references) does.

Peter

 
 
 

Using a swap partition and a swap file together?

Post by Bria » Sat, 17 Mar 2001 11:08:56


I found I had made my swap partition too small.  Trying to remember what
I did.
As root, went to /usr then
mkdir swap  then mkswap /usr/swap
swapon /usr/swap
Somehow I made the file to be 64 megs, as I recall, but don't remember
how I did
that.  
I could never get it to start up with the extra swap file enabled, but
whenever I
started Linux, I would manually "swapon /usr/swap" and it seemed to
work.  Without
it, Netscape would slow to a  c r a w l.

Brian


> Hi,

> unfortunately the swap partition of my linux machine is too small for
> some applications converting big images. Since it is impossible to
> increase the swap partition or to add a swap partition I have the
> question if it is possible to use a "hybrid" swap system by adding
> a swap file (may be with lower priority). The swapon man page doesn't
> give an answer for me.

> Greetings

> Jens

> --
> Dr. Jens Schleusener            T-Systems debis Systemhaus
> phone: +49 (551) 709-2493       Solutions for Research GmbH
> fax:   +49 (551) 709-2169       Bunsenstr.10


 
 
 

1. MS-DOS Swap File vs. Swap Partition

Hello, All;

What performance difference, if any, should I expect to see between a
native Linux swap partition and a swap file residing on an MS-DOS
partition?

I'm currently using my Microsoft Windows swap file as a Linux swap
file, and I'm considering adding a dedicated Linux swap partition as
well.  If there's no performance benefit, I may as well just use a
larger Windows swap file.

Bruce

2. FreeBSD Firewall with multiple subnets

3. Swap file VS Swap partition

4. 1.1.46: Freeze trying to detct

5. Linux Swap Partition and Win3.1 Swap File

6. problems with untamo

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

8. Hardware Question

9. swap file instead of swap partition

10. swap file vs swap partition

11. Why swap partition not swap file?

12. Swap file v/s swap partition

13. Any performance difference between swap file and swap partition?