:: -s Print summary information about total swap
:: space usage and availability:
::
:: allocated The total amount of swap space
:: (in 1024-byte blocks)
:: currently allocated for use as
:: backing store.
::
:: reserved The total amount of swap space
:: (in 1024-bytes blocks) not
:: currently allocated, but
:: claimed by memory mappings for
:: possible future use.
::
:: used The total amount of swap space
:: (in 1024-byte blocks) that is
:: either allocated or reserved.
:--
:soda
It would be really easy to test this.
Write a program that malloc's 32MB of space and touches it,
then sleeps 10 seconds and forks, with both child and parent
sleeping afterwords. ( the parent and the forked child should
not touch the memory after the fork occurs ).
Do a pstat -s before, after the initial touch, and after
the fork. If you do not see the reserved swap space jump
by 32MB after the fork, it isn't what you thought it was.
-Matt
Matthew Dillon
<[EMAIL PROTECTED]>
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message
- Re: Swap overcommit (was Re: Rep... Daniel C. Sobral
- Re: Swap overcommit (was Re: Rep... Andrzej Bialecki
- Re: Swap overcommit (was Re: Replacem... Michael Richardson
- Re: Swap overcommit (was Re: Rep... Daniel C. Sobral
- Re: Swap overcommit (was Re: Replacem... John Nemeth
- Re: Swap overcommit (was Re: Rep... Daniel C. Sobral
- Re: Swap overcommit (was Re:... Noriyuki Soda
- Re: Swap overcommit (was... Matthew Dillon
- Re: Swap overcommit ... Noriyuki Soda
- Re: Swap overco... Matthew Dillon
- Re: Swap overco... Matthew Dillon
- Re: Swap overcommit (was Re: Replacem... Jason Thorpe
- Re: Swap overcommit (was Re: Rep... Matthew Dillon
- Re: Swap overcommit (was Re:... Garance A Drosihn
- Re: Swap overcommit (was Re:... Patrick Welche
- Re: Swap overcommit (was... Daniel C. Sobral
- Re: Swap overcommit (was Re: Rep... Daniel C. Sobral
- Re: Swap overcommit (was Re:... Tim Vanderhoek
- Re: Swap overcommit (was Re: Replacem... Michael Schuster - TSC SunOS Germany
- Re: Swap overcommit (was Re: Replacem... Matthew Dillon

