swap question? - myTouch 3G, Magic Android Development

i have a 8gb class 6 card with 512mb ext3/ 96 linux swap. how would i go about setting up my swap. in swapper there is a setting that says "use swap partition" . am i suppose to check that? because when i do that and type in free it shows swap size 0. when i "use swap file" it shows
swap total :191784 used:61956 free:129828 . is this right?
because it still lags a tiny bit but i know it can run smoother.
thanx

can a mod please delete this. im sorry , wrong section.

Related

Default Swapfile on Optimus 3d

Hi,..sorry if its been asked before.
Ive looked for the swapfile thats been autoload on O3D, in froyo i found 120000 as default value, and on leaked gb by indoptimus i found 122880. Is it safe to raise the value, ive tried to raise it to 322680 (in my noob thought its 320mb), with default swappiness (60). then i open terminal and check free memory, its read as i changed. so im asking to the pro here (i mean any1 here except me /cause im noob), is it safe to change it? And where is the actual swapfile place ? Is it internal sd, eksternal sd, or inside internal sd partition (cause we lost much memory from our internal sd from the beginning).
thanks for all reply, pardon me for my bad english, and sorry for these noobs question.
edit : did my self an experiment,...idk but it seem the cpu clock is working better now / more efficient (checking with System tuner pro). do a multitasking (3 app / camera, dolphine browser, yahoo messenger, and the cpu remains under 60% usage /average.
Well it is a file swapfile partition that Andora used as paging. But here's where the theory, the bigger the better??? I take up room? etc, etc, etc.
Normally you use a paging 128 mg. This is how we have configured on your terminal. To say that the swap partition is created on the phone's internal memory, Osea in the 8 gigs. It saves space and from my point of view and experience of the HD2, not noticeable veneficios between 128 and 256, much less to 512mg.
Whether 128 is more than enough.
Thanks for your reply acura, its help me to know better. what i still dont understand is, o3d is come with 8gb of internal memory, and when we power on, its only give us less than 5gb free space, even if i uninstall bla bla bla apk from the system apk, its still not come even near 7gb. Does the rom took internal space?
do we have a chance to raise our ram to 1gb? Or is it a separated hardware?
danielkaboom said:
Thanks for your reply acura, its help me to know better. what i still dont understand is, o3d is come with 8gb of internal memory, and when we power on, its only give us less than 5gb free space, even if i uninstall bla bla bla apk from the system apk, its still not come even near 7gb. Does the rom took internal space?
do we have a chance to raise our ram to 1gb? Or is it a separated hardware?
Click to expand...
Click to collapse
well you uninstallthis and that and still your phone boots ain't it? all in all at least one gig is reserved for system android etc
jimakos29 said:
well you uninstallthis and that and still your phone boots ain't it? all in all at least one gig is reserved for system android etc
Click to expand...
Click to collapse
yup,..still boot and running just fine,..1 thing i notice is that now the HotPlug govenor is doing its job faster,..i mean, open app a, b and c, then i go to system tuner pro to check cpu usage before i put it to standby mode, and its really fast to get lower from 1ghz to 800mhz, 600mhz and stay at 300mhz(mostly single core is active), and the usage is between 5% - 25%.
power on back, open 3d games, press home menu, and check again, its dual core are running in about 70%-100% on 800mhz-1ghz.
guess im more enjoying my phone now,..less overheat on the display when the screen is up for browsing, playing.
whats still bothering me is, is it safe to put it that way? i mean, ive heard that swapfile sometimes must be formatted to get clean,..is it true? and if its true, how can i formatted it (ramzswap0 located in /dev/block/ramzswap0). for now, what i did is just swappoff it and then swappon it,...in hope to get it clean file (LOL,..noob way). any suggestion?
acura2201 said:
Well it is a file swapfile partition that Andora used as paging. But here's where the theory, the bigger the better??? I take up room? etc, etc, etc.
Normally you use a paging 128 mg. This is how we have configured on your terminal. To say that the swap partition is created on the phone's internal memory, Osea in the 8 gigs. It saves space and from my point of view and experience of the HD2, not noticeable veneficios between 128 and 256, much less to 512mg.
Whether 128 is more than enough.
Click to expand...
Click to collapse
so basically whats better?

[Q] How To Increase ZRam Partition

Hello,
Since ICS leaves me without much RAM and LG is using 140MB swap partition just because without it we wont be able to launch 2 apps without them closing the launcher for memory, I decided to play a bit with swap and ended up using ZRam as its a bit better than the normal swap.
But zram0 partition is only 67MB and this is not enough for me, especially when playing games. So I wanted to ask how to increase the partition size. I already tried making 128MB zram0 but it only fill up to 67MB because thats the size of the partition. So how to make it bigger, atleast 128MB?
Or if it's not possible would someone tell me how to clean it, as it gets filled but doesnt free itself after time.
Zram is not partition. Size of ZRAM is size of RAM that get compressed. So you get "more" RAM but it is slower a bit for the time needed to compress and uncompress. Try changing swapines value. If you set higher swapines swap will be used more often.
Sent from my LG-SU760 using xda app-developers app
iodak said:
Zram is not partition. Size of ZRAM is size of RAM that get compressed. So you get "more" RAM but it is slower a bit for the time needed to compress and uncompress. Try changing swapines value. If you set higher swapines swap will be used more often.
Sent from my LG-SU760 using xda app-developers app
Click to expand...
Click to collapse
Silly me and I have read what ZRam does quite a few times already. Anyways when I used External SD Swap it worked great but only for some time then somewhere half of the system will brake and will not work.
For example it will crash and hot reboot the phone or freeze it completely or when I want to open Setting for example it wont go there. Can you help me about that?
Lg already made partition to be used like mmc swap so you don't need to use part of your sdcard for it. And it will be unmounted when you connect usb storage. Take a look at /system/bin/swap_enable.sh and things will be clearer for you.
Sent from my LG-SU760 using xda app-developers app
I am using multi mount and its not needed.
Also I don't need emmc, I need my SD card its faster.
Also I have read swap_enable.sh and I wrote the mkswap and swapon there but it didin't made the file a swap one. Swapper2 on the other hand creates wierd 5MB or 50MB didint read carefully swap space as "free" command showed me after reboot, while I choosed 256MB swap file. Anyways wierd things always here.
GlossGhost said:
Hello,
Since ICS leaves me without much RAM and LG is using 140MB swap partition just because without it we wont be able to launch 2 apps without them closing the launcher for memory, I decided to play a bit with swap and ended up using ZRam as its a bit better than the normal swap.
But zram0 partition is only 67MB and this is not enough for me, especially when playing games. So I wanted to ask how to increase the partition size. I already tried making 128MB zram0 but it only fill up to 67MB because thats the size of the partition. So how to make it bigger, atleast 128MB?
Or if it's not possible would someone tell me how to clean it, as it gets filled but doesnt free itself after time.
Click to expand...
Click to collapse
Modify file /system/bin/swap_enable.sh.
P.S. Need root.
NWorker93 said:
Modify file /system/bin/swap_enable.sh.
P.S. Need root.
Click to expand...
Click to collapse
My swap_enable.sh shows 30 MB disksize
Is that normal? Should I increase it?
This is my script where zram size is 64 and emmc swap is disabled (last two lines are # out)
Edit: for launcher redraw supercharge you services.jar. If you are on deodexed rom i can post you mine.
Sent from my LG-P920 using xda app-developers app

[Q] Can we increase the ram size ??

I wanted to know if we can increase the ram of our little pico (htc Explorer)....also I wanted to know the advantages of swap partition.....Does it increase the ram size ?? And also I wanted to know that if there are any other advantages of Sd-ext partition other than increasing the Internal memory ??
ahmadmemon said:
I wanted to know if we can increase the ram of our little pico (htc Explorer)....also I wanted to know the advantages of swap partition.....Does it increase the ram size ?? And also I wanted to know that if there are any other advantages of Sd-ext partition other than increasing the Internal memory ??
Click to expand...
Click to collapse
No, you can't. Physical RAM is fixed.
Swap acts as pagefile on Windows, if you know pagefile. swap is virtual RAM. When the system needs more memory, a part of RAM will be written to the swap partition. Swap partition is part of SD card, so it would be painfully slow to use. Beside that, using swap also quickly wear out your SD card.
Sd-ext partition can be configured to accommodate swap, if you have the right app/script. Normally, you divide your SD card in to 3 partitions, 1st for media, 2nd for app storage, 3rd for swap. And our phone's recovery have option to do this too.
As I said, I strongly object against using swap partition. It will make your phone even slower than without it.
Your best bet here is zRAM, or compcache. You can find zRAM setting in most CM based ROM. zRAM relies on compression to increase the virtual size of your RAM. For example, an app that usually takes 10MB of RAM will now take only 9MB if you choose 10% compression.
There're 10%, 18%, and 26% options. But zRAM is not free. It uses your CPU to compress and decompress data, so our phone's weak CPU is not very happy with it. Your choice. But if you really need more app to cache more app (better multi-tasking), 10% zRAM will give you about 40MB RAM more (400MB*10%=40MB), at the cost of little CPU and battery. Using 18% and 26% seems too aggressive.
redguardsoldier said:
No, you can't. Physical RAM is fixed.
Swap acts as pagefile on Windows, if you know pagefile. swap is virtual RAM. When the system needs more memory, a part of RAM will be written to the swap partition. Swap partition is part of SD card, so it would be painfully slow to use. Beside that, using swap also quickly wear out your SD card.
Sd-ext partition can be configured to accommodate swap, if you have the right app/script. Normally, you divide your SD card in to 3 partitions, 1st for media, 2nd for app storage, 3rd for swap. And our phone's recovery have option to do this too.
As I said, I strongly object against using swap partition. It will make your phone even slower than without it.
Your best bet here is zRAM, or compcache. You can find zRAM setting in most CM based ROM. zRAM relies on compression to increase the virtual size of your RAM. For example, an app that usually takes 10MB of RAM will now take only 9MB if you choose 10% compression.
There're 10%, 18%, and 26% options. But zRAM is not free. It uses your CPU to compress and decompress data, so our phone's weak CPU is not very happy with it. Your choice. But if you really need more app to cache more app (better multi-tasking), 10% zRAM will give you about 40MB RAM more (400MB*10%=40MB), at the cost of little CPU and battery. Using 18% and 26% seems too aggressive.
Click to expand...
Click to collapse
Does zRAM works without swap partition ??
Yes, it's different, you can read @redguardsoldier's post again, to get exactly what he is saying, just to be on the safe side
Increase RAM In HTC Pico (I worked For ME ).
ahmadmemon said:
I wanted to know if we can increase the ram of our little pico (htc Explorer)....also I wanted to know the advantages of swap partition.....Does it increase the ram size ?? And also I wanted to know that if there are any other advantages of Sd-ext partition other than increasing the Internal memory ??
Click to expand...
Click to collapse
TRY THE LINK BELOW IT WOKED FOR ME :laugh: >>>>>>>>>>>>
http://forum.xda-developers.com/showthread.php?t=2735281
I hope It will work for u as WELL :good:

How to add within 2GB of RAM to your Android device without opening it?

What's up guys, we found a new idea to add within 2GB or more to your device whatever is but of should be Android all that is without even opening it.
So let's take a look at the benifits of adding RAM:
_Make your device more faster (so faster).
_Opening all the apps that takes a lot of RAM memory especially games!.
_Scale down the RAM pression.
HTML:
WARNING:
I'm not responsable for any damage can happen to your device. the methode i'll show you works fine in my device.
And now let's see how to do all that step by step...
What we're going to do is transforming 2GB or less from the data storage (the memory which is containing apps etc...) to RAM. To do so you need first to:
Root your phone to get the full access to do all that.
You can check that to know how to root your device: http://forum.xda-developers.com/galaxy-s3/general/complete-thread-upgrading-samsung-t3280628.
Check and application called "Root Checker" to verify your phone is rooted successfuly.
So everything that we're doing is based on two applications which is: RAM Manger and MemoryInfo-Swap Check
Before we start showing you download them from the Play Store.
Now after doing all above we can start adding RAM:
1) Open RAM Manager application
2)Click the menu in the left upper corner.
3) Choose "Extra" section.
4)Now choose "Swap File" option.
5) Choose in the Swap File location: "/data".
6) Then put "2048MB" or less (2048MB = 2GB)
7)Finally click "creat".
Like that the 2GB selected going to transfer to RAM memory and to check that open MemoryInfo-Swap Check and you'll see in Swap FREE tube 2GB added that means these 2GB added to the RAM memory.
I think you're asking nowWhy these 2GB didn't added to RAM tube?
Yes, nice question beacause your phone dosen't know that you added this quantity so it still shows your current RAM, that's why you can't see it in the RAM tube.
So yea! this is was how to add 2GB of RAM to your device.
If you have any question i'll be so happy to answer you just leave it in a comment. Also don't forget to press Thanks button if that was helpful.

RAM Expander Roehsoft not working on my tablet, how can i fix this?

Hello everyone,
I need some help with expanding RAM of an old android tablet of mine, more specifically, an Genesis GT-7204, using an SD card.
I rooted the tablet already and granted the app RAM Expander from Roehsoft root permissions, but when i try to use the app i get the following message: "This path is not available for swap!" Image below:
https://imgur.com/4MZ2l
The path i used was mnt/local:
https://imgur.com/6zUH7
Thanks in advance!
The images might be blocked, in any case i will post them here.
Personally have experienced that Virtual RAM ( aka SWAP RAM ) can only get created on a device's internal storage memory ( aka /sdcard ).
Hint: As path manually enter /data .
BTW:
Android since ever comes with virtual RAM ( SWAP RAM) feature. The internal storage memory used herefore is the /cache partition.
Also take note that an Android apps' memory usage by design is limited to some MBs. Even if you increase in Android's system file called build.prop the related amount, it's not sure that this is taken into account: an app's develeoper allows this or not.
And keep in mind that apps that did not fit in the RAM before without swap do not suddenly fit in the RAM.
Don't expect wonders using Roehsoft's RAM Expander. Probably you may not notice any gain in device's performance.
So i can only use my internal storage to add RAM? And not the SD card?
And to do this i have to manually set a path, but i am new at this, but i have to use /data or there is something else?
And in my case it is worth it, because this freaking tablet has only 500 MB of RAM!!!!!
jwoegerbauer said:
Personally have experienced that Virtual RAM ( aka SWAP RAM ) can only get created on a device's internal storage memory ( aka /sdcard ).
Hint: As path manually enter /data .
BTW:
Android since ever comes with virtual RAM ( SWAP RAM) feature. The internal storage memory used herefore is the /cache partition.
Also take note that an Android apps' memory usage by design is limited to some MBs. Even if you increase in Android's system file called build.prop the related amount, it's not sure that this is taken into account: an app's develeoper allows this or not.
And keep in mind that apps that did not fit in the RAM before without swap do not suddenly fit in the RAM.
Don't expect wonders using Roehsoft's RAM Expander. Probably you may not notice any gain in device's performance.
Click to expand...
Click to collapse
So i can only use my internal storage to add RAM? And not the SD card?
And to do this i have to manually set a path, but i am new at this, but i have to use /data or there is something else?
And in my case it is worth it, because this freaking tablet has only 500 MB of RAM!!!!!
pprg1101 said:
So i can only use my internal storage to add RAM? And not the SD card?
And to do this i have to manually set a path, but i am new at this, but i have to use /data or there is something else?
And in my case it is worth it, because this freaking tablet has only 500 MB of RAM!!!!!
Click to expand...
Click to collapse
Honestly I never used Roehesoft's RAM Expander on a real Android device and I'll never will use it: In my eyes it's crap. And, you'll find no serious confirmations in the WEB that it works as claimed.
Android for good reason doesn't come with SWAP feature. Android's Memory Manager frees RAM if necessary.
It's on you to play around with Roehesoft's RAM Expander. Good luck.
My last 2 cents here:
SWAP is a place on the internal storage memory (usually a dedicated partition) that is used to store programs or data that can't fit in memory, like when a program grows more than the available RAM (BTW: In the world of Windows this space is called Swapfile.sys ). SWAP is way slower than RAM, so when you create / enable SWAP the phone gets slower, but at least the program can work.
All the stuff that can't or shouldn't stay in your RAM is written out to SWAP and read back in when needed. This means that the SWAP medium needs to be fast and resilient to lots of writes.
IMHO using an external SD card as SWAP fails on both counts. It is slower at reading/writing than a phone's internal drive, and each of its constituent sectors can only be written to a limited number of times before they wear out and can no longer reliably store data.
SC pl

Categories

Resources