Here is the procstat exit world:
PID START END PRT RES PRES REF SHD FL TP PATH 36502 0x400000 0x45d000 rx 77 0 23 11 CN vn /usr/local/sbin/httpd 36502 0x65c000 0x660000 rw- 3 3 2 1 CN vn /usr/local/sbin/httpd 36502 0x660000 0x800000 rw- 5 4 2 1 CN sw 36502 0x80065c000 0x800693000 rx 25 0 83 32 CN vn /libexec/ld-elf.so.1
What is the main difference between RES (resident pages) and PRES (private resident pages)? Is this something like public and private memory or not?
And there are so-called display flags (CN). As far as I understand, these flags are used for the basics of each page, and not for the entire memory segment, because these are pages marked as Copy-To-Write, not segments. So why does procstat display it for the entire segment?
And one more question: can I find out from this conclusion how many pages are actually copied (during the copy-to-write process) and how much remains in the parent process?
Please help me figure this out? I will be very grateful, thanks
zim32 source share