I think the cache should be automatically wiped, if version mismatch is detected.
Announcement
Collapse
No announcement yet.
Mesa's Shader Cache Will Now Occupy Less Disk Space
Collapse
X
-
Originally posted by GI_Jack View PostAm I the only one that things that disk caching is a really bad idea. Or mabey its for people still using HDDs with very limited drive bandwith, or that hard drives, and especially solid state drives have limited lives and this might thrash a disk or two?
Comment
-
Originally posted by eydee View Post
An SSD can survive for decades before it wears out. Let's be pessimistic and say using a disk cache will decrease it's life span from 30 years to 29 years. Will you be using your SSD in 29 years? Will you be even able to connect it to motherboards then? Will it not break for some other reason a lot sooner?
- Likes 1
Comment
-
Originally posted by Nille_kungen View PostThe very first SSD had those problems but now it's a thing from the past that many think still is present.
I do think 5% is very much, if i have an 3TB hdd then 5% is to much and it should have an max limit rather the %.
I haven't played with shader cache and don't know how much it will use and how fast, i only thought 5% can be a very vast amount och space.
Comment
-
Originally posted by starshipeleven View PostAFAIK this is already happening.
For example, OpenGL 32-bit, OpenGL 64-bit, Nine, etc. might all have different versions associated with them and you don't want to wipe out your 64-bit cache just because you launched a 32-bit game.
They do delete old entries first once the max cache size is hit, so the old cache from older versions would get removed eventually that way.
Comment
-
Originally posted by smitty3268 View PostI don't think it is, because of all the different libs sharing the same cache, right? Or did they fix it?
For example, OpenGL 32-bit, OpenGL 64-bit, Nine, etc. might all have different versions associated with them and you don't want to wipe out your 64-bit cache just because you launched a 32-bit game.
They do delete old entries first once the max cache size is hit, so the old cache from older versions would get removed eventually that way.
What I meant above is that the cached stuff becomes invalid if there is a Mesa version mismatch (like after you updated Mesa).
Comment
-
Originally posted by Marc Driftmeyer View Post
Seriously? Some games can install hundreds upon hundreds of gigabytes of crap on the drive and you're complaining about 5%?
You do understand that 5% can be over hundred gigabytes, what is 5% of an 3TB hdd that was used as an example in the post you quoted?
There has been another article posted on phoronix about 1GB cache limit.
Last edited by Nille_kungen; 28 April 2017, 05:12 AM.
Comment
Comment