摘要 |
The present invention relates to a method of transferring data from an application buffer to a network socket, in which memory usage faults are reduced. In one embodiment, the method for managing data transfer in a computer memory includes transferring data from an application program memory to a network stack using zero copy data transfer, monitoring the number of potential copy on write (COW) faults generated during the transfer of data for the application program, and controlling the transferring of data so that if the number of potential COW faults exceeds a predetermined threshold for the application then in subsequent data transfers from the application program, data is copied to another memory location before transferring the data to the network stack. |