From the course: Linux Foundation Certified System Administrator (LFCS) Cert Prep
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
Configure and manage swap space - Linux Tutorial
From the course: Linux Foundation Certified System Administrator (LFCS) Cert Prep
Configure and manage swap space
- [Instructor] Now, let's look at how to configure and manage Swap Space in Linux. In this lesson, we'll discuss how we can create a so-called swap partition. Swap is an area where Linux can temporarily move some data from the computer's RAM. To understand this mechanism, let's go through an overly simplified scenario. Let's imagine we have a computer with four gig of RAM. We open a video editor, and this uses up two gig of RAM. We open an audio editor, and this needs another two gig. Now we have no more free memory, but we have a two gig swap partition. Although no more RAM is available, we can still open Chrome. Well, how is this possible? Well, when we want to open Chrome, the following happens. Linux sees no more RAM is available, but it also sees that we didn't use the video editor in the last hour. It's basically just sleeping there, inactive, so it decides that it can move the data and memory used by the video editor to our swap partition. By moving data from RAM to swap it…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
List, create, delete, and modify physical storage partitions10m 9s
-
(Locked)
Configure and manage swap space5m 32s
-
(Locked)
Create and configure filesystems9m 19s
-
(Locked)
Configure systems to mount filesystems at or during boot7m 19s
-
(Locked)
Filesystem and mount options5m 56s
-
(Locked)
Use remote filesystems: NFS12m 9s
-
(Locked)
Use network block devices: NBD11m 9s
-
(Locked)
Manage and configure LVM storage10m 38s
-
(Locked)
Monitor storage performance15m 47s
-
(Locked)
Create, manage, and diagnose advanced filesystem permissions11m 7s
-
(Locked)
-