Re: copy-on-write overhead

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Joel...

Manish is right. Please notice that he talked about "why do we do copy
on write (COW) if soon after child is forked, it quickly does exec()".
So yes, COW has overhead, but imagine if parent ran first. COW will be
triggered for parent address space, then child soon runs too. Then it
issues exec(). Clearly, this waste certain amout of memory which can
be fairly avoided if child runs first
 
It is more about waste of work, than waste of memory. Memoy will anyway be reclaimed/reused when we do exec()
 
Thanks,
-nagp

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux