Once the working set exceeds available ram , performance usually declines sharply as the operating system starts paging memory out to disk 一旦处理空间超过了可用的ram ,操作系统将页面调度到磁盘,性能通常会急剧下降。
However , storing large blocks of data in application state can fill up server memory , causing the server to page memory to disk 但是,在应用程序状态中存储较大的数据块可能会耗尽服务器内存,这会导致服务器将内存分页到磁盘。
Increasing buffer size is expensive , as it comes from non paged memory that cannot be swapped out to disk , so keep the buffer as small as possible 增加缓冲区大小的开销较大,因为它来自无法换出到磁盘的非分页内存,所以将缓冲区保持得越小越好。
Increasing the size of the buffer is expensive , as it comes from non paged memory that cannot be swapped out to disk , so keep the buffer as small as possible 增加缓冲区大小的开销较大,因为它来自无法换出到磁盘的非分页内存,所以将缓冲区保持得越小越好。
The other problem with using this for larger buffers is that since it allocates non - paged memory , it would need to allocate a large block of sequential non - paged memory 另外一个将它用于较大缓冲区的问题是,由于他分配了未分页内存,它也许会需要在连续的未分页内存中分配较大的一个块。