Windows is a really popular operating system to be used as desktop and is a mature runing system. On the other manus Linux is acquiring popular this clip and will derive much importance in the close hereafter.

Memory direction system: –

Memory direction system is of import portion of each operating system. The chief map of this system is to pull off the memory system of random entree memory and the other storing devices which are available on the system. Main undertakings that come under the memory direction are allotment and deallocation of memory to the assorted procedures running on the system. The memory direction system should be optimized as its map affect the velocity and the public presentation of the operating system.

Memory Management Between Windows And Linux... TOPICS SPECIFICALLY FOR YOU

Memory direction system provides the undermentioned characteristics:

Large Address Space:

The memory direction system shows the user that big memory infinite is available alternatively of the existent memory it has. Virtual memory is many times greater than the physical memory of the system.


Every procedure of the system is provided the practical reference infinite. These address infinites wholly differ from each other so the procedures running on one application plan non impact the other. The hardware besides protect the practical memory country from composing. Thus codification and information is protected from acquiring overwritten by knave applications.

Memory Function

Memory function is used to map image and information files into a procedures address infinite. In memory function map, the contents of a file are linked straight into the practical reference infinite of the procedure.

Fair Physical Memory Allocation

The memory direction subsystem allows each running procedure in the system a just portion of the physical memory of the system,

Shared Virtual Memory

Virtual memory is the chief and an of import portion of the memory direction system. The memory demands were turning that ‘s why the practical memory was introduced. So plans were developed that made the semblance that system has big memory to be allocated to the procedures. The meats provide the installation to utilize the secondary storage devices to carry through the excess demands of the memory.

Some function maps are at that place for the practical memory map to work. These maps are responsible for the reference interlingual rendition that convert the practical references to the physical references. Virtual reference is the mention reference of the memory location and the physical reference is the existent reference of the memory location.

Virtual memory map by and large use the paging or cleavage as per the demand of the operating system.


In paging both the reference infinite the practical and existent is divided into fixed size pages.The pages are manipulated and is placed at different topographic point in difficult disc and the physical memory.

The memory direction unit does the reference interlingual rendition by utilizing the page. The reference

Fig 1: page tabular array

Page table specifies the mapped physical pages and the practical memory pages.The memory direction unit changes the practical memory reference to the physical memory reference dwelling page frame figure and the beginning in that page. It besides provides the functionality to use protection on the page. Virtual memory takes the big reference infinite in comparing to physical memory. With each practical page a spot is associated with the page tabular array to look into whether the page is present in the physical memory. If the page is non there a page mistake exclusion is generated. It is handled by the package which place the pages required back to the physical memory from the difficult disc and mistake is generated if it is invalid.


Both the operating systems have the modern operating systems and have a batch of common characteristics in between them.Some of the similarities in both of the memory direction system are-

Hardware Abstraction Layer:

Both the operating systems have the hardware abstraction bed that is non system dependent. Thus the meats are enabled to be coded independently.

Transcript on write: –

If the pages are shared same transcript of the page is used between the procedures. But if an single procedure makes any alteration in the page that is made private to that procedure merely, therefore increases the efficiency.

Shadow paging:

A shadow is created for the original object. The shadow object has some of the pages modified characteristics from the original object but portions the remainder of the pages with original object. They are formed as a consequence of Copy-On-Write action.

Memory mapped Files:

A file can be mapped onto memory, which so can be used with simple memory read/write direction.

Inter-Process Communication: The memory mapped files are shared between procedures therefore makes the interprocess communicating.

Memory direction


Windows on 32 spot x86 systems accesses upto 4GB of physical memory. This is because that the processor ‘s reference coach which is 32 lines or 32 spots can merely entree reference scope from 0x00000000 to 0xFFFFFFFF that is of 4GB. Windows provides 4Gb logical infinite for each process.. The lower 2GB is for the user manner procedure and upper 2GB is reserved for Kernel manner codification of the Windows. Windows uses the characteristic of paging for the memory direction

Paging allows the package to utilize a logical memory reference than the physical memory reference. The paging unit of the processor translates the logical reference into the physical reference. This allows every procedure in the system to hold its ain 4GB logical reference infinite.

Windows provides an independent, 2 GB user reference infinite for each and every application ( procedure ) in the system. To the application merely 2 GB of memory is appeared to be availablethan the entire memory available. When an application requests more memory than the available memory, Windows NT satisfies the petition by paging noncritical pages of memory-from this and/or other processes-to a pagefile and liberating those physical pages of memory. Thus a planetary pile exist for no long in the Windowss NT. Every procedure gets the private 32-bit reference infinite from which all of the memory for the procedure is allocated-including codification, resources, informations, DLLs ( dynamic-link libraries ) , and dynamic memory. The system is still limited by whatever hardware resources are available, but the direction of available resources is performed independently of the applications in the system.


Linux implements the practical memory informations construction merely like UNIX. practical memory country constructions are maintained in linked lists by it. These informations constructions represent uninterrupted memory countries which are incorporating the same protection parametric quantities. This list is searched whenever a page is to be found that consists a peculiar location. The construction besides records the scope of reference it is mapping onto, protection manner, whether it is pinned in memory ( non page-able ) , and the way ( up/down ) it will turn in. It besides records whether the country is public or private. If the figure of entries additions than a peculiar figure, normally 32, so the linked list is converted into a tree. This is a rather good attack which uses the best construction in the best state of affairss.

Distribution of Process Address Space

Both the operating system distribute the procedure practical reference

infinite in the same manner. Higher portion is used by the meat and lower by the lower portion. The meats portion all procedure point to the same meat codification. So for exchanging a procedure, we need to exchange the page table entries of the lower portion, while the upper portion can stay the same. In Linux 3GB is kept for the procedure and 1 GB given to the meats, while in Windows, 2GB are kept for each.


The system used by Windows is verycomplicated. Windows uses clustered demand paging for bringing pages, and the clock algorithm for the page replacing.

In Clustered demand paging, the pages are merely brought to memory when they are required. Besides, alternatively of conveying 1, Windows, frequently brings a bunch of them of 1-8 pages, depending on the current province of the system.

The meat receives 5 sorts of page mistakes –

A protection misdemeanor has occurred.

A shared page has been written.

The stack needs to turn.

The page referenced is committed but non presently

mapped in.

The first two mistakes are unrecoverable. The 3rd efforts to compose read-only page. Transcript that page someplace else and do the new one read/write. In this manner the copy-on-write plants. The 4th demands to be responded by happening an excess page. The most of import characteristic about the Windows Paging Systems that it makes heavy usage of the working set construct. The working set is defined as the sum of chief memory presently assigned to the procedure, so the working set consists of its pages that are present in the chief memory. The size of the working set is, nevertheless, non changeless. So the disadvantages that come with working sets are to a great extent reduced. The clock algorithm used by Windows is local. When a page mistake occurs, and blaming procedure ‘s

working set is below a minimal threshold, so the page is merely added to the working set. On the other manus, if the working set is higher than one another threshold, so it reduces the size of working set. Hence the algorithm can be called planetary. But the system does make some planetary optimisations excessively. For illustration, it increases the working set of procedures that are doing a big figure of page mistakes, and diminishing the working set for those who do non necessitate

adequate memory. Alternatively of merely working when there is a page mistake, merely like Unix, Windows has a daemon yarn working excessively, but called in this instance as Balance Set Manager. This is invoked every 1 second, and it checkswhether there is adequate free memory. If there is non, so it invokes the working set director. The working set director maintains to maintain the free memory above threshold. It checks the working sets of procedure from old and large to the immature and little. And depending on how many page mistakes they have generated, it increases or decreases them. If a page ‘s mention spot is clear, so counter associated with the page is incremented. If the mention spot is set, the counter is set to zero. After the scan, pages with the highest counter are removed from the working set. Thus, the planetary facet of this clock algorithm is given by this working set director.

Windows divides the list of pages into four lists:

1. Modified Page List

2. Stand-bye Page list

3. Free Page list

4. Zeroed Page List



The Linux Virtual memory had focused on simpleness and low operating expense. Hence it was crude and had many jobs, particularly under heavy burden. Linux uses a demand paged system with no prepaging. Until kernel version 2.2, Linux used NRU algorithm for page replacing, but due to the assorted defects of the algorithm, they changed the edit and implemented an approximative Least Recently Used in 2.4 version. The aging to consequence LRU is brought about by increasing the age of a page by a changeless when the page is found to be referenced during a scan, and, decreased exponentially ( divided by 2 ) when found non to hold been referenced. This method approximates LRU reasonably good.

Linux 2.4 divides the practical pages into 4 lists

1. Active list

2. Inactive-dirty list

3. Inactive-clean list

4. Free list

For linux 2.4, the inactive list size was made dynamic. Now the system itself will make up one’s mind how many inactive pages it should maintain in the memory given the peculiar state of affairs. system itself will make up one’s mind how many inactive pages it should maintain in the memory given the peculiar state of affairs.

The fusion of the buffer cache and page cache has been completed in 2.4. Another optimisation nowadays in the Linux Kernel, is that they now recognize uninterrupted I/O, i.e. they now decrease the precedence of the page “ behind ” and so that page becomes a campaigner for eviction Oklahoman. The page devil in Linux is kswapd which awakens one time a 2nd, and frees memory if adequate is non available.


Both the systems are originated in different backgrounds – Windows in Commercial Settings, and Linux in Hackers scenes. Both are modern and have good theoretical constructs, and are all suited for production environments. They have a batch of common characteristics, and few differences, technically talking. Windows is developed with strong pecuniary motive, has gone through more attempt in its design and development.

In instance of Linux, the determination was taken frequently favoring simpleness against public presentation.

Therefore the Windows is developed into sophisticated, complex codification whereas Unix is simple and elegant but still modern. The consequence of which is that Windows has more characteristics but is hard to keep and better from the developers, while Unix has less characteristics but is easier to keep and develop. Windows is likely to give better public presentation while on occasion crashing.


Share this Post!

Kylie Garcia

Hi there, would you like to get such a paper? How about receiving a customized one?

Check it out