Re: Recommended amount of swap

2011-09-06 Thread Volodymyr Kostyrko

05.09.2011 22:48, Dan Nelson написав(ла):

In the last episode (Sep 05), Sean Hamilton said:

What is the state of the art for the recommended amount of swap in
FreeBSD? Both normal systems with 512 MB - 8 GB of RAM, and large
database systems with around 128 - 256 GB.


I suggest 2x RAM for systems less than 4gb or so.  Anything more than 4GB of
swap is probably never going to be used, and if it is used, you're just
going to thrash your swap device.  If you have 128GB of RAM and need to swap
to disk, you desperately need more RAM, not swap :)


My +1 to wishlist, I want OpenOffice to not trash memory when reading 
large xlsx files.


Mem: 1937M Active, 243M Inact, 672M Wired, 98M Cache, 9412K Free
Swap: 36G Total, 21G Used, 15G Free, 59% Inuse, 252K In

   PID USERNAMETHR PRI NICE   SIZERES STATE   C   TIME   WCPU
COMMAND
  1912 arcade5  451 23311M  1721M ucond   0  66:07 55.37%
/usr/local/openoffice.org-3.3.0/openoffice.org3/program/so

Different things happens. When I hardly need some swap I think about:

0. More RAM.
1. Spare flash or SSD.
2. Another disk.
3. Touching disk sizes.

Also please note that system that uses at least 1G of swap actively (I 
don't mean tmp/mdfs or long running non active processes) is dripping 
slime and therefor is useless and should be upgraded.


--
Sphinx of black quartz judge my vow.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Recommended amount of swap

2011-09-05 Thread Sean Hamilton
What is the state of the art for the recommended amount of swap in
FreeBSD? Both normal systems with 512 MB - 8 GB of RAM, and large
database systems with around 128 - 256 GB.

Thanks in advance,

-- 
Sean Hamilton seanhamil...@gmail.com
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: Recommended amount of swap

2011-09-05 Thread Dan Nelson
In the last episode (Sep 05), Sean Hamilton said:
 What is the state of the art for the recommended amount of swap in
 FreeBSD? Both normal systems with 512 MB - 8 GB of RAM, and large
 database systems with around 128 - 256 GB.

I suggest 2x RAM for systems less than 4gb or so.  Anything more than 4GB of
swap is probably never going to be used, and if it is used, you're just
going to thrash your swap device.  If you have 128GB of RAM and need to swap
to disk, you desperately need more RAM, not swap :)

-- 
Dan Nelson
dnel...@allantgroup.com
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: Recommended amount of swap

2011-09-05 Thread Eitan Adler
On Mon, Sep 5, 2011 at 3:48 PM, Dan Nelson dnel...@allantgroup.com wrote:
 In the last episode (Sep 05), Sean Hamilton said:
 What is the state of the art for the recommended amount of swap in
 FreeBSD? Both normal systems with 512 MB - 8 GB of RAM, and large
 database systems with around 128 - 256 GB.

Keep in mind that you need at least ram = swap to get a coredump.

 --
        Dan Nelson
        dnel...@allantgroup.com
 ___
 freebsd-hackers@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
 To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org




-- 
Eitan Adler
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: Recommended amount of swap

2011-09-05 Thread RW
On Mon, 5 Sep 2011 14:48:57 -0500
Dan Nelson wrote:

 In the last episode (Sep 05), Sean Hamilton said:
  What is the state of the art for the recommended amount of swap in
  FreeBSD? Both normal systems with 512 MB - 8 GB of RAM, and large
  database systems with around 128 - 256 GB.
 
 I suggest 2x RAM for systems less than 4gb or so.  Anything more than
 4GB of swap is probably never going to be used, and if it is used,
 you're just going to thrash your swap device. 

but tmpfs (and swap-backed md devices) can use substantial
amounts of swap without contributing to thrashing. In some cases it
may be possible to justify larger amounts of swap.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: Recommended amount of swap

2011-09-05 Thread Dan Nelson
In the last episode (Sep 05), Eitan Adler said:
 On Mon, Sep 5, 2011 at 3:48 PM, Dan Nelson dnel...@allantgroup.com wrote:
  In the last episode (Sep 05), Sean Hamilton said:
  What is the state of the art for the recommended amount of swap in
  FreeBSD? Both normal systems with 512 MB - 8 GB of RAM, and large
  database systems with around 128 - 256 GB.
 
 Keep in mind that you need at least ram = swap to get a coredump.

Not if debug.minidump is set to 1, which it is by default.  In that case,
only mapped memory gets dumped, which should ignore disk cache pages and be
a lot smaller than your RAM size.  Enabling ZFS may make your dumps bigger
unless the minidump code is smart enough to not dump the ARC.

-- 
Dan Nelson
dnel...@allantgroup.com
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: Recommended amount of swap

2011-09-05 Thread Mark Linimon
On Mon, Sep 05, 2011 at 02:48:57PM -0500, Dan Nelson wrote:
 I suggest 2x RAM for systems less than 4gb or so.  Anything more than 4GB of
 swap is probably never going to be used

I see you don't do mass package builds :-)  Or, even build openoffice or some
of the math packages.

 and if it is used, you're just going to thrash your swap device.

That's us! :-)

mcl
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org