Re: Maximum swap size?

2008-07-01 Thread Wojciech Puchar


My first question is, why are you partitioning more than 2x your RAM? I 
highly doubt you have 16GB of RAM.


probably because he need it. 2x is just rough estimate, real requirements 
depends on load

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


Maximum swap size?

2008-06-30 Thread snott

Is there a maximum swap size limitation?  I'm using a 64-bit arch and only
seem to get about 32GB of usable swap out of a 250GB disk (all of /dev/ad6)

Thanks, Skye

# uname -a
FreeBSD XX 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  amd64
# 
# bsdlabel ad6s1
# /dev/ad6s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  b: 4883920020  swap
  c: 4883920020unused0 0 # raw part, don't
edit
# 
# swapctl -hl
Device:   1048576-blocks  Used:
/dev/ad4s1b 4094  0
/dev/ad6s1b32768  0

-- 
View this message in context: 
http://www.nabble.com/Maximum-swap-size--tp18204938p18204938.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

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


Re: Maximum swap size?

2008-06-30 Thread Ryan Coleman

snott wrote:

Is there a maximum swap size limitation?  I'm using a 64-bit arch and only
seem to get about 32GB of usable swap out of a 250GB disk (all of /dev/ad6)

Thanks, Skye

# uname -a
FreeBSD XX 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  amd64
# 
# bsdlabel ad6s1

# /dev/ad6s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  b: 4883920020  swap
  c: 4883920020unused0 0 # raw part, don't

edit
# 
# swapctl -hl

Device:   1048576-blocks  Used:
/dev/ad4s1b 4094  0
/dev/ad6s1b32768  0

  


My first question is, why are you partitioning more than 2x your RAM? I 
highly doubt you have 16GB of RAM.

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


Re: Maximum swap size?

2008-06-30 Thread snott

Trust me, I really do want 250GB (or more) of swap.   I'm using swap as a
backing store for an HTTP reverse proxy for very large cache sets.  Its more
efficient to just use the vm layer for LRU object management than to create
a huge mmap'd file with file buf caching.

Skye



Ryan Coleman wrote:
 
 snott wrote:
 Is there a maximum swap size limitation?  I'm using a 64-bit arch and
 only
 seem to get about 32GB of usable swap out of a 250GB disk (all of
 /dev/ad6)

 Thanks, Skye
 
 My first question is, why are you partitioning more than 2x your RAM? I 
 highly doubt you have 16GB of RAM.
 

-- 
View this message in context: 
http://www.nabble.com/Maximum-swap-size--tp18204938p18205925.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

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


Re: Maximum swap size?

2008-06-30 Thread Kris Kennaway

snott wrote:

Trust me, I really do want 250GB (or more) of swap.   I'm using swap as a
backing store for an HTTP reverse proxy for very large cache sets.  Its more
efficient to just use the vm layer for LRU object management than to create
a huge mmap'd file with file buf caching.


I am not certain but I think on 64-bit systems the 32GB limitation is 
per swap device (on i386 there is a 16GB total limitation because of a 
32-bit counter of 512 byte blocks), so you can add multiple swap 
devices.  However if you slice up a disk into many partitions you might 
lose performance because it will try to round robin between them, 
assuming they are independent (but they're not; you'll lose I/O 
throughput from seek delays).  It may not be hard to change this behaviour.


In general your strategy is a good one but there are other problems; 
managing that amount of swap will require a lot of auxiliary kernel 
memory.  It is hard to estimate exactly how much for various reasons 
(it's not entirely deterministic), but in my environment even 20GB of 
swap requires increasing


kern.maxswzone=209715200

i.e. about 200MB of memory just to keep track of the allocated swap.  If 
you don't tune this then you'll run out of swap zone when you allocate 
beyond a certain point, and the kernel will deadlock.  I think the 
default value allows about 8GB of swap use.


Other kernel limits will prevent this from being raised above about 
1500MB (although a forthcoming change in 8.0 will bring it up to 4GB).


Basically, even though there are valid reasons to want to do what you're 
doing (and I do it myself on the build cluster that builds the FreeBSD 
packages), you're operating in a zone that would have been considered 
complete insanity until recently, and sufficiently few people have 
wanted to try that no-one has thought about optimizing in this regime.


I think it would be quite an interesting project to try, though.

Kris

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


Re: Maximum Swap Size

2004-06-07 Thread Chuck Swiger
Scott Ballantyne wrote:
Hmmm... I didn't know there was a maximum swap size on FreeBSD 4.10 of
1677216 blocks... Is there an easy way to reduce this partition without
redoing the entire install?
Yes.  Delete just the swap partition in place, then recreate it using a 
smaller size (using /stand/sysinstall or another tool of your choice).  The 
rest of your existing partitions and the data in them should be fine...

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


Maximum Swap Size

2004-06-06 Thread Scott Ballantyne
Hmmm... I didn't know there was a maximum swap size on FreeBSD 4.10 of
1677216 blocks... Is there an easy way to reduce this partition without
redoing the entire install?

sdb

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