

I've been thinking about the most interesting way to test out how well my NVMe lvmcache is working out. This sounds a bit like churning, doesn’t it?! This just keeps happening every few weeks. I dump 100 GB of video onto that volume at a time, work on it for a few weeks, then I dump another 100 GB of video. One of those volumes is where I churn through data. The slow volume’s name has been grandfathered in, but the churn volume’s name is rather appropriate. Is lvmcache Effective on a Desktop or Workstation?.Resizing the encrypted root filesystem and juggling everything around felt like too much effort, so I just set up a separate cache on my old Crucial 480 GB SATA SSD. The math says I should have used 300 GB for my operating system and 700 GB for the cache. Feature arguments in use: metadata2 writethrough no_discard_passdown

Read Hit Rate: 50.1% - Write Hit Rate: 3.1% Cache Usage: 85.2% - Metadata Usage: 24.4% LVM cache report of given device /dev/mapper/zaphodvg-churn Cache Policy: stochastic multiqueue (smq) Core arguments in use : migration_threshold 8192 smq 0

Feature arguments in use: metadata2 writeback no_discard_passdown

Read Hit Rate: 66.2% - Write Hit Rate: 56.7% Cache Usage: 99.9% - Metadata Usage: 6.6% LVM cache report of given device /dev/mapper/zaphodvg-slow If we oversimplify the way lvmcache works, and we assume that the cache will be smart enough to always evict the older video files that I won’t be working on in the near future, this only leaves me enough room in cache for a single game.ġ 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 Testing says that the video files I am working on do indeed wind up nearly 100% cached. Quite a few of my Steam games are over 100 GB in size. My lvmcache partition on the NVMe is 300 GB, and I process around 200 GB of video files each month. I did some math a few weeks after setting up my lvmcache. I split my slow storage into two separately cached volumes It sure looks like I won’t run out of write endurance until 10 years after Samsung’s 5-year warranty expires. I am no longer the least bit concerned about wearing out my flash storage. It works well enough to cache all the games that I play, and they load just as fast as they would if they were installed directly on the NVMe. Using lvmcache for Gaming and Video Editing – What I Have Learned So Far.I’ve torn down, rebuilt, or reconfigured the cache at least three times: once when I installed the NVMe drive, once when I split my slow storage volume into two pieces, and again when I replaced the ancient 4 TB drive with a 12 TB drive. I believe I only have good news to report.
