From the course: Linux Tips
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Read and write caches - Linux Tutorial
From the course: Linux Tips
Read and write caches
- [Instructor] Saving files to disk is a reasonably quick operation, though for some media, especially magnetic hard drives and slower flash memory as we find in USB thumb drives and SD cards, the time required to save a file especially if it's large, can be significant. That means that saving a file can seem slow as we wait for an operation to finish before we can move on and do other things. In order to avoid this slowness many systems do something a little bit sneaky. They don't actually write the data to the disk immediately and instead they keep it in a write cache in memory. Ordinarily the system will write the data to disk after a while or when the write cache starts to fill up. But we can force the process using the sync command. A write cache in addition to freeing the system up to move on to other tasks instead of waiting for synchronous writes to disk helps to reduce the wear on solid state drives by reducing…
Contents
-
-
-
-
System basics: The Linux file system6m 35s
-
(Locked)
System basics: The command line5m 23s
-
(Locked)
System basics: Keyboard shortcuts1m 40s
-
(Locked)
System basics: sudo access and root4m 57s
-
(Locked)
System basics: Explore a system4m 38s
-
(Locked)
System basics: Exploring Bash7m
-
(Locked)
System basics: Bash scripting basics4m 59s
-
(Locked)
System basics: The Bash prompt6m 2s
-
(Locked)
System basics: Bash output redirection4m 57s
-
(Locked)
Bash expansions and substitutions4m 23s
-
Bash aliases and functions4m 7s
-
(Locked)
Bash operators6m 55s
-
Logs5m 4s
-
(Locked)
Grub3m 19s
-
(Locked)
SysV init4m 43s
-
(Locked)
Systemd5m 29s
-
(Locked)
Cron8m 7s
-
(Locked)
Understanding chroot3m 16s
-
(Locked)
System basics: User and group management8m 39s
-
(Locked)
System basics: Service management3m 44s
-
(Locked)
Backing up data with rsync5m 35s
-
(Locked)
Splitting and combining files3m 3s
-
(Locked)
Environment configuration files2m 43s
-
(Locked)
Working with dotfiles1m 43s
-
(Locked)
Exploring the PATH variable3m 51s
-
(Locked)
Browsing with the directory stack3m 19s
-
(Locked)
Finding or locating files3m 52s
-
(Locked)
Working with swap4m 29s
-
(Locked)
Read and write caches3m 5s
-
(Locked)
Terminals, consoles, and TTYs4m 27s
-
(Locked)
Exploring journalctl5m 2s
-
-
-
-
-
-
-
-
-
-
-
-