Copyright

What is Memory Partitioning? - Definition & Concept

An error occurred trying to load this video.

Try refreshing the page, or contact customer support.

Coming up next: Memory Allocation Schemes: Definition & Uses

You're on a roll. Keep up the good work!

Take Quiz Watch Next Lesson
 Replay
Your next lesson will play in 10 seconds
  • 0:04 What Is Memory Partitioning?
  • 0:21 Fixed Partitioning
  • 1:45 Variable Partitioning
  • 2:49 Dynamic Partitioning
  • 4:04 Compaction
  • 4:30 Lesson Summary
Save Save Save

Want to watch this again later?

Log in or sign up to add this lesson to a Custom Course.

Log in or Sign up

Timeline
Autoplay
Autoplay
Speed

Recommended Lessons and Courses for You

Lesson Transcript
Instructor: Lyna Griffin

Lyna has tutored undergraduate Information Management Systems and Database Development. She has a Bachelor's degree in Electrical Engineering and a Masters degree in Information Technology.

In this lesson we will understand the definition and concept of memory partitioning. We will examine the different type of memory partitions. We will highlight the pros and cons of each type and how some memory configurations solve the short comings of others.

What Is Memory Partitioning?

Memory partitioning is the system by which the memory of a computer system is divided into sections for use by the resident programs. These memory divisions are known as partitions. There are different ways in which memory can be partitioned: fixed, variable, and dynamic partitioning.

Fixed Partitioning

Let us think about the jewelry box that stores rings. Different pieces of jewelry represent different computer processes. Say you have a jewelry box that displays rings. This box has been partitioned into equal parts.


Figure 1: Ring Display (Illustration: Fixed Partitioning)
illustration:fixed partitioning


Fixed partitioning is ideal for our rings collection provided we always acquire rings with sizes less than these fixed partitions. However, we never have identical jewelry of the same size. Item 1 & 2 fit almost perfectly with little or no wasted space (partition almost the same size as the process). Item 3 however, leaves a lot more space unoccupied (small process in large partition), while item 4 has no partition large enough to fit (large process with unavailable sized partition).

Fixed partitioning is therefore defined as the system of dividing memory into non-overlapping sizes that are fixed, unmoveable, static. A process may be loaded into a partition of equal or greater size and is confined to its allocated partition.

If we have comparatively small processes with respect to the fixed partition sizes, this poses a big problem. This results in occupying all partitions with lots of unoccupied space left. This unoccupied space is known as fragmentation. Within the fixed partition context, this is known as internal fragmentation (IF). This is because of unused space created by a process within its allocated partition (internal).

Variable Partitioning

An alternate solution to address these problems is variable partitioning. In the case of the jewelry box, we anticipate that we possess different jewelry items with different sizes. So, we divide the area of our jewelry box into partitions of different sizes. This way, smaller items of jewelry (small processes) are assigned small partitions while the bigger partitions are saved for the bigger items (large processes).


Figure 2: Illustration - Jewelry Box
illustration:jewelry box

Variable partitioning is therefore the system of dividing memory into non-overlapping but variable sizes. This system of partitioning is more flexible than the fixed partitioning configuration, but it's still not the most ideal solution. Small processes are fit into small partitions (item 1) and large processes fit into larger partitions (items 2 and 3). These processes do not necessarily fit exactly, even though there are other unoccupied partitions. Items 3 and 4 are larger processes of the same size, but memory has only one available partition that can fit either of them.

The flexibility offered in variable partitioning still does not completely solve our problems.

Dynamic Partitioning

Let us examine a typical 64MB space of memory and let's assume that the first 8MB of memory is reserved for the operating system.


64Mb memory space
64Mb memory space

To unlock this lesson you must be a Study.com Member.
Create your account

Register to view this lesson

Are you a student or a teacher?

Unlock Your Education

See for yourself why 30 million people use Study.com

Become a Study.com member and start learning now.
Become a Member  Back
What teachers are saying about Study.com
Try it risk-free for 30 days

Earning College Credit

Did you know… We have over 200 college courses that prepare you to earn credit by exam that is accepted by over 1,500 colleges and universities. You can test out of the first two years of college and save thousands off your degree. Anyone can earn credit-by-exam regardless of age or education level.

To learn more, visit our Earning Credit Page

Transferring credit to the school of your choice

Not sure what college you want to attend yet? Study.com has thousands of articles about every imaginable degree, area of study and career path that can help you find the school that's right for you.

Create an account to start this course today
Try it risk-free for 30 days!
Create an account
Support