Re: changing swap size

2006-11-13 Thread Martin Alejandro Paredes Sanchez
El Lun 13 Nov 2006 06:34, Zbigniew Szalbot escribió:
> If I increase RAM to, say, 1GB, would I need to change the swap size to 2GB? 

I think not. ¿Are your computer still swaping?

> If so, is it a safe process (I assume this can be done using FIPS)?

FIPS only works in patitions with FAT16 or FAT32 file system.

> Would I need to boot first in single-user mode?

no

> Any other thoughts? 

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/adding-swap-space.html

> BTW - is there any easy way to
> make sure how much RAM is currently installed other than looking into the
> hardware? Top:
>
> Mem: 146M Active, 23M Inact, 98M Wired, 15M Cache, 41M Buf, 22M Free

morena ~> dmesg | grep memory
real memory  = 519237632 (495 MB)
avail memory = 498753536 (475 MB)
agp0: detected 16252k stolen memory
atapci1: failed to enable memory mapping!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: changing swap size

2006-11-13 Thread Andy Greenwood

On 11/13/06, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote:

Hello,

Following the advice about periodic freezes, I am going to add some RAM to
my system. However, currently my swap size is 512MB. If I increase RAM to,
say, 1GB, would I need to change the swap size to 2GB? If so, is it a safe
process (I assume this can be done using FIPS)? Would I need to boot first
in single-user mode?


As has already been said, you don't really need to change your swap
size unless you're going to be using all of your physical memory and
need the additional space. Since it doesn't sound like you're going to
be putting any more load on the server, it's unnecessary. However, if
you want to do it, you could, without going to single-user mode:

1) create an empty file somewhere. This will make a 1 MB file, adjust
bs and count as you need to.
# dd if=/dev/zero of=/path/to/some.file bs=1k count=1024

2) create a file based device with mdconfig like this.
# mdconfig -a -t vnode -f /path/to/some.file

3) swapon your shiny new md device. Use the md device that was given
as output from the above command.
# swapon /dev/md0

4) verify that your device is now working as a swap device with
# swapinfo -h

5) now you can swapoff your main swap, change it as you need, and swapon it back
# swapoff /dev/ad0s1b

# swapon /dev/ad0s1b

6) now that you new, improved swap is working, you can swapoff your
temporary swap, remove the md device, delete the file, and verify that
your swap is right
# swapoff /dev/md0
# mdconfig -d -u md0
# rm /path/to/some.file
# swapinfo -h


Any other thoughts? BTW - is there any easy way to
make sure how much RAM is currently installed other than looking into the
hardware? Top:

Mem: 146M Active, 23M Inact, 98M Wired, 15M Cache, 41M Buf, 22M Free

Which would seem to suggest I have 345 MB RAM. But from what I recall this
machine uses 320 MB RAM. Thanks!


--
Zbigniew Szalbot
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"




--
I'm nerdy in the extreme and whiter than sour cream
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: changing swap size

2006-11-13 Thread Maxim Masyukevich
If you have swap section 512 Mb that it is not necessary change anything
. Simply add operative memory and all. 



Best regards,
Masyukevich Maksim
SPIRIT DSP, www.spiritDSP.com/voip, Embedded Voice Experience
SeeStorm, www.SeeStorm.com, Synthetic Video Conferencing
TeamSpirit - Award-Winning Multi-Point Voice Conferencing Engine

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zbigniew
Szalbot
Sent: Monday, November 13, 2006 4:34 PM
To: freebsd-questions@freebsd.org
Subject: changing swap size

Hello,

Following the advice about periodic freezes, I am going to add some RAM
to my system. However, currently my swap size is 512MB. If I increase
RAM to, say, 1GB, would I need to change the swap size to 2GB? If so, is
it a safe process (I assume this can be done using FIPS)? Would I need
to boot first in single-user mode? Any other thoughts? BTW - is there
any easy way to make sure how much RAM is currently installed other than
looking into the hardware? Top:

Mem: 146M Active, 23M Inact, 98M Wired, 15M Cache, 41M Buf, 22M Free

Which would seem to suggest I have 345 MB RAM. But from what I recall
this machine uses 320 MB RAM. Thanks!


-- 
Zbigniew Szalbot
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


changing swap size

2006-11-13 Thread Zbigniew Szalbot

Hello,

Following the advice about periodic freezes, I am going to add some RAM to 
my system. However, currently my swap size is 512MB. If I increase RAM to, 
say, 1GB, would I need to change the swap size to 2GB? If so, is it a safe 
process (I assume this can be done using FIPS)? Would I need to boot first 
in single-user mode? Any other thoughts? BTW - is there any easy way to 
make sure how much RAM is currently installed other than looking into the 
hardware? Top:


Mem: 146M Active, 23M Inact, 98M Wired, 15M Cache, 41M Buf, 22M Free

Which would seem to suggest I have 345 MB RAM. But from what I recall this 
machine uses 320 MB RAM. Thanks!



--
Zbigniew Szalbot
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"