From the course: Linux: Storage Systems
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Configure and manage swap space - Linux Tutorial
From the course: Linux: Storage Systems
Configure and manage swap space
- [Instructor] Let's talk about swapping. Swapping in Linux is the kernel being desperate. That is, it is deciding it doesn't have enough memory for things to be able to run reasonably, so it's going to throw some stuff out of memory, copying things out the disk. Typically, if your system is swapping, that's bad news. It's going to be really pretty slow. It's best if you add more memory or run fewer things, if you can. But having your system configured to swap means that things may run instead of just being killed. Now, I want to point out that swapping is not the same as paging. Linux is a demand-page system. When you run a program, for example, it doesn't read the whole program into memory, it reads it in as you jump around to different parts of it. When you read a data file, it just reads part of it in to start with, and then as you reference different parts, those are brought in. That's demanding that those pages be brought in. Swapping is different. Swapping is the kernel saving…
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)
Configure and manage swap space5m 39s
-
(Locked)
Configure remote block-storage devices2m 47s
-
(Locked)
Use targetcli1m 37s
-
(Locked)
Backup and recovery strategies6m 14s
-
(Locked)
Use backup tools5m 8s
-
(Locked)
Assemble partitions as RAID devices4m 27s
-
(Locked)
Linux file system features and flags6m 38s
-
(Locked)
Configure file system features and flags4m 55s
-
(Locked)
Challenge: Swap space, rsync, and RAID1m 1s
-
(Locked)
Solution: Swap space, rsync, and RAID3m 44s
-
(Locked)
-
-