Question about 'top' values on memory usage, now threads

Peter Jeremy peterjeremy at optushome.com.au
Tue Oct 16 02:42:37 PDT 2007


On 2007-Oct-15 12:43:39 -0400, William LeFebvre <bill at lefebvre.org> wrote:
>Whether there is actual swapping going on or not, processes will still need 
>swap space.  There needs to be a backing store for every page that's in 
>physical memory.

This isn't true for FreeBSD.  You can even totally disable
paging/swapping with the config option "NO_SWAPPING" if you want.

FreeBSD allocates swap space on an "as needed" basis, rather than
pre-allocating swap.  The advantage is that a process can request
virtually unlimited amounts of memory via sbrk(2), mmap(2) or
malloc(3).  The downside is that a process may be killed without
notice when it writes to some previously allocated but unused part
of its address space.  See the archives for the full bikeshed.

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20071016/516779df/attachment.pgp


More information about the freebsd-stable mailing list