Open
Bug 707402
Opened 13 years ago
Updated 2 years ago
Add Telemetry for amount of free space available on disk cache device at startup.
Categories
(Core :: Networking: Cache, defect, P5)
Tracking
()
NEW
People
(Reporter: jduell.mcbugs, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-would-take])
Attachments
(1 file)
(deleted),
patch
|
taras.mozilla
:
feedback-
|
Details | Diff | Splinter Review |
Taras: I cut this off at 1 Terabyte, assuming we don't care if we've got more space than that (at least as a proxy to measure disk fragmentation).
Michal: this doesn't measure the case where a user has disabled smart-size cache (i.e. set a max cache size manually). But this is the common case, and piggybacks off us getting the size anyway, so no additional I/O at startup.
Attachment #578804 -
Flags: review?(michal.novotny)
Attachment #578804 -
Flags: feedback?(tglek)
Comment 1•13 years ago
|
||
Comment on attachment 578804 [details] [diff] [review]
v1
I think it would be nicer to report percentage of disk free since a fill rate corresponds better to fs usage.
Attachment #578804 -
Flags: feedback?(tglek) → feedback-
Reporter | ||
Comment 2•13 years ago
|
||
Do we have a (portable) way to get disk space used on a device (or the total size of the device? Either of those plus nsILocalFile.diskAvailableFreeSpace is enough to get the %, but I don't see an API for either.
Summary: Add Telemetry for amount of free space avaiable on disk cache device at startup. → Add Telemetry for amount of free space available on disk cache device at startup.
Comment 3•13 years ago
|
||
Comment on attachment 578804 [details] [diff] [review]
v1
(In reply to Taras Glek (:taras) from comment #1)
> I think it would be nicer to report percentage of disk free since a fill
> rate corresponds better to fs usage.
Why? We use absolute value to determine the cache size, so I think we should report that value.
> + Telemetry::Accumulate(Telemetry::NETWORK_DISK_CACHE_FREE_SPACE_MB,
> + bytesAvailable / (1024*1024));
> +
> return SmartCacheSize((bytesAvailable / 1024) + currentSize);
IMO we should log currentSize as well, or maybe only a sum of both.
Attachment #578804 -
Flags: review?(michal.novotny)
Comment 4•13 years ago
|
||
(In reply to Michal Novotny (:michal) from comment #3)
> Comment on attachment 578804 [details] [diff] [review] [diff] [details] [review]
> v1
>
> (In reply to Taras Glek (:taras) from comment #1)
> > I think it would be nicer to report percentage of disk free since a fill
> > rate corresponds better to fs usage.
>
> Why? We use absolute value to determine the cache size, so I think we should
> report that value.
That value would be useful for cache tuning. However a percentage is more useful for determining fragmentation. Sounds like we should do both.
Updated•9 years ago
|
Whiteboard: [necko-would-take]
Comment 5•7 years ago
|
||
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P5
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•