In this video, Kevin Dankwardt discusses the value of swap space. Learn what size should be configured. We configure swap space, enable it, check it, and disable it.
- [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 out to disk…in its dedicated place,…
- Partitioning storage
- Creating, mounting, and unmounting file systems
- Formatting file systems
- Making volumes with LVM
- Adding storage security
- Managing swap spaces
- Backing up and recovering Linux storage systems
- Working with networked file systems like NFS and SSHFS
Skill Level Intermediate
Linux: Bash Shell and Scriptswith Kevin Dankwardt2h 46m Intermediate
Linux: Multitasking at the Command Linewith Scott Simpson39m 1s Intermediate
1. Disk Partitions, Formatting, and Mounting
2. Logical Volume Manager (LVM)
3. Security and Resource Constraints
4. Special Storage Features and Considerations
5. Networked File Systems
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.