Jump to content

From where the high cache usage is coming?


Recommended Posts

Hello after around two days my cache runs out of space. And I have no idea what it could be. The cache are two 120GB SDD's which are connected to a PCI-E SATA Card JMB363 and run RIAD 1 btrfs. I hope someone can help me ^^.

 

Full Cache:

 image.png.acec1109595fdd9b223caa0bcd389c3a.png

 

Then I run the btrfs defragmentation (btrfs filesystem defragment -rvf /mnt/cache) and all is good for the next two days.

image.png.02f5d5ce1d90d96d0e9cbd77f23b7e7b.png

 

Two more screenshots:

 

Before defragmentation:                                                                                                        

image.png.99d06b13b07678f5fc6b46dda3e856a3.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

After defragmentation:

image.png.041ddfa2cc38ce289f319951ef0869fb.png

Edited by RichardIstSauer
Link to comment
5 hours ago, JorgeB said:

but if the free space keeps getting lower without writing new files

Yes the data grow's around 100MB per hour.

 

5 hours ago, JorgeB said:

usually lack of discard on vdisks, see here for Windows VMs

The only VM I use is based on Qcow2 Home Assistant Image. Could this be the cause for the growing cache space usage?

 

Link to comment
  • 2 weeks later...

I added the discard parameter and the fstrim linux service at the vm. But it not changed so much. I had an disk usage at 90GB then I started the fstrim service manually and then only 80GB were used. But that also was too much so I ran the btrfs defragmentation "btrfs filesystem defragment -rvf /mnt/cache" and then the disk usage was only 64GB. 

 

 image.thumb.png.d0fc088b40e05aec3490c4a2f4da9f83.pngimage.png.db7cac08813785f525592668fc76bdbf.png

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...