bugzilla.mozilla.org will be intermittently unavailable on Saturday, March 24th, from 16:00 until 20:00 UTC.

Make available swap partition on sd by option in Settings



Firefox OS
4 years ago
19 days ago


(Reporter: mac, Unassigned)


Firefox Tracking Flags

(Not tracked)




4 years ago
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0 (Beta/Release)
Build ID: 20131022185104

Steps to reproduce:

Typical scenario (which I did): Left IRC client in background, when open web browser on the phone then IRC client was closed.

Actual results:

FirefoxOS close programs unexpectedly when intention of user is to keep them in background.

Expected results:

There should be option in Settings menu to enable swap partition/file on SD card of a phone. The option should be disabled by default. When try to enable there can be warning that it can decrease performance in some cases. User should be able to decide of the size (changed on the fly or needs reboot to take effect). It can be part of expert mode or something like that.

Comment 1

4 years ago
Yes, there should beoptional swap on SD card especially on phone's like Alcatel One Touch Fire or ZTE Open (256MB RAM). With many applications in background, some apps like IRC client's or active chat in internet browser should be active, but with 256MB RAM there are closed.
Component: General → Gaia::System
Component: Gaia::System → GonkIntegration

Comment 2

4 years ago
example of use on hamachi:

I imagine the security implications of potentially sensitive user data ending up in a swap file on removable storage is one of the larger issues to solve.  While I'm sure technical savvy folks may understand the risks, most of our users would not.
This would be quite useful for investigating OOMs.  If a particular test case triggers an OOM you could enable swap, perform the test, then take a memory report after the point of failure.  Maybe it would be useful to have this in engineering builds.

(By the way, according to dmesg is seems that swap is enabled on the flame...)

Comment 5

4 years ago
But AFAIK Flame has zRAM enabled. Based on my experience with use swap file and zRAM on hamachi (Altactel Fire) I can say that zRAM is less flexible than swapfile. In fact zRAM is limited by RAM when swap is not.

Comment 6

19 days ago
Firefox OS is not being worked on
Last Resolved: 19 days ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.