Remove All Ads from XDA

Decreasing RAM allocated to user?

933 posts
Thanks Meter: 1,301
By Codename13, Senior Member on 5th June 2014, 11:54 PM
Post Reply Email Thread
A serious question: I have a low-end device (single-core 1 GHz CPU) that has 768 MB RAM in total. However, only 645 MB out of the 768 MB is available to the user (the rest is used for the system). I previously tried increasing the RAM allocated to the user from 645 MB to 660 MB, but it caused a lot of lag and instability. That convinces me that if I was to increase the RAM allocated to the system (which would result in decreasing the RAM allocated to the user), would there be less lag? Would decreasing the user RAM cause any issues? Of course, the best thing is for me to try it out first, but I want to hear some opinions on what I'm thinking. If 645 MB of RAM is available to the user with stock RAM tunings, then that means there is about 123 MB of RAM allocated to the system. Below is the current code for the RAM allocating stuff from my device's board file in the kernel source. Note that my device has CONFIG_ARCH_MSM7X27A and CONFIG_MACH_KYLE and CONFIG_FB_MSM_TRIPLE_BUFFER enabled in its defconfig:

#define MSM_PMEM_MDP_SIZE 0x2300000
#if defined(CONFIG_MACH_KYLE)
#define MSM_PMEM_ADSP_SIZE 0x1200000
#define MSM_PMEM_ADSP_SIZE 0x1100000
/* prim = 320 x 480 x 4(bpp) x 3(pages) */
#define MSM_FB_SIZE (800 * 480 * 4 * 3)
/* prim = 320 x 480 x 4(bpp) x 2(pages) */
#define MSM_FB_SIZE (800 * 480 * 4 * 2)
#define MSM_PMEM_MDP_SIZE 0x1DD1000
#define MSM_PMEM_ADSP_SIZE 0x1000000
#define MSM_FB_SIZE 0x195000
#endif /* CONFIG_ARCH_MSM7X27A */

Thank you to whoever gives me some insight
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes