ok so i was thinking our mini has 384mb ram of which only 280 are available...is there some way to use the whole RAM not only 280mb??
on froyo i had: 279mb ram
on ginger: 280
on ics: 276mb
so why not 384?? whats holding the other 104 mb?
think i found what i was looking for: "MemTotal" = physical memory minus whatever is being shared with devices (such as the radio, DMA buffers, etc), so it will always be less than the advertised RAM for your phone.
am i right??
Use swap it will increase your ram but you must have a good sd card.
Sent from my GT-S5570 using Tapatalk 2
hsay said:
Use swap it will increase your ram but you must have a good sd card.
Sent from my GT-S5570 using Tapatalk 2
Click to expand...
Click to collapse
you mean a class 10 card? If so, how do I create a swap partition for my rooted device?
It's because some memory is also used for graphics and other stuff. In ICS it is 279MB, but on JB it's 276 because I have increased framebuffer size for triple buffering etc.. Theoretically, by experimenting, it's possible to get at least 285-290MB.
Me, too..
I have experimenting and the result :
Froyo : 281 MB
Ginger : 279 MB
IceCream : 278 MB
JellyBean : 276 MB
as far as i know, RAM used by :
1. GPU
2. Graphics thing
3. And Other stuff..
Then the rest of them goes to RAM values, so your Mini RAM was around 300 Megabytes, but since GPU, and other things take it RAM just decreased.
I also have a Galaxy Tab 2 7.0 Inc, wich have a 1 Gigabytes RAM, but since other things take it, it decreased into 679 MB (wow, really huge decreased isn't it ? :silly: )
xyboox said:
you mean a class 10 card? If so, how do I create a swap partition for my rooted device?
Click to expand...
Click to collapse
You can create a swap partition from cwm from advanced option then while partitioning SD card select a value for swap. This will completely erase your SD card so make a backup
Sent from my GT-S5570 using Tapatalk 2
Good to know! Thanks @hsay
Sent from my GT-S6500D using Tapatalk 2
Related
ok.. im a noob at this... bt what is SWAP partition??? how does its size effect the performance??
It's a partition on your device that the system use when the RAM is full.
so if its grater in size.... that means its good... right??
and if so.. then y do devs prefer to keep it as 0mb??
Beceause it's easier to maintain it i suppose ^^
Its because there is no need for swap and it can reduce the life of your sd card, according to most ppl
Sent from my HTC Wildfire using XDA App
pyroblazer said:
ok.. im a noob at this... bt what is SWAP partition??? how does its size effect the performance??
Click to expand...
Click to collapse
But remember, swap partition will never be fast like device ram chip.
And if u want to achieve good performance witch swap partition, buy microsd card class 6 (not 4)
good luck
Or use the stock class 2 card
Sent from my GT-P1000 using XDA App
ok... how do i check the class of by card?? coz here in India they dont provide class info along eith the card... also there is nothing written on it.... my card gives me a decent transfer rate of 4-5 mbps while copying to the card...
Class 4, it give me 10mb writing speed
Sent from my HTC Wildfire using XDA App
then i'd say mine is class 2(4-5 mbps while copying pc to sd, where as 9-10 mbps while copying 4m sd to pc)??? any software that could assure me??
interesting I have 8GB sd card class 4 and writing speed is 2mb max... is anything wrong? ****
jocto said:
interesting I have 8GB sd card class 4 and writing speed is 2mb max... is anything wrong? ****
Click to expand...
Click to collapse
Either u have been fooled, or its a problem with ur Pc(coz my class2 card gives me 4MBPS),
or the number of files is too large
Example :- 1 file of 100MB will copy faster than 100 files of 1MB each...
getting my point??
Hello running Teamhacksung ICS 15 with ICY GLITCH v14-
I need some help understanding this....I have 2 gb internal storage? 13.03 gb USB storage? 4 gb external micro-sd card? I have 1.85 available Internal 11.74 USB ...all that being said...why is my memory being so taxed? please see attached screenshot
The Captivate has 512 MB of RAM, 16GB of NAND flash memory (partitioned for different parts of the OS), and you have a 4 GB NAND flash Micro SD card.
RAM is different from flash memory or a hard disk. RAM is what your phone uses to run software and hold temporary data for quick access.
Lol because our phones ram sucks.... at best i get ~ 125MB free ram. I avg 40-80 MB with all my widgets and a few apps open.
Edit: that 512MB is a lie... THE CAKE IS A LIE! lol
But thats with all apps running at startup? If you have less apps running shouldnt you have less stress on RAM? Man it sucks someone hasnt developed an app similar to readyboost in I HATE WINDOWS...doesnt it use flash memory as ram? Ok...so with reference to my screenshot my memory usage is normal?
Why do you want free RAM? If it's unused, it's wasted. Another tidbit that no one seems to ever mention is that resources in Android are memory-mapped. If things like images and other binary objects are aligned properly, they will not be copied into RAM at runtime, but read directly from their stored location.
This is true. But android doesn't always manage its memory perfectly. I usually close apps out of habit, but if I let it I can have alot of apps open and I won't notice. Then again I've been using since 2.1 and that REALLY sucked with memory management.
prbassplayer said:
Lol because our phones ram sucks.... at best i get ~ 125MB free ram. I avg 40-80 MB with all my widgets and a few apps open.
Edit: that 512MB is a lie... THE CAKE IS A LIE! lol
Click to expand...
Click to collapse
True. 340MB is free for user space. The rest is for kernel, video, audio buffers, etc.
340MB(Galaxyian) is on big MEM kernels(truly 344MB on others, but he found a way to keep HD recording!) On any stock ROM's it is 329MB available...
Image above says he has closer to 355mb
Sent from my ICS powered Captivate using Tapatalk
Ohh well I was talking about STOCK roms haha well we all know how well MTD ROM's compare to STOCK in performance
prbassplayer said:
Image above says he has closer to 355mb
Click to expand...
Click to collapse
LOL. That's because 1MB = 1048576 bytes, so 340 x 1MB = 356,515,840
TalenDEV bigmen is 352MB, but no HD recording and I think it messed up HD playback as well. I don't worry about it too much.
I know, was pulling your chain
CuriousTech said:
LOL. That's because 1MB = 1048576 bytes, so 340 x 1MB = 356,515,840
TalenDEV bigmen is 352MB, but no HD recording and I think it messed up HD playback as well. I don't worry about it too much.
Click to expand...
Click to collapse
I know I know, was kidding And no it shouldn't mess with playback.
Well as we all know our phones have 512 RAM but only 357 is usable.Why...I realy want the rest of the ram...mostly for multi tasking. So the question is HOW can we increse ur usable RAM to 512...and what system uses the rest...ram...allready when I start my phone the "system" takes more then 154 mb...with 0 apps running.
Choose a kernel with bigmem. They are all pushing 400 MB of available ram on the i9000.
SlimICS is just under 80 MB including Google apps.
To get the most out of multi-tasking you'll want to set the amount of ram the minfree taskkiller will keep, really low, like 25MB.
The 512mb of RAM is devided into two, for systems apps and for the user (you) you get 357mb while the other 100 odd is being used for system processes
Sent from my GT-I9300 using xda premium
Thx all and I understand that the systen uses 100 but what does use the 155 mb when I start my phone; we realy nees to make a kernel that supports at least 400+ mb it will help a lot for multi tasking
VisualTech48 said:
Well as we all know our phones have 512 RAM but only 357 is usable.Why...I realy want the rest of the ram...mostly for multi tasking. So the question is HOW can we increse ur usable RAM to 512...and what system uses the rest...ram...allready when I start my phone the "system" takes more then 154 mb...with 0 apps running.
Click to expand...
Click to collapse
You can't. These phones have 512mb of RAM. ~100mb is used as Shared Graphics Memory like on Intel based laptops and such. The rest is then allocated to the system. This usually leaves around 350mb - 400mb of RAM available.
I'm not 100% on this because I'm new to Android (Had my SGS for 2 weeks). I think when Kernels have "bigmem" or differing amounts of RAM all they're doing is reducing the amount allocated to the GPU and therefore giving the system a bit more to run with.
well that is what i want more ram, "bigmem", if anyone can make it to an kernel for I9001 I/We will be very happy...
Try and apply called RAM BOOSTER PRO to free a lot of ram it's very useful
Sent from my GT-I9000 using xda premium
Thread closed.
Thread closed.
Thread closed.
Reserved
God job but this can fix the problem of memory leak?
Inviato dal mio GT-I9300 con Tapatalk 2
mattiadj said:
God job but this can fix the problem of memory leak?
Click to expand...
Click to collapse
Unfortunately not, to fix that you'd need to find the source of the leak and correct it
JP.
So what is the benefits of this fix?
Simply... Why we need this? Sorry but I didn't understand.... My bad mate
Inviato dal mio Transformer TF101 con Tapatalk 2
mattiadj said:
So what is the benefits of this fix?
Simply... Why we need this? Sorry but I didn't understand.... My bad mate
Click to expand...
Click to collapse
No problem The thing is, we have a certain amount of RAM at our disposal, plus our devices are getting faster and faster, getting more and more cores, but not that much RAM increase.
Let me illustrate my point :
htc HD2 (my frist device to run Android) - 2009
RAM : 448 MB usable
CPU : 1 GHz Qualcomm Snapdragon (single core)
SGS3 - 2012
RAM : 778 MB usable
CPU : 1.4 GHz quad-core Cortex-A9
So CPU speed is up by way much more than RAM, and I'm not taking GPU into consideration, plus storage speed increase etc...
Now those devices tend to be used in multitasking, having many apps running at the same time.
What those need is :
- CPU power to run on (we have plenty !)
- RAM to fit in (we have little)
Now even though an APP is running, not every bit of it is really needed, so those parts can be swapped out (put into swap) freeing these memory blocks and making room for more apps to fit in RAM.
So what will this mod do for you : Allow for more multitasking
Keep more apps running in RAM at the same time, making the device snappier when switching from one app to the other.
One app won't run faster !
If now you don't have swap, Android will have to gently ask the least used app to please close (save data, and quit) to free up RAM. Now when you get back to that app, Android will have to reload it, the app will start and reload it's data.
You can see, this will take more time.
Hope this isn't too confusing
I have a question before i attempt setting this up.
How do we identify which partition on the card is supposed to be for swap?
I have a 64gb sandisk card and say i make two partitions, one massive one for data and a 2gb one on the end for swap, how do i identify to android that the 2gb one is for swap? Also, what format should the partition be?
Cheers.
Sent from my GT-I9300 using xda premium
hefonthefjords said:
I have a question before i attempt setting this up.
How do we identify which partition on the card is supposed to be for swap?
I have a 64gb sandisk card and say i make two partitions, one massive one for data and a 2gb one on the end for swap, how do i identify to android that the 2gb one is for swap? Also, what format should the partition be?
Cheers.
Click to expand...
Click to collapse
The script handles finding the partition
All you need to do is partition your card and be sure the swap partition is :
- a primary partition
- of type "Linux Swap"
JP.
I have 1gb micro sd card, so can i use whole card as swap card?
jnr21 said:
I have 1gb micro sd card, so can i use whole card as swap card?
Click to expand...
Click to collapse
Yes, just create one partition with the size of the card, and make it a primary partition of type "Linux Swap".
But just a thought, what speed class is this card ? A too slow card might not be a good idea to use as swap device.
I'm waiting for my 64Gb card, so for now I'm running 512Mb swap on my older Transcend class 4 card, which is running fine for far. I'd not really go lower, though it's sur worth a try
JP.
Will the whole swap partition be used as swap memory?
And one more thing: what happens, if you remove the external sd, while the mod is active?
Gesendet von meinem GT-I9300 mit Tapatalk 2
Thankyou. Will give this a try.
Sent from my GT-I9300 using xda premium
paranoid2007 said:
Will the whole swap partition be used as swap memory?
Gesendet von meinem GT-I9300 mit Tapatalk 2
Click to expand...
Click to collapse
Yes, the partition is used, so its size is the limit
JP.
Yank555 said:
Yes, just create one partition with the size of the card, and make it a primary partition of type "Linux Swap".
But just a thought, what speed class is this card ? A too slow card might not be a good idea to use as swap device.
JP.
Click to expand...
Click to collapse
There's no mention what class it is. As i remember card came with some nokia phone 2-3 yerars ago, so i think that it's pretty slow, but i will test it anyway.
use with extsd and internal sd swap script?
Hi,
just wonder if I can use this with the extsd and interenal sd swap mod by mattiadj?
that will be great if i can use both mod and if we can use both, where will be the swap space? still the extsd?
thanks.
Hi,
Thank you for sharing this mod. What size would you recommend for the swap partition? I think that the general recommendation for desktop Linux is something like one to two times the size of physical RAM, depending on available disk space. Would that be reasonable for Android as well?
ctrlaltdel said:
Hi,
just wonder if I can use this with the extsd and interenal sd swap mod by mattiadj?
that will be great if i can use both mod and if we can use both, where will be the swap space? still the extsd?
thanks.
Click to expand...
Click to collapse
Swap will all be used, but they will have a priority (order) which you can check by typing "cat /proc/swaps" in a terminal.
I'd not use many though, you don't really need that much swap Just compare and keep whatever works best for you
yhrn said:
Hi,
Thank you for sharing this mod. What size would you recommend for the swap partition? I think that the general recommendation for desktop Linux is something like one to two times the size of physical RAM, depending on available disk space. Would that be reasonable for Android as well?
Click to expand...
Click to collapse
On Android that might be shooting a little too high. I have a 512Mb partition, but I suppose 256Mb would be fine, that is the size I used on my previous devices.
JP.
mattiadj said:
God job but this can fix the problem of memory leak?
Inviato dal mio GT-I9300 con Tapatalk 2
Click to expand...
Click to collapse
It will not fix the leak, but phone will run longer.
For fix see my thread in this forum.
While using a ics or jb the o.s eats up all the ram but we do have swap to get enough of extra ram required so if we use swap with a good class sd card, is the ram usage still a fact that affects the performanceof these Rom.. Or its just our x8's cpu then, that degrads the performance..
Sidy said:
While using a ics or jb the o.s eats up all the ram but we do have swap to get enough of extra ram required so if we use swap with a good class sd card, is the ram usage still a fact that affects the performanceof these Rom.. Or its just our x8's cpu then, that degrads the performance..
Click to expand...
Click to collapse
it is not problem only cpu,ram we have slow I/O
so if you set up swap on good sdcard it probably will still lag
Swap is not working as you think, your phone wont have more ram. Swap is like windows page file.
Sent from my E15i using xda app-developers app
I have experimented with swappiness, and if I did set it to 0, it didn't swap, even when it was very needed (and that is surprising because it should use swap in case of low RAM, even with 0 swappiness). Apps were closing instead, and the whole system was unstable because of low RAM.
When I set it to 100, it began to swap. It became stable but it was slow because it swapped out a lot of things (it had always 70-80 MB free memory).
So I think setting swappiness to 50 or 60 is ideal (I didn't try it), because it will be stable and fast at the same time.
I made some script files for setting swappiness to 0, 20, 40, 60, 80 and 100, tell me if anyone needs them, and I will upload them.
Also using zRam with normal swap, and 50 swappiness might be a good thing too.
ICS and JB lag on our devices due to both the weaker cpu and less ram.
But if we had around 512 mb ram, ics and jb would run smoother with 600mhz cpu too..
so according to me the ram factor is the one which makes ics and jb lag on our phones.
And about swap, it works only when the ram is below 5-10mb.
so i think that it does not helps us much...
har****group said:
ICS and JB lag on our devices due to both the weaker cpu and less ram.
But if we had around 512 mb ram, ics and jb would run smoother with 600mhz cpu too..
so according to me the ram factor is the one which makes ics and jb lag on our phones.
And about swap, it works only when the ram is below 5-10mb.
so i think that it does not helps us much...
Click to expand...
Click to collapse
But with a higher swappiness you can get at least 60 MB free RAM. Nevermind, it doesn't make ics and jb run smoother. But it's like not the low RAM causes those roms to run slowly. I am using MiniCM7 with 128 MB compcache and it is very smooth, smoother than using normal swap, even when playing very heavy games. And on jb and ics no matter if i use swap or zRAM (128 MB), it stays slow.
Lajbymester said:
But with a higher swappiness you can get at least 60 MB free RAM. Nevermind, it doesn't make ics and jb run smoother. But it's like not the low RAM causes those roms to run slowly. I am using MiniCM7 with 128 MB compcache and it is very smooth, smoother than using normal swap, even when playing very heavy games. And on jb and ics no matter if i use swap or zRAM (128 MB), it stays slow.
Click to expand...
Click to collapse
How did you make 128 mb zRAM?