Closed Bug 597215 Opened 14 years ago Closed 14 years ago

Don't do setGrowthIncrement on mobile

Categories

(Toolkit :: Storage, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fennec 2.0b2+ ---

People

(Reporter: mwu, Assigned: mwu)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Fix (obsolete) (deleted) — Splinter Review
We don't have enough space to do this.
Attachment #476039 - Flags: review?(bugmail)
(In reply to comment #0) > We don't have enough space to do this. I think it would make more sense to adjust the clients instead of changing the storage code to never follow it though, right?
Comment on attachment 476039 [details] [diff] [review] Fix minusing based on Shawn's comment. Also, ifdefing on a GFX define in the middle of storage code without a comment does not seem right.
Attachment #476039 - Flags: review?(bugmail) → review-
(In reply to comment #1) > (In reply to comment #0) > > We don't have enough space to do this. > I think it would make more sense to adjust the clients instead of changing the > storage code to never follow it though, right? But it's easier to just adjust it here because we care more about minimizing overall space usage than fragmentation on mobile. I would just adjust all the clients to zero anyway.
(In reply to comment #3) > (In reply to comment #1) > But it's easier to just adjust it here because we care more about minimizing > overall space usage than fragmentation on mobile. I would just adjust all the > clients to zero anyway. Are you sure that's the right thing to do? As I understand it (taras would know better), fragmentation hurts mobile way more than anything else.
(In reply to comment #4) > (In reply to comment #3) > > (In reply to comment #1) > > But it's easier to just adjust it here because we care more about minimizing > > overall space usage than fragmentation on mobile. I would just adjust all the > > clients to zero anyway. > Are you sure that's the right thing to do? As I understand it (taras would > know better), fragmentation hurts mobile way more than anything else. In this case, android is extremely constrained in disk space, so eager preallocation is in conflict. I think it'd be nicer to pref this off, but we cn do that in a followup bug.
Attached patch Android only fix (deleted) — Splinter Review
On Android, the use of a log-structured file system most likely negates any positive effects of setGrowthIncrement.
Attachment #476039 - Attachment is obsolete: true
Attachment #477807 - Flags: review?(sdwilsh)
Comment on attachment 477807 [details] [diff] [review] Android only fix >+// Bug 597215: Disk space is extremely limited on Android Hate comments in the code that force you to go to the bug to see reasoning. Please elaborate in the comment, but you can still reference the bug number if you want. r=sdwilsh with that change.
Attachment #477807 - Flags: review?(sdwilsh) → review+
tracking-fennec: --- → ?
tracking-fennec: ? → 2.0b2+
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: