(fwd) swap-file

Andrey Gerzhov (kittle@freeland.alex-ua.com)
Fri, 19 Jun 1998 16:35:45 +0300 (EEST)

-- forwarded message --
Path: barmaglot.alex-ua.com!not-for-mail
From: Andrej Zhizhikin <tigra@barmaglot.alex-ua.com>
Newsgroups: fido.ohb.unix
Subject: swap-file
Date: 12 Feb 1998 13:42:17 GMT
Organization: Barmaglot inc
Lines: 47
Distribution: fido
Message-ID: <6buu7p$jr3$1@barmaglot.alex-ua.com>
References: <886240243@p9.f2.n5031.z2>
NNTP-Posting-Host: localhost
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 8bit
User-Agent: tin/pre-1.4-980117 (UNIX) (FreeBSD/2.2.5-RELEASE (i386))
Xref: barmaglot.alex-ua.com fido.ohb.unix:37

[ Article reposted from fido.ru.unix.bsd ]
[ Author was Alexandr Murin <Alexandr.Murin@p100.f26.n5070.z2.fidonet.org> ]
[ Posted on Sat, 07 Feb 98 23:53:28 +0200 ]

Пpивет, Igor!

Суббота Январь 31 1998 09:47, некто Igor Bozhenko написал All:

IB> Как можно направить своп в файл ?
IB> Какой демон и какие конфиги используются ?
IB> Если эта возможность в FBSD_2.2.1 или только с FBSD_2.2.5 ?
Читаем FAQ:
=== Cut ===
6.2. How can I add more swap space?

The best way is to increase the size of your swap partition,
or take advantage of this convenient excuse to add another disk
(and see this note if you do), but Werner Griessl has provided
these instructions for setting FreeBSD up for swapping to a
file:

Here is an example for 64Mb vn-swap (/usr/swap0)

1.create a vn-device

cd /dev; sh ./MAKEDEV vn0

2.create a swapfile (/usr/swap0)

dd if=/dev/zero of=/usr/swap0 bs=1024k count=64

3.put into /etc/rc.local the line

vnconfig -ce /dev/vn0c /usr/swap0 swap

4.reboot the machine

You must also have a kernel with the line

pseudo-device vn #Vnode driver (turns a file into a device)

in your config-file.
=== Cut ===

За cим вcе. Alexandr AKA _*MAW*_. (*e-mail* maw@iaia.irk.ru) [Team *FreeBSD*]

-- end of forwarded message --

-- 

С тем, что не помешает никогда, Kittle