Re: I'm running out of swapspace
On Sun, Feb 09, 2003 at 07:02:28PM -0500, northern snowfall wrote: > One way to do it is to create a memory file system linked to a file on-disk. > In FreeBSD 5.0-RELEASE, to create a 128MB additional swap space, I've tried: >dd if=/dev/zero of=/swap0 count=128 bs=1m >chmod 600 /swap0 >mdconfig -a -t vnode -f /swap0 -u 3 >swapon /dev/md3 > This will link the 128 megabyte file into swap space recognized by the > system. > Execute "swapinfo" to confirm: >sandstone.north_ % swapinfo >Device 1K-blocks UsedAvail Capacity Type >/dev/ad0s1b52428810136 514152 2%Interleaved >/dev/md3 131072 1876 129196 1%Interleaved >Total 65536012012 643348 2% >sandstone.north_ % Cool. But mdconfig is new in 5.0. The equivalent way of doing this in 4.x would be: dd if=/dev/zero of=/swap0 count=128 bs=1m chmod 600 /swap0 vnconfig -e vn0c /swap0 swap where vnconfig(8) automatically does the swapon step for you. vnconfig(8) still exists in 5.0, but all it will do is print a message saying to use mdconfig(8). Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: I'm running out of swapspace
Thank You ! On Sun, 9 Feb 2003, northern snowfall wrote: > One way to do it is to create a memory file system linked to a file on-disk. > In FreeBSD 5.0-RELEASE, to create a 128MB additional swap space, I've tried: > dd if=/dev/zero of=/swap0 count=128 bs=1m > chmod 600 /swap0 > mdconfig -a -t vnode -f /swap0 -u 3 > swapon /dev/md3 > This will link the 128 megabyte file into swap space recognized by the > system. > Execute "swapinfo" to confirm: > sandstone.north_ % swapinfo > Device 1K-blocks UsedAvail Capacity Type > /dev/ad0s1b52428810136 514152 2%Interleaved > /dev/md3 131072 1876 129196 1%Interleaved > Total 65536012012 643348 2% > sandstone.north_ % > Don > > > To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: I'm running out of swapspace
Alexander wrote: Hello Recently I'm running out of swapspace. Is there something that I can do to increase my swapspace ? The best will be to take some space from partition like the one for /var and add it to the swap. Is this possible ? I want to ask before trying it, the machine is important. Hi Alex, it would be nice if you'd include some more details about your machine and your configuration, eg. how much ram do you have, the output of mount, the size(s) of your currently used swap areas, etc. Usually it's a good thing start reading the man page of swapon(8). AFAIK it's simply possible creating a file using dd(1) which is sized to the wanted swap space to add, load it to a device using mdconfig(8) and activate it using swapon . You may automate it on reboots modifying your /etc/rc.local So long, Jens -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: <[EMAIL PROTECTED]> Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: I'm running out of swapspace
On Mon, 10 Feb 2003 00:48:50 +0100 (CET) Alexander <[EMAIL PROTECTED]> wrote: > Hello > > Recently I'm running out of swapspace. > Is there something that I can do to increase my swapspace ? > The best will be to take some space from partition > like the one for /var and add it to the swap. > Is this possible ? just create a partition or a vnode file and use 'swapon' man 8 swapon clem To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: I'm running out of swapspace
One way to do it is to create a memory file system linked to a file on-disk. In FreeBSD 5.0-RELEASE, to create a 128MB additional swap space, I've tried: dd if=/dev/zero of=/swap0 count=128 bs=1m chmod 600 /swap0 mdconfig -a -t vnode -f /swap0 -u 3 swapon /dev/md3 This will link the 128 megabyte file into swap space recognized by the system. Execute "swapinfo" to confirm: sandstone.north_ % swapinfo Device 1K-blocks UsedAvail Capacity Type /dev/ad0s1b52428810136 514152 2%Interleaved /dev/md3 131072 1876 129196 1%Interleaved Total 65536012012 643348 2% sandstone.north_ % Don To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
I'm running out of swapspace
Hello Recently I'm running out of swapspace. Is there something that I can do to increase my swapspace ? The best will be to take some space from partition like the one for /var and add it to the swap. Is this possible ? I want to ask before trying it, the machine is important. thanks P.S. Please include my mail when responding. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message