Dear all,
We run Andorid4.4.3 on an SABRE board.
We want to know the initial value of heap size set in Andorid4.4.3_BSP
May I have information about an initial value of heap size?
Best Regards,
Yuuki
Dear Yuri-san,
While application processes an image, there is the case that heap size is expanded.
05-26 16:42:36.090 I/dalvikvm-heap( 601): Grow heap (frag case) to 6.247MB for 2849296-byte allocation
We understand that Andorid_BSP decides this heap size.
When our understanding is correct,
Is there the method to confirm an initial value of this heap?
Is there the method to change the value of this heap?
Best Regards,
Yuuki
Dear all,
Would you tell the method to change heap size?
Best Regards,
Yuuki
We don't about the heap size here.
It is a process heap size or Linux heap size.
Linux has Virtual memory, We really don't understand your use case.
You can check the /proc/sys/vm in Linux.
The following show you the PID 2305 vold memory maps including heap.
root@sabresd_6dq:/proc # cat /proc/2305/maps
40033000-4003f000 r--s 00000000 00:0c 3080 /dev/__properties__
40072000-40084000 r-xp 00000000 b3:1d 276 /system/bin/vold
40084000-40085000 r--p 00011000 b3:1d 276 /system/bin/vold
40085000-40086000 rw-p 00012000 b3:1d 276 /system/bin/vold
40093000-40094000 r--p 00000000 00:00 0
4009f000-400a0000 r--p 00000000 00:00 0
400b1000-400b6000 r-xp 00000000 b3:1d 851 /system/lib/libnetutils.so
400b6000-400b7000 r--p 00004000 b3:1d 851 /system/lib/libnetutils.so
400b7000-400b8000 rw-p 00005000 b3:1d 851 /system/lib/libnetutils.so
400f2000-400f3000 r-xp 00000000 b3:1d 902 /system/lib/libstdc++.so
400f3000-400f4000 r--p 00000000 b3:1d 902 /system/lib/libstdc++.so
400f4000-400f5000 rw-p 00001000 b3:1d 902 /system/lib/libstdc++.so
400f5000-4010d000 r-xp 00000000 b3:1d 841 /system/lib/libm.so
4010d000-4010e000 r--p 00017000 b3:1d 841 /system/lib/libm.so
4010e000-4010f000 rw-p 00018000 b3:1d 841 /system/lib/libm.so
4010f000-40111000 r-xp 00000000 b3:1d 840 /system/lib/liblogwrap.so
40111000-40112000 r--p 00001000 b3:1d 840 /system/lib/liblogwrap.so
40112000-40113000 rw-p 00002000 b3:1d 840 /system/lib/liblogwrap.so
40113000-40117000 r-xp 00000000 b3:1d 909 /system/lib/libsysutils.so
40117000-40118000 ---p 00000000 00:00 0
40118000-40119000 r--p 00004000 b3:1d 909 /system/lib/libsysutils.so
40119000-4011a000 rw-p 00005000 b3:1d 909 /system/lib/libsysutils.so
4011a000-4011d000 r-xp 00000000 b3:1d 791 /system/lib/libdiskconfig.so
4011d000-4011e000 r--p 00002000 b3:1d 791 /system/lib/libdiskconfig.so
4011e000-4011f000 rw-p 00003000 b3:1d 791 /system/lib/libdiskconfig.so
40124000-40133000 r-xp 00000000 b3:1d 184 /system/bin/linker
40133000-40134000 r--p 0000e000 b3:1d 184 /system/bin/linker
40134000-40135000 rw-p 0000f000 b3:1d 184 /system/bin/linker
40135000-40136000 rw-p 00000000 00:00 0
40136000-40142000 r-xp 00000000 b3:1d 789 /system/lib/libcutils.so
40142000-40143000 r--p 0000b000 b3:1d 789 /system/lib/libcutils.so
40143000-40144000 rw-p 0000c000 b3:1d 789 /system/lib/libcutils.so
40156000-4015b000 r-xp 00000000 b3:1d 821 /system/lib/libhardware_legacy.so
4015b000-4015c000 r--p 00004000 b3:1d 821 /system/lib/libhardware_legacy.so
4015c000-4015d000 rw-p 00005000 b3:1d 821 /system/lib/libhardware_legacy.so
40164000-40167000 r-xp 00000000 b3:1d 839 /system/lib/liblog.so
40167000-40168000 r--p 00002000 b3:1d 839 /system/lib/liblog.so
40168000-40169000 rw-p 00003000 b3:1d 839 /system/lib/liblog.so
40169000-401ae000 r-xp 00000000 b3:1d 776 /system/lib/libc.so
401ae000-401af000 ---p 00000000 00:00 0
401af000-401b1000 r--p 00045000 b3:1d 776 /system/lib/libc.so
401b1000-401b3000 rw-p 00047000 b3:1d 776 /system/lib/libc.so
401b3000-401c1000 rw-p 00000000 00:00 0
401c1000-401c3000 r-xp 00000000 b3:1d 929 /system/lib/libwpa_client.so
401c3000-401c4000 r--p 00001000 b3:1d 929 /system/lib/libwpa_client.so
401c4000-401c5000 rw-p 00002000 b3:1d 929 /system/lib/libwpa_client.so
401c5000-40289000 r-xp 00000000 b3:1d 787 /system/lib/libcrypto.so
40289000-4028a000 ---p 00000000 00:00 0
4028a000-40296000 r--p 000c4000 b3:1d 787 /system/lib/libcrypto.so
40296000-4029c000 rw-p 000d0000 b3:1d 787 /system/lib/libcrypto.so
4029c000-4029e000 rw-p 00000000 00:00 0
4029e000-4029f000 ---p 00000000 00:00 0
4029f000-4039e000 rw-p 00000000 00:00 0
4042f000-40430000 ---p 00000000 00:00 0
40430000-4052f000 rw-p 00000000 00:00 0
40db4000-40dcb000 rw-p 00000000 00:00 0 [heap]
beb19000-beb3a000 rw-p 00000000 00:00 0 [stack]
ffff0000-ffff1000 r-xp 00000000 00:00 0 [vectors]
Dear Biyong-san,
Thank you for your support.
Can we change this heap size optionally?
Best Regards,
Yuuki