Closed Bug 1059393 Opened 11 years ago Closed 11 years ago

Investigate reducing the power consumption by pushing SafeBrowsing updates

Categories

(Toolkit :: Safe Browsing, defect, P5)

All
Android
defect

Tracking

()

RESOLVED WONTFIX
Tracking Status
fennec + ---

People

(Reporter: blassey, Assigned: gcp)

References

Details

Attachments

(2 files)

gcp and I discussed the possibility of using push.
Need to let a Firefox run for 1-2 days and log all updates, then process the log and see how often there were no updates in the 30-45 minute update window, so where we effectively went online and did an update check for nothing.
Blocks: powah
See also Bug 1031160. Is this something that should be limited to Android, or is it applicable for desktop, too?
OS: Mac OS X → Android
Hardware: x86 → All
blassey's proposal would be applicable to desktop too.
Component: General → Phishing Protection
Product: Firefox for Android → Toolkit
tracking-fennec: ? → +
filter on [mass-p5]
Priority: -- → P5
Attached file safebrowsing.txt.gz
Logfile of about 2.5 days of updates.
Attached file sbparse.py
Simple analysis script
The outcome of running the analysis script on the logs is...that every single 30 minute spaced update ends up downloading data and update the database: Update at 2014-11-12 12:31:26.278252 delay 0 minutes, 0 bytes Update at 2014-11-12 13:00:10.622261 delay 28 minutes, 3808 bytes Update at 2014-11-12 13:30:00.267559 delay 29 minutes, 3599 bytes Update at 2014-11-12 14:00:37.050257 delay 30 minutes, 7378 bytes Update at 2014-11-12 14:30:10.815466 delay 29 minutes, 8192 bytes Update at 2014-11-12 15:00:52.971238 delay 30 minutes, 12738 bytes Update at 2014-11-12 15:30:03.718076 delay 29 minutes, 4296 bytes Update at 2014-11-12 16:01:52.435503 delay 31 minutes, 5837 bytes Update at 2014-11-12 16:32:39.152793 delay 30 minutes, 5719 bytes Update at 2014-11-12 17:00:39.871105 delay 28 minutes, 5680 bytes Update at 2014-11-12 17:31:37.942764 delay 30 minutes, 4733 bytes Update at 2014-11-12 18:02:02.597752 delay 30 minutes, 6728 bytes Update at 2014-11-12 18:31:31.255913 delay 29 minutes, 4305 bytes Update at 2014-11-12 19:03:21.968364 delay 31 minutes, 6622 bytes Update at 2014-11-12 19:31:47.678387 delay 28 minutes, 5897 bytes Update at 2014-11-12 20:01:59.359068 delay 30 minutes, 4053 bytes Update at 2014-11-12 20:31:09.078595 delay 29 minutes, 3874 bytes Update at 2014-11-12 21:02:23.771388 delay 31 minutes, 5189 bytes Update at 2014-11-12 21:31:08.463747 delay 28 minutes, 3882 bytes Update at 2014-11-12 22:01:59.138444 delay 30 minutes, 4636 bytes Update at 2014-11-12 22:32:47.840446 delay 30 minutes, 8109 bytes Update at 2014-11-12 23:03:18.519815 delay 30 minutes, 11157 bytes Update at 2014-11-12 23:35:09.230081 delay 31 minutes, 13168 bytes Update at 2014-11-13 00:04:15.901222 delay 29 minutes, 8591 bytes Update at 2014-11-13 00:32:50.578565 delay 28 minutes, 16622 bytes Update at 2014-11-13 01:03:03.304404 delay 30 minutes, 56487 bytes Update at 2014-11-13 01:34:26.073013 delay 31 minutes, 12928 bytes Update at 2014-11-13 02:03:24.756840 delay 28 minutes, 7112 bytes Update at 2014-11-13 02:34:57.439494 delay 31 minutes, 8464 bytes Update at 2014-11-13 03:04:56.200627 delay 29 minutes, 6700 bytes Update at 2014-11-13 03:33:13.918090 delay 28 minutes, 7248 bytes Update at 2014-11-13 04:03:37.625108 delay 30 minutes, 11771 bytes Update at 2014-11-13 04:34:13.331620 delay 30 minutes, 6744 bytes Update at 2014-11-13 05:05:03.067462 delay 30 minutes, 5794 bytes Update at 2014-11-13 05:36:35.772569 delay 31 minutes, 5594 bytes Update at 2014-11-13 06:06:50.478707 delay 30 minutes, 5366 bytes Update at 2014-11-13 06:35:41.176673 delay 28 minutes, 3189 bytes Update at 2014-11-13 07:04:39.868136 delay 28 minutes, 3803 bytes Update at 2014-11-13 07:36:24.566616 delay 31 minutes, 5876 bytes Update at 2014-11-13 08:08:02.299993 delay 31 minutes, 3515 bytes Update at 2014-11-13 08:38:58.996585 delay 30 minutes, 3083 bytes Update at 2014-11-13 09:09:12.692861 delay 30 minutes, 6028 bytes Update at 2014-11-13 09:38:18.421405 delay 29 minutes, 5329 bytes Update at 2014-11-13 10:10:07.139587 delay 31 minutes, 4538 bytes Update at 2014-11-13 10:38:38.816951 delay 28 minutes, 3809 bytes Update at 2014-11-13 11:09:19.530012 delay 30 minutes, 5438 bytes Update at 2014-11-13 11:37:46.226775 delay 28 minutes, 5906 bytes Update at 2014-11-13 12:08:50.936138 delay 31 minutes, 501 bytes (400 BAD HTTP response!) Update at 2014-11-13 12:41:30.295536 delay 32 minutes, 4465 bytes Update at 2014-11-13 13:11:55.337842 delay 30 minutes, 4299 bytes Update at 2014-11-13 13:41:38.380257 delay 29 minutes, 7013 bytes Update at 2014-11-13 14:10:44.089349 delay 29 minutes, 5291 bytes Update at 2014-11-13 14:40:55.795034 delay 30 minutes, 3805 bytes Update at 2014-11-13 15:11:55.467579 delay 30 minutes, 5576 bytes Update at 2014-11-13 15:42:51.182854 delay 30 minutes, 3999 bytes Update at 2014-11-13 16:13:44.852820 delay 30 minutes, 5684 bytes Update at 2014-11-13 16:44:14.542382 delay 30 minutes, 4082 bytes Update at 2014-11-13 17:12:32.237657 delay 28 minutes, 4586 bytes Update at 2014-11-13 17:41:15.916816 delay 28 minutes, 5042 bytes Update at 2014-11-13 18:10:48.592400 delay 29 minutes, 7498 bytes Update at 2014-11-13 18:40:40.345257 delay 29 minutes, 4309 bytes Update at 2014-11-13 19:11:35.299340 delay 30 minutes, 6167 bytes Update at 2014-11-13 19:40:21.030640 delay 28 minutes, 10161 bytes Update at 2014-11-13 20:11:34.730640 delay 31 minutes, 6663 bytes Update at 2014-11-13 20:40:34.452115 delay 28 minutes, 6038 bytes Update at 2014-11-13 21:11:44.427703 delay 31 minutes, 6720 bytes Update at 2014-11-13 21:42:35.180463 delay 30 minutes, 8527 bytes Update at 2014-11-13 22:10:42.236734 delay 28 minutes, 10134 bytes Update at 2014-11-13 22:41:15.959404 delay 30 minutes, 10719 bytes Update at 2014-11-13 23:09:35.671516 delay 28 minutes, 6006 bytes Update at 2014-11-13 23:40:13.504883 delay 30 minutes, 4947 bytes Update at 2014-11-14 00:09:09.206932 delay 28 minutes, 4478 bytes Update at 2014-11-14 00:39:14.892675 delay 30 minutes, 5124 bytes Update at 2014-11-14 01:11:00.561887 delay 31 minutes, 7419 bytes Update at 2014-11-14 01:41:54.248844 delay 30 minutes, 14445 bytes Update at 2014-11-14 02:11:17.948649 delay 29 minutes, 14445 bytes Update at 2014-11-14 02:41:48.662465 delay 30 minutes, 13009 bytes Update at 2014-11-14 03:13:13.361265 delay 31 minutes, 6521 bytes Update at 2014-11-14 03:43:35.060503 delay 30 minutes, 4376 bytes Update at 2014-11-14 04:14:37.755287 delay 31 minutes, 4943 bytes Update at 2014-11-14 04:44:39.474470 delay 30 minutes, 4410 bytes Update at 2014-11-14 05:16:33.189067 delay 31 minutes, 3554 bytes Update at 2014-11-14 05:45:07.141309 delay 28 minutes, 2844 bytes Update at 2014-11-14 06:15:29.830836 delay 30 minutes, 4283 bytes Update at 2014-11-14 06:45:21.736481 delay 29 minutes, 3663 bytes Update at 2014-11-14 07:15:51.617480 delay 30 minutes, 5457 bytes Update at 2014-11-14 07:46:43.321854 delay 30 minutes, 4721 bytes Update at 2014-11-14 08:17:11.032875 delay 30 minutes, 5358 bytes Update at 2014-11-14 08:47:29.735573 delay 30 minutes, 6204 bytes Update at 2014-11-14 09:17:49.402552 delay 30 minutes, 5121 bytes So there's nothing to gain in battery use just by using push here.
Closing this bug. We can open new ones for new ideas.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Summary: Investigate reducing the power consumption due to SafeBrowsing → Investigate reducing the power consumption by pushing SafeBrowsing updates
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: