Oren Held wrote:
There's something in your question I don't understand:
If a process has 1gb in virtual memory, of which 500mb in physical,
then this means that it has 500mb in swap.
No, that is not what it means.
Virtual memory amount might be different then physical memory amount due
a whole bunch of different reason, swapping being just a single instance
and not even the common one.
Some other reasons are:
- Lazy allocation. Malloc allocates virtual memory addresses, but only
use does physical memory allocation.
- Copy on write semantics, as is done with fork() for example.
- Shared memory, including that of shared libraries text and data sections.
- Memory mapped IO.
And so on...
In addition, memory may exist in both physical memory and swap at the
same time, possibly in different versions (e.g. dirty anonymous page
which has been previously swapped).
In short, please ask your question again using more exact terms so that
we understand what you want to ask.
Gilad
--
Gilad Ben-Yossef <[EMAIL PROTECTED]>
Codefidence. A name you can trust(tm)
Web: http://codefidence.com | Cel: +972.52.8260388
IL: +972.3.7515563 ext. 201 | Fax: +972.3.7515503
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]