Join Scott Simpson for an in-depth discussion in this video Reconfigure swap space, part of Linux Foundation Cert Prep: Storage Management (Ubuntu).
- [Instructor] RAM is a limited resource,…and so we need to deal with what happens…when the system runs out of it.…Programs that are running consume RAM,…and if we launch something else…and there's no RAM left, what happens?…Typically the system will look at the contents of the RAM…and see what might be stale or lower priority,…and then transfer that information to…a specially designated kind of storage called swap.…Once the information's saved to disk,…the space it took up in memory is cleared,…opening it up for other programs to use.…If the information that was swapped…or paged out to the disk is needed,…the system can bring it back into memory.…
Swap space can be configured either as a file or as…a separate partition on the disk,…and depending on how much memory you have…and how frequently you expect your software…to be fighting for memory space,…you'll need to determine exactly…how much swap space to provide.…A rule of thumb used to be to reserve two times…the amount of RAM in your system for swap,…and that still is probably a good rule…
Join instructor Scott Simpson, as he shows how to manage and optimize file storage on Ubuntu Linux. First, learn how to create, modify, and mount partitions and filesystems, and manage swap space. Scott then combines these basics into more sophisticated solutions using volume management, and shows how to secure Linux storage and configure disk quotas and backup policies.
- Creating and modifying partitions
- Creating, modifying, and mounting filesystems
- Mounting encrypted partitions
- Creating redundant storage with RAID
- Working with physical volumes, volume groups, and logical volumes
- Securing filesystems with ACLs
- Backing up data