Differences between Linux and WindowsNT in memory management
Source: Internet
Author: User
Article Title: differences between Linux and WindowsNT in memory management. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
In terms of memory management, Linux and Windows NT use different memory la s when the address space of the same process is large. Windows NT actually only provides 2 GB of weak virtual address space for the process, while the process address space in Linux is more flexible.
In terms of virtual memory usage, the Linux kernel manages a lot of details for users. Users can think that they actually have 4 GB of address space, instead of worrying about whether the virtual memory is submitted to physical storage. Windows NT provides programmers with a variety of virtual memory usage solutions. Although these solutions are complicated to use, they provide a certain degree of flexibility. It also supports DOS and Win16 program execution, but in order to provide this compatibility, its memory management has paid a very high performance price.
Although both Linux and Windows NT provide Memory sharing technology, their implementations are slightly different. The interfaces provided by Linux are very simple. You only need to attach your virtual memory space area to the shared memory object. Windows NT provides a shared memory mechanism through memory ing files, which is a little complicated in terms of usage.
Linux has a high flexibility in memory swap management. Users can create "no holes" files in a common file system as swap space, and can also use multiple swap files to dynamically increase swap files. It also provides a method to use swap partitions as swap spaces, which is the preferred swap space solution. Windows NT page files are difficult to get rid of the danger of fragmentation. To ensure that they use non-fragmented page files, some measures must be taken.
Linux and Windows NT share some similarities in the use of high-speed cache, and try to use all the free RAM of the system as the high-speed cache area. However, Linux has some advantages in high-speed cache management, this is the root cause of its high performance.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service