Closed
Bug 990463
Opened 11 years ago
Closed 11 years ago
[OPEN II_1.3]MSM8x10 256MB memory optimization issue
Categories
(Firefox OS Graveyard :: Performance, defect, P3)
Tracking
(tracking-b2g:backlog)
People
(Reporter: duan.xiaodong, Unassigned)
Details
(Keywords: perf, Whiteboard: [c=memory p= s=2014.08.01.t u=])
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C; .NET4.0E; Zune 4.7; Tablet PC 2.0; TCO_20140401091932)
Steps to reproduce:
1.Launch 3 3rd-party applications on 256MB MSM8x10 FFOS1.3 platform
[1]Loqui IM
[2]wallpaper wonderful
[3]line
2.Find above applications will be killed during low memory state.The kernel log is as below.
<6>[03-11 07:09:27.199] zram: Error allocating memory for compressed page: 1239, size=4096
<1>[03-11 07:09:27.199] Write-error on swap-device (253:0:9912)
<6>[03-11 07:09:27.595] send sigkill to 29518 (Loqui IM), adj 667, size 3053
<6>[03-11 07:09:31.434] zram: Error allocating memory for compressed page: 18000, size=4096
<1>[03-11 07:09:31.434] Write-error on swap-device (253:0:144000)
<6>[03-11 07:09:31.554] send sigkill to 31294 ((Preallocated a), adj 667, size 737
<6>[03-11 07:09:32.437] zram: Error allocating memory for compressed page: 18585, size=3362
<1>[03-11 07:09:32.437] Write-error on swap-device (253:0:148680)
<6>[03-11 07:09:32.499] send sigkill to 29440 (Homescreen), adj 534, size 697
<4>[03-11 07:09:32.503] Binder_2: page allocation failure: order:0, mode:0x20
<6>[03-11 07:09:32.509] [<c00134f8>] (unwind_backtrace+0x0/0xe0) from [<c010690c>] (warn_alloc_failed+0xf4/0x11c)
<6>[03-11 07:09:32.509] [<c010690c>] (warn_alloc_failed+0xf4/0x11c) from [<c0109bc8>] (__alloc_pages_nodemask+0x740/0x854)
<6>[03-11 07:09:32.509] [<c0109bc8>] (__alloc_pages_nodemask+0x740/0x854) from [<c0136730>] (new_slab+0x88/0x1e8)
<6>[03-11 07:09:32.509] [<c0136730>] (new_slab+0x88/0x1e8) from [<c069c908>] (__slab_alloc.isra.45.constprop.50+0x48c/0x4b4)
<6>[03-11 07:09:32.509] [<c069c908>] (__slab_alloc.isra.45.constprop.50+0x48c/0x4b4) from [<c0136ac4>] (kmem_cache_alloc_trace+0x74/0x1c4)
<6>[03-11 07:09:32.509] [<c0136ac4>] (kmem_cache_alloc_trace+0x74/0x1c4) from [<c04a3164>] (zram_slot_free_notify+0x50/0x94)
<6>[03-11 07:09:32.509] [<c04a3164>] (zram_slot_free_notify+0x50/0x94) from [<c013042c>] (swap_entry_free+0x160/0x170)
<6>[03-11 07:09:32.509] [<c013042c>] (swap_entry_free+0x160/0x170) from [<c0131ef0>] (free_swap_and_cache+0x28/0xec)
<6>[03-11 07:09:32.509] [<c0131ef0>] (free_swap_and_cache+0x28/0xec) from [<c012222c>] (unmap_single_vma+0x3f0/0x5b4)
<6>[03-11 07:09:32.509] [<c012222c>] (unmap_single_vma+0x3f0/0x5b4) from [<c0122c64>] (unmap_vmas+0x38/0x54)
<6>[03-11 07:09:32.509] [<c0122c64>] (unmap_vmas+0x38/0x54) from [<c0126ad4>] (exit_mmap+0xd0/0x1d0)
<6>[03-11 07:09:32.509] [<c0126ad4>] (exit_mmap+0xd0/0x1d0) from [<c0078858>] (mmput+0x50/0x100)
<6>[03-11 07:09:32.509] [<c0078858>] (mmput+0x50/0x100) from [<c007d004>] (exit_mm+0x110/0x128)
<6>[03-11 07:09:32.509] [<c007d004>] (exit_mm+0x110/0x128) from [<c007e7f8>] (do_exit+0x214/0x7e4)
<6>[03-11 07:09:32.509] [<c007e7f8>] (do_exit+0x214/0x7e4) from [<c007f074>] (do_group_exit+0x84/0xc0)
<6>[03-11 07:09:32.509] [<c007f074>] (do_group_exit+0x84/0xc0) from [<c008bfc4>] (get_signal_to_deliver+0x4c8/0x53c)
<6>[03-11 07:09:32.509] [<c008bfc4>] (get_signal_to_deliver+0x4c8/0x53c) from [<c0010430>] (do_signal+0xc0/0x4d4)
<6>[03-11 07:09:32.509] [<c0010430>] (do_signal+0xc0/0x4d4) from [<c0010cbc>] (do_notify_resume+0x18/0x50)
<6>[03-11 07:09:32.509] [<c0010cbc>] (do_notify_resume+0x18/0x50) from [<c000d8d8>] (work_pending+0x24/0x28)
<6>[03-11 07:10:54.130] send sigkill to 31548 (Loqui IM), adj 734, size 242
<6>[03-11 07:11:14.856] zram: Error allocating memory for compressed page: 37150, size=3471
<1>[03-11 07:11:14.856] Write-error on swap-device (253:0:297200)
<6>[03-11 07:11:15.411] send sigkill to 32335 ((Preallocated a), adj 667, size 759
<6>[03-11 07:11:15.439] send sigkill to 31432 (Whatsap en Fire), adj 667, size 690
<6>[03-11 07:11:16.175] zram: Error allocating memory for compressed page: 44520, size=3131
<1>[03-11 07:11:16.175] Write-error on swap-device (253:0:356160)
<6>[03-11 07:11:16.300] send sigkill to 31339 (Homescreen), adj 534, size 851
<6>[03-11 07:11:16.510] send sigkill to 31824 (Wallpaper Wonde), adj 134, size 2362
Actual results:
Forground applications can't start up and be killed by oom killer due to low memory on 256M FFOS1.3 platform. Is there any other vendors use 256MB memory on MSM8x10 platfrom with FFOS1.3 and how much free memory their devices have?
Does mozilla enable Nuwa process on latest baseline and how much memory save?
There are about 56MB free memory on our OPEN II device when ffos boot to idle screen using AU272 (mesuare command:adb shell /proc/meminfo).
Expected results:
Is there any other methods to optimize and get more free memory or give user a prompt box before killing these applications to enhance UI experience?
| Reporter | ||
Updated•11 years ago
|
Severity: normal → critical
OS: All → Gonk (Firefox OS)
| Reporter | ||
Updated•11 years ago
|
Hardware: All → ARM
| Reporter | ||
Updated•11 years ago
|
blocking-b2g: --- → 1.3T?
Updated•11 years ago
|
blocking-b2g: 1.3? → backlog
| Reporter | ||
Comment 2•11 years ago
|
||
Yes, On ffos 1.3 platform.
(In reply to Duan Xiaodong from comment #2)
> Yes, On ffos 1.3 platform.
Hi XiaoDong -
Long time no see~ we have co-worked together before Chinese New Year this year, hope you still remember me~ Could you provide me the complete information of adb shell /proc/meminfo?
Also what just wondering what is the current watermark of the LMK in your codebase?
Thanks
Vance
Flags: needinfo?(duan.xiaodong)
| Reporter | ||
Comment 4•11 years ago
|
||
Hi Vance,
Nice to see you again! The below infomation is what you need(adb shell cat /proc/meminfo).
------------------------------------------------------------
MemTotal: 178712 kB
MemFree: 30204 kB
Buffers: 756 kB
Cached: 28176 kB
SwapCached: 1144 kB
Active: 47536 kB
Inactive: 41324 kB
Active(anon): 31076 kB
Inactive(anon): 30556 kB
Active(file): 16460 kB
Inactive(file): 10768 kB
Unevictable: 1668 kB
Mlocked: 0 kB
SwapTotal: 196604 kB
SwapFree: 167808 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 61616 kB
Mapped: 20816 kB
Shmem: 36 kB
Slab: 18672 kB
SReclaimable: 6244 kB
SUnreclaim: 12428 kB
KernelStack: 3024 kB
PageTables: 1820 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 285960 kB
Committed_AS: 184108 kB
VmallocTotal: 761856 kB
VmallocUsed: 3396 kB
VmallocChunk: 674964 kB
Our code base on AU272.
Thanks,
Xiaodong
Flags: needinfo?(duan.xiaodong)
Updated•11 years ago
|
Hey Vance,
Is this still an issue we need to be concerned about? It seems like it has had no activity for some time.
Flags: needinfo?(vchen)
Whiteboard: [c=memory p= s= u=] [MemShrink] → [c=memory p= s= u=]
Hi Kyle,
We already help ZTE improved the performance for the 256 MB configuration, we can close this one now
Thanks
Flags: needinfo?(vchen)
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Updated•11 years ago
|
Whiteboard: [c=memory p= s= u=] → [c=memory p= s=2014.08.01.t u=]
Updated•11 years ago
|
Target Milestone: --- → 2.1 S1 (1aug)
| Assignee | ||
Updated•10 years ago
|
blocking-b2g: backlog → ---
tracking-b2g:
--- → backlog
You need to log in
before you can comment on or make changes to this bug.
Description
•