• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help How much ram does the Indulge really have

ciper

Android Enthusiast
I find it hard to believe the Indulge has such an odd amount of ram. Running cat /proc/meminfo shows a MemTotal: 301864kB. If you convert that to megabyte its 294.78906 which rounds up to match the 295 shown in task manager.

My issue is that this doesn't seem right. There are no 300mb memory chips available. The closest I know of would be 256+64=320 or perhaps 256+128=384. I know earlier android kernels had an issue addressing over 256mb of ram but the Indulge with 2.2.1 doesnt have this limitation.

Some have speculated that a portion of ram is reserved for the OS. This may be true but how can we uncover this and verify the amount?

Unfortunately any normal application ran in the OS doesnt have hardware access so they will all use the shared function that the task manager is using to show the amount of ram.

I did try to use PS and TOP to figure out the total ram by adding the resident set size but something weird started to happen. Every time I ran either of the tools again the total would increase.

Any ideas?
 
According to online specs, it has 512, but my phone also reports close to 300 mb, which doesnt follow the Power of 2 rule in computing,

If it really does have 512, it could be that some of it is shared for video memory,

thats just an educated guess, dont take it for truth.

Lets research some and find out
 
Some of the online specs say 300 and some say 512. I think they are just guessing to be honest. I want to find a definitive way to prove it.

BTW here is a lovely quote from Samsungs website regarding the Indulge
32GB On Board Memory
from Features and Specifications - Samsung Galaxy Indulge? QWERTY Cell Phone | Samsung Mobile

Here is the link to the Cricket version which also doesnt mention the amount of ram
Features and Specifications - Samsung Indulge? Android Smartphone | Samsung Mobile
 
"32GB On Board Memory"

LOL, Im pretty sure it has 2gb onboard memory >_<



On the ram topic:

On a terminal emulator, the command

$ free

will show you how much ram you have,

My output came out something like:
Total Used Free Shared Buffers
Mem: 301860 299112 2748 0 7740
Swap: 0 0 0
Total: 301860 299112 2748
 
I thought "free" reads from /proc/meminfo

cat /proc/meminfo
MemTotal: 301864 kB
MemFree: 20532 kB
Buffers: 9504 kB
Cached: 99100 kB
SwapCached: 0 kB
Active: 175024 kB
Inactive: 56068 kB
Active(anon): 129588 kB
Inactive(anon): 1420 kB
Active(file): 45436 kB
Inactive(file): 54648 kB
Unevictable: 8148 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 12 kB
Writeback: 0 kB
AnonPages: 130644 kB
Mapped: 56144 kB
Shmem: 372 kB
Slab: 11036 kB
SReclaimable: 3144 kB
SUnreclaim: 7892 kB
KernelStack: 3320 kB
PageTables: 11248 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 150932 kB
Committed_AS: 6747984 kB
VmallocTotal: 319488 kB
VmallocUsed: 69432 kB
VmallocChunk: 210948 kB



Either way I think they are all inaccurate.

Edit: I found where some of it is reserved by the kernel. 120540kb in fact. We now know the indulge has at least 412.5mb ram. Some info to help you understand can be found here http://forum.xda-developers.com/showthread.php?t=816229
Once we get a kernel to compile I bet I can increase the available ram to 312mb (difference of 18432) with everything still working based on endless reading at XDA
CONFIG_VIDEO_SAMSUNG_MEMSIZE_FIMC0=11264
CONFIG_VIDEO_SAMSUNG_MEMSIZE_FIMC2=11264
CONFIG_VIDEO_SAMSUNG_MEMSIZE_MFC0=30720
CONFIG_VIDEO_SAMSUNG_MEMSIZE_MFC1=30720
CONFIG_VIDEO_SAMSUNG_MEMSIZE_TEXSTREAM=6144
 
From Epic:

Code:
log -p i -t init:runtweaks "INIT.runtweaks BEGIN:tweaking RAM parameters"

# Darky's RAM hack -  THANK YOU darkyy and the Darky's ROM team
if [ -e /sys/module/lowmemorykiller/parameters/minfree ]; then
    echo "Modifying minfree parameters"
        echo "2560,4096,6144,17408,19456,23552" > /sys/module/lowmemorykiller/parameters/minfree
    else
        echo "minfree not found"
fi

log -p i -t init:runtweaks "INIT.runtweaks END:tweaking RAM parameters"

From Indulge:
Code:
# Darky's RAM hack removed - thomasskull666 hates it, blame him. ;)

;)
 
From Epic:

Code:
log -p i -t init:runtweaks "INIT.runtweaks BEGIN:tweaking RAM parameters"

# Darky's RAM hack -  THANK YOU darkyy and the Darky's ROM team
if [ -e /sys/module/lowmemorykiller/parameters/minfree ]; then
    echo "Modifying minfree parameters"
        echo "2560,4096,6144,17408,19456,23552" > /sys/module/lowmemorykiller/parameters/minfree
    else
        echo "minfree not found"
fi

log -p i -t init:runtweaks "INIT.runtweaks END:tweaking RAM parameters"

From Indulge:
Code:
# Darky's RAM hack removed - thomasskull666 hates it, blame him. ;)

;)

k0nane, have you experimented with tweaking these values? Are the values that you have in Basix identical to what the stock ROM had?

Inquiring minds want to know...
 
Yes a portion is reserved for the OS, they never give you full memory, this is common for example.. if you buy a 16 GB memory it only has 14 GB. If you buy a 8GB Ipod, the ipod really has 6.5 GB.. they never give you the full amount instead they round up.
 
Um, you do realize that your answer has absolutely nothing whatsoever to do with my question, don't you?

And just in case you didn't know it, 1K = 1024 bytes, 1M = 1048576 bytes and 1G = 1073741824 bytes.
 
k0nane, have you experimented with tweaking these values? Are the values that you have in Basix identical to what the stock ROM had?

Inquiring minds want to know...

Darky's RAM hack has not been implemented in Basix. As for tweaking those values, I have not, because those are known to be optimal for GS-series devices, which the Indulge is highly similar to. In the future I may include the V6 Supercharger which allows users to configure these things.
 
Back
Top Bottom