Cache data suddenly drops from disk
Categories
(Core :: Networking: Cache, defect)
Tracking
()
People
(Reporter: td44.ringo.apple, Unassigned)
Details
(Whiteboard: [necko-triaged])
Attachments
(7 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0
Steps to reproduce:
I use cache disk with browser.cache.disk.smart_size.enabled = false and browser.cache.disk.capacity = 2,000,000 from before.
In addition to this, change default value of network.buffer.cache.count or network.buffer.cache.size count, cause drops cache data from disk at a certain timing.
Actual results:
"Storage in use: " grows up to a certain level, but suddenly drops cache data to bellow 30MB.
Expected results:
browser.cache.disk.smart_size.enabled = false and network.buffer.cache.count or network.buffer.cache.size is not default value, keep cache data to "Maximum storage size: ".
Updated•2 months ago
|
Comment 1•2 months ago
|
||
Thank you for reporting this bug.
Please note that the prefs network.buffer.cache.count
and network.buffer.cache.size
has nothing to do with cache configuration.
Kindly check the comment here.
If you dont alter network.buffer.cache.count
and network.buffer.cache.size
prefs do you see the problem?
Updated•2 months ago
|
Reporter | ||
Comment 2•2 months ago
|
||
Thank you for your support.
Please note that the prefs network.buffer.cache.count and network.buffer.cache.size has nothing to do with cache configuration.
Yes, I think so too. But for some reason it happenes.
By the way, the source code you suggest me seems different from current default value.
network.buffer.cache.size = 32768
#208 uint32_t nsIOService::gDefaultSegmentSize = 4096;
If you dont alter network.buffer.cache.count and network.buffer.cache.size prefs do you see the problem?
I noticed that these settings cause same probrem.
browser.cache.disk.smart_size.enabled = false
browser.cache.disk.metadata_memory_limit = 8192
network.buffer.cache.count = 24(default value)
network.buffer.cache.size = 32768(default value)
Reporter | ||
Comment 3•2 months ago
|
||
before it
Reporter | ||
Comment 4•2 months ago
|
||
after it
Reporter | ||
Comment 5•2 months ago
|
||
It reproduced by these settings.
browser.cache.disk.smart_size.enabled = true(default value)
browser.cache.disk.metadata_memory_limit = 250(default value)
network.buffer.cache.count = 24(default value)
network.buffer.cache.size = 32768(default value)
I added two screenshots.
- 21-02-17 grow cahce data to disk
- 22-05-46 drop cache data from disk
Comment 6•2 months ago
|
||
(In reply to Grey Orion from comment #5)
It reproduced by these settings.
browser.cache.disk.smart_size.enabled = true(default value)
browser.cache.disk.metadata_memory_limit = 250(default value)
network.buffer.cache.count = 24(default value)
network.buffer.cache.size = 32768(default value)
I added two screenshots.
- 21-02-17 grow cahce data to disk
- 22-05-46 drop cache data from disk
Sorry that I still don't understand how to reproduce this issue.
Could you explain the steps in detail again?
Thanks.
Reporter | ||
Comment 7•2 months ago
|
||
Result of "about:cache?storage=disk" at 2024-12-31 06:21:01
- Number of entries: 10410
- Storage in use: 1252868 KiB
About an hour has passed since Firefox was started.
Reporter | ||
Comment 8•2 months ago
|
||
Result of "about:cache?storage=disk" at 2024-12-31 08:05:56.
- Number of entries: 4046
- Storage in use: 419282 KiB
Firefox has been running for about 2 hours without stopping.
Reporter | ||
Comment 9•2 months ago
|
||
I attaced two files. Those are result of "about:cache?storage=disk".
I'm not doing anything special, I just occasionally check about:cache without stopping Firefox.
(Points of concern #1)
line 904 of Network Cache Storage Information1.html
Data size: 16413449 bytes
expires: 2024-12-31 08:09:11
This cache data is kept to line 33575 of Network Cache Storage Information2.html
(Points of concern #2)
line 45845 of Network Cache Storage Information1.html
Data size: 1890 bytes
expires: 2024-12-31 08:11:53
This cache data seems dropped from cache.
It seems don't related to any options. I supporsed browser.cache.frecency_half_life_hours
is handling expiration of cache data, but some cache data seems to have been deleted before the expiry date.
Comment 10•2 months ago
|
||
Please note that Firefox is designed to respect the cache-control headers, including the age directive, to manage cache entries.
Based on the information provided, it's difficult to determine whether Firefox is behaving incorrectly regarding cache management. Therefore, I will close this bug as incomplete for now. Please feel free to reopen it with more details if you observe that Firefox's behavior does not align with the cache specifications.
Reporter | ||
Comment 11•2 months ago
|
||
Firefox ESR #1
Reporter | ||
Comment 12•2 months ago
|
||
Firefox ESR #2
Reporter | ||
Comment 13•2 months ago
|
||
Firefox ESR #3
Reporter | ||
Comment 14•2 months ago
|
||
I tried Firefox ESR 128.6.0.
The behaivier of cache data control seems different clearly.
Below is a comparison of cache usage over time.
(I added three screenshot files, when I use Firefox ESR)
Firefox ESR 128.6.0
2025-01-10 07:38:30 1606866 KiB
2025-01-11 08:21:05 1999992 KiB
2025-01-11 19:38:41 1999760 KiB
Firefox 133.0.3
2024-12-25 21:02:17 978059 KiB
2024-12-25 22:05:46 6886 KiB
Looking at these results, it seems that the cache control logic has changed since Firefox 129 or later. Is this correct?
Description
•