Related
Is it possible to make virtual ram
or.virtual ram partition on sd card for xperia x10
I always use heavy multitask every day use like facebook, nimbuzz ,
watch movie on browser etc....
Any help please
U can do partition and should make proper scripts to move the apps to data/app
Sent from my HTC Salsa C510e using XDA
Or you can use swap on your phone, but start with efficient usage on your phone and delete all of bloatware.
P.S.: Remember that swap requires root and its NOT as fast as internal RAM. For efficient swap you need class 8 or 10 sdcard.
HeliumX10 said:
Or you can use swap on your phone, but start with efficient usage on your phone and delete all of bloatware.
P.S.: Remember that swap requires root and its NOT as fast as internal RAM. For efficient swap you need class 8 or 10 sdcard.
Click to expand...
Click to collapse
How to know my sd card in which class? :s do i need to replace?
It is written on your SD - Card.
Common class is 4 - the slowest 5 mb write speed - 9 reading.
Look onto your SD-Card there is number written on it.
The speed rating can be deceptive. Just getting a Sandisk card will get you good performance. In terms of running programs or even CM7 off of MicroSD the random reads and writes are most important for performance. If you check the figures at this page; https://docs.google.com/spreadsheet/ccc?key=0AjPE3ZAD2eVudE9vZmQ3aHlfTkFvU2J4ZUplRDJQTEE#gid=0 you will see that the new Sandisk class 6 and 10 ultras and the Samsung class 10's are really very good.
tal333
Did you guys have checked this?
http://forum.xda-developers.com/showthread.php?t=1716124
USE SWAPPER(VIRTUAL RAM MAKER) FROM PLAY STORE ITS FREE,MAKE A SWAP PARTITION OF 512MB AND YOU ARE DONE:laugh:
HIT :good: BUTTON IF I HELPED YOU
techdevilisnowmonster said:
USE SWAPPER(VIRTUAL RAM MAKER) FROM PLAY STORE ITS FREE,MAKE A SWAP PARTITION OF 512MB AND YOU ARE DONE:laugh:
HIT :good: BUTTON IF I HELPED YOU
Click to expand...
Click to collapse
is this one: ?
https://play.google.com/store/apps/...h_result&rdid=org.azasoft.free.swapper&rdot=1
kalel29 said:
is this one: ?
https://play.google.com/store/apps/...h_result&rdid=org.azasoft.free.swapper&rdot=1
Click to expand...
Click to collapse
yes thats what i was talking about
Hi Guys, only a quick question really!
Is it possible to use internal storage as ram to boost the memory up a little?
reason i ask is that (for example) windows 7 lets you stick a usb stick in and boost the ram up.
I would have thought that the same could be achieved by some of the developers on here by borrowing some internal storage for use with ram.
( I searched and couldn't find anything that related to this. )
Paul. :fingers-crossed:
No
Sent from my GT-I9300 using xda app-developers app
And why would you want to? It would be on the order of magnitudes slower than RAM.
RAM operates in nanoseconds whereas storage operates in milliseconds. (Storage is 1000 times slower..)
Look in the dev section. There is a mod where you can use part of your external sd card as a swap partition.
Sent from my GT-I9300 using Tapatalk 2
Siyah kernel supports swap partition. You need to have an external sd card for it. It's only for ics rom right now. More info? Check development section.
☞ sent from GS3 or Nexus
It's possible.
Here's how to do it.
Baldilocks said:
And why would you want to? It would be on the order of magnitudes slower than RAM.
RAM operates in nanoseconds whereas storage operates in milliseconds. (Storage is 1000 times slower..)
Click to expand...
Click to collapse
I just had a crazy idea that id be able somehow to borrow 1gb from my 32gb card and run 2gb of ram. but if what you explained is correct ill leave it as it is as its not that big an issue, however....... i have Siyah kernel installed already, might have to read up on 'swap partition' hopefully giving me more internal storage for downloading large sized games etc. I keep running out of internal storage memory when downloading games and for some reason on the latest 4.0.4 sammy build i cannot move apps to sd card.
ill have a tinker with swap partition and see how that goes, thanks for your info guys.
A swap partition won't help you download bigger files and all you have to do is download directly to external memory, and it's impossible to move Apps to external memory unless you Root and use App called Directory Bind.
Geordie Lad said:
A swap partition won't help you download bigger files and all you have to do is download directly to external memory, and it's impossible to move Apps to external memory unless you Root and use App called Directory Bind.
Click to expand...
Click to collapse
not the only app
there are other apps e.g. app2sd
dark tremors mod allows you to format part of the memory stick as either ext3 and use that to install apps on
this is done automatically on swedish snow which is a rom on zte blade,
i don't know if there is an app to do this on gs3 but it is possible to do it
shanky887614 said:
not the only app
there are other apps e.g. app2sd
dark tremors mod allows you to format part of the memory stick as either ext3 and use that to install apps on
this is done automatically on swedish snow which is a rom on zte blade,
i don't know if there is an app to do this on gs3 but it is possible to do it
Click to expand...
Click to collapse
Nope it's impossible to use any Apps like App2Sd because the external memory now uses ExFat format and mounted as a separate device so can't move the cache like other phones, so only way is to use Directory Bind to use Android's folder Binding function to trick Apps into thinking it's reading from internal memory.
I just had a crazy idea that id be able somehow to borrow 1gb from my 32gb card and run 2gb of ram
Click to expand...
Click to collapse
Take a look at another feature Siyah includes; zRAM. It basically reduces(!) your available memory by taking a chunk of it (up to 300MB can be set through STweaks) which is then used with GZip-Compression to create a in-RAM Swap partition.
This is based on the idea that in current phones/computers the CPU is far more powerful than is usually needed, so the performance impact of using it for Swap is not that high. On the other hand you don't save that much RAM - but it certainly helps without crippling down your phone and/or greatly reducing your SSD's capacity
Geordie Lad said:
Nope it's impossible to use any Apps like App2Sd because the external memory now uses ExFat format and mounted as a separate device so can't move the cache like other phones, so only way is to use Directory Bind to use Android's folder Binding function to trick Apps into thinking it's reading from internal memory.
Click to expand...
Click to collapse
I use 'GL to SD' from the play store. Worked great on the S2 as well.
Sent from my GT-I9300 using xda premium
joey jojo said:
Hi Guys, only a quick question really!
Is it possible to use internal storage as ram to boost the memory up a little?
reason i ask is that (for example) windows 7 lets you stick a usb stick in and boost the ram up.
I would have thought that the same could be achieved by some of the developers on here by borrowing some internal storage for use with ram.
( I searched and couldn't find anything that related to this. )
Paul. :fingers-crossed:
Click to expand...
Click to collapse
Windows uses it more to reduce hard drive access as this is slower than a memory stick
m1ket said:
Windows uses it more to reduce hard drive access as this is slower than a memory stick
Click to expand...
Click to collapse
What? No! Unless you have a USB 3.0 or a SATA supported flash memory of some kind, most other means are slower than HDDs which get around 100 mb/s read and write. Compare that to a Class 10 at 10mb/s...
Sent from my GT-I9300 using xda app-developers app
A solution I use is something somehow similar to app2sd.
To achieve it just crop the first partition of your external sd fitting to the size you want to use as second partition and create an additional partition with a supported format (I personally prefer ext4).
Move the content of your /sdcard/Android folder to the new partition and write a mount script where you mount the /dev/block/mmcblk1p2 device to /sdcard/Android.
Execute it with script manager with su rights and mark on boot and you will gain more internal space for games and apps and only have to worry about moving files if you downloaded to much with the browser or such.
Gesendet von meinem GT-I9300 mit Tapatalk 2
SlimJ87D said:
What? No! Unless you have a USB 3.0 or a SATA supported flash memory of some kind, most other means are slower than HDDs which get around 100 mb/s read and write. Compare that to a Class 10 at 10mb/s...
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
the "mb/s" stat is irrelevant in the case of ReadyBoost, the windows feature that boosts access time of cached files through flash memory on usb stick or memory card...
cant post a link but, wikipedia is your friend
the feature is more of a gimmick than anything else, but its there and it does what it say it does to the extent of its limitations which are very low...
Most Windows computers have HDD's and not like our S3 an SSD.
HDD's are faster than memory sticks ONLY in writing and continuous read (one big file without fragmentation)
Readyboost uses a SSD for small often-read fragments qualifying as random read where even your cheap USB2 stick is by far faster than a hard drive.
Sent from my GT-I9300 using xda premium
Geordie Lad said:
Nope it's impossible to use any Apps like App2Sd because the external memory now uses ExFat format and mounted as a separate device so can't move the cache like other phones, so only way is to use Directory Bind to use Android's folder Binding function to trick Apps into thinking it's reading from internal memory.
Click to expand...
Click to collapse
But my external SD is not ExFat.
I know that because I format it myself.
Sent from my GT-P1000 using xda app-developers app
Ok guys I've decided to waste money on a 16 gb sd card because this 4 gb is slow and full and can't add a Real enough swap or ext3 so can someone tell me what class 16 gb I shud get? Cause I heard its like till 6-7 then it doesent make use of higher class sd and how do I keep sd ext when changiing? Is there a way to access it from my computer? Thanks in advance
Sent from my U20i using xda app-developers app
First - EXT is not accesible from PC - would be really glad to have this option too.
Second - Take any class card - best way 6+, less is slow, but still usable.
Third - Best way to change SDs when you have EXT is -> backup all your apps installed (data and apk - data via Titanium!) and uninstall them. Let the EXT totally free. After that disable EXT and make backup of your phone files and FORMAT IT (wipe data etc...)
All needed files copy to new card and dont forget to set EXT and SWAP as you like - and insert. After that restore your data and apps and set it all up.
penthaler said:
First - EXT is not accesible from PC - would be really glad to have this option too.
Second - Take any class card - best way 6+, less is slow, but still usable.
Third - Best way to change SDs when you have EXT is -> backup all your apps installed (data and apk - data via Titanium!) and uninstall them. Let the EXT totally free. After that disable EXT and make backup of your phone files and FORMAT IT (wipe data etc...)
All needed files copy to new card and dont forget to set EXT and SWAP as you like - and insert. After that restore your data and apps and set it all up.
Click to expand...
Click to collapse
Thx very much but still till which class does it affect I don't wanna buy class 10 and be useless is it till 6?
Sent from my U20i using xda app-developers app
Dont know which class is da best, but try to think - your msd will be used as storage place + swap + ext partition, it is a bit difficult for msd.
I am using class 4 and swap only (few month before tested swap and ext partitions together), and it is good, but higher card class could be better, faster and (i think) more stable for your requirements.
OT: On my x10mini (with stats in signature) was hard to make swap and ext partitions work together without bugs, but still it wasnt stable and maybe that problem was "slow" msd, maybe something different
REPLY
LukBoy99 said:
Ok guys I've decided to waste money on a 16 gb sd card because this 4 gb is slow and full and can't add a Real enough swap or ext3 so can someone tell me what class 16 gb I shud get? Cause I heard its like till 6-7 then it doesent make use of higher class sd and how do I keep sd ext when changiing? Is there a way to access it from my computer? Thanks in advance
Sent from my U20i using xda app-developers app
Click to expand...
Click to collapse
You want to buy Class10 it was awesome by use it u can make mutiboot too bt im having 8GB class 2 only
I can make multi boot? How? I thought impossible on u20i
Sent from my U20i using xda app-developers app
REPLY
LukBoy99 said:
I can make multi boot? How? I thought impossible on u20i
Sent from my U20i using xda app-developers app
Click to expand...
Click to collapse
Bt im having x10 mini
for U20i
Learn for this link
http://forum.xda-developers.com/showthread.php?t=1192556
Gaming Mode Script
As you all know our phone with ICS update struggles in gaming even at games that don't use a lot of ram.
The constant restarting of services that were killed are simply drag every game to hell.
There are many apps in Play Store that are doing what my script does.
But the problem is that most facing a problem in closing the swap file and they just re-enabling it.
That's a problem because even with a class10 SD card the phone is a lot laggy with swap.
Programs need seconds to open and to go to homescreen sometimes needs even 5 seconds and more.
Here's the solution. A simple switchable Script that will give you the extra juice only when you want to game hard.
UPDATE:
Added swap in partitions.
Requirements:
Needs working Busybox and SU
Instructions:
1. Copy the script from inside the appropriate zip to /data or /system and make the permissions to rwx-rwx-rwx (0777).
2. Use Script Manager or what you want,
and make a widget in your homescreen for easy access. Be sure to enable SU in options!
Also install SM widgets so you can set your script as a shorcut in homescreen. That way Smanager will not take any RAM.
3. Tap the widget and after it's done close SManager and you are ready to rumble and enjoy lag-free games.
4. After you are done, press once again the widget and the swap file will be removed. Enjoy your phone back to it's lag free condition.
swaponoff.zip for swap in a file
swappartonoff.zip for partitioned swap
Config:
You can change preferences by editing the script. DON'T use notepad! it will break the unix encoding that it's needed for the script busybox commands.
SWAP_FILE: Where to save the swap file.
SWAP_SIZE: Swap file size in MB. Default is 128MB
SWAPPINESS_OPTION: How much to swap. Default is 10, to avoid unnecessary swapping.
For partitions chage SWAP_PART="/dev/block/mmcblk0p3" Change 3 to what your swap partition number is
Notice:
That will give you lag free games only. Using swap always on will make your phone laggy in general usage.
Also always close the swap file before connecting the phone to usb mass storage!!
Credits go to mrvek for his swap script, which I used as a base.
If you like it, please press thanks!
did this script need partition swap or not?
Can I ask why will a swap file increase gaming performance? If it does, why will it lag the phone during normal use? What's the difference?
xeraphael said:
Can I ask why will a swap file increase gaming performance? If it does, why will it lag the phone during normal use? What's the difference?
Click to expand...
Click to collapse
The system can push te apps into swap. Without need of to kill them(before it kills tehm but they keep restarting afterwards so this is why some games lag) Some other games need alot of memory to even start. So when you have swap. the game can use all the 300mb ram(at least 30 are for frameworkcs, etc)
And CTCaer. I think you shall add that it srecommended to use swap partition. Its better ... at least for me
odie70 said:
did this script need partition swap or not?
Click to expand...
Click to collapse
Nope. It makes use of your sd card. It mounts a certain file there.
A partition for swap was never needed. Also if you use for example noop i/o scheduler for sdcard, this will make the need for swap partition obselete. Because it will not prioritize the writing/read and will work like if you had 2 partitions in sd.
xeraphael said:
Can I ask why will a swap file increase gaming performance? If it does, why will it lag the phone during normal use? What's the difference?
Click to expand...
Click to collapse
Well in ICS every library and framework and the default use of gpu make use of a lot ram. More ram than GB.
Most games need 60-120mb ram to play.
That makes android to kill services running, like widgets, homescreen, messengers and more to free ram.
The problem is that many of them the restarting almost immediately (like whatsapp) and others restart like normal when android sees that
there's free ram (like when you enter a menu in game, ram usage drops).
That creates an endless loop and make the games laggy and the worst of all makes the touchscreen unresponsive.
So the extra virtual ram helps so that these services remain open and not make an impact in your playing by restarting endlessly.
Android and in generally linux makes use of swap only for apps that are not needed.
That means that your game will be mainly in the real ram and will not lag.
In contradiction swap will make your phone laggy for general use because every time you open an app, another app or services will use the swap file (like homescreen).
So when you return to homescreen or to an app that is cached in swap, android will retrieve it from it to the main ram.
This will cause a delay to opening the map and a general lag feeling for 2-5 seconds (according to how much of it went to swap).
I even disabled zram for almost that reason (it takes cpu cycles), as i needed it for game before using swap only when gaming.
To sum it up,
only one thing I saw from using this script when gaming: ALL games now feel like i have gingerbread in my phone.
Only downside is that some gameloft games need a little more time to load, but when android gets done with swapping the unused services, it fades away.
Extra tip: Enable swap when using google maps. Same win like games
Whats the different with ram xpander apps
I used this apps and create 1020 Mb memory swap
This apps used my sd card for supporting the internal memory
And this minimize the force closed apps when we need a lot of ram to open hard apps
Sent from my ST18i using xda premium
mvoid533 said:
Whats the different with ram xpander apps
I used this apps and create 1020 Mb memory swap
This apps used my sd card for supporting the internal memory
And this minimize the force closed apps when we need a lot of ram to open hard apps
Sent from my ST18i using xda premium
Click to expand...
Click to collapse
The only difference is that with my script you don't need an app and that app will take ram as it's always there.
And because some swap apps don't let you disable easily or even at all the swap.
The script is mostly for people that want to have extra virtual ram only when gaming or using google maps.
And btw if needed i can make a script like that for swap in partition.
So how to create it
Or i am just edit your script from 128 to 1000 Mb swap
Sent from my ST18i using xda premium
mvoid533 said:
So how to create it
Or i am just edit your script from 128 to 1000 Mb swap
Sent from my ST18i using xda premium
Click to expand...
Click to collapse
Check OP i've added for partitions.
just fix the number of your partition.
Turning off swap doesnt work
when I tap the widget with swap on, It doesnt erase, nor stop swapfile and it just give me errors
Here is the result when I try to disable swap file
exec /system/bin/sh '/mnt/sdcard/swaponoff/swaponoff.sh'
n/sh '/mnt/sdcard/swaponoff/swaponoff.sh' <
/mnt/sdcard/swaponoff/swaponoff.sh[8]: grep: not found
write: Broken pipe
Gaming Mode Script
by CTCaer
credits to mrvek @ XDA for the original script.
Creating SWAP file of 128 MBs...
dd: can't open '/mnt/sdcard/.swapfile': Text file busy
Fromating SWAP file...
Setting up swapspace version 1, size = 134213632 bytes
UUID=f7040068-5019-4fd0-b8e6-1231df0545b8
Enabling SWAP...
swapon: /mnt/sdcard/.swapfile: Device or resource busy
Done! Ready to game!
I hope you guys have answer to this problem
Sent from my ST18i using Tapatalk 2
Will Hong said:
Turning off swap doesnt work
when I tap the widget with swap on, It doesnt erase, nor stop swapfile and it just give me errors
Here is the result when I try to disable swap file
exec /system/bin/sh '/mnt/sdcard/swaponoff/swaponoff.sh'
n/sh '/mnt/sdcard/swaponoff/swaponoff.sh' <
/mnt/sdcard/swaponoff/swaponoff.sh[8]: grep: not found
write: Broken pipe
Gaming Mode Script
by CTCaer
credits to mrvek @ XDA for the original script.
Creating SWAP file of 128 MBs...
dd: can't open '/mnt/sdcard/.swapfile': Text file busy
Fromating SWAP file...
Setting up swapspace version 1, size = 134213632 bytes
UUID=f7040068-5019-4fd0-b8e6-1231df0545b8
Enabling SWAP...
swapon: /mnt/sdcard/.swapfile: Device or resource busy
Done! Ready to game!
I hope you guys have answer to this problem
Sent from my ST18i using Tapatalk 2
Click to expand...
Click to collapse
Well after updating busybox, problem was solved
Sent from my ST18i using Tapatalk 2
Will Hong said:
Well after updating busybox, problem was solved
Sent from my ST18i using Tapatalk 2
Click to expand...
Click to collapse
Yeah, i forgot to write it. I'll update the OP and say that it needs busybox.
Yeah it work
I made 256 Mb swap
So if I am not a gamers
I cant use it
Hahahhaha
Lol
Sent from my ST18i using xda premium
mvoid533 said:
Yeah it work
I made 256 Mb swap
So if I am not a gamers
I cant use it
Hahahhaha
Lol
Sent from my ST18i using xda premium
Click to expand...
Click to collapse
Well if you are not a gamer it's not needed. 347mb ram is plenty for everything in our phones except google maps and chrome
No its not enough
Cos I have used smart experia Rom
And needs a lot of ram
Cos I have some lag on the root eksplorer
And more
FB sync to much : Timescape, walkman, album, etc. Its sync to fb and I need more ram I guess
Sent from my ST18i using xda premium
mvoid533 said:
No its not enough
Cos I have used smart experia Rom
And needs a lot of ram
Cos I have some lag on the root eksplorer
And more
FB sync to much : Timescape, walkman, album, etc. Its sync to fb and I need more ram I guess
Sent from my ST18i using xda premium
Click to expand...
Click to collapse
Ah well i have completely removed facebook integration and timescape from my rom.
But i have Next Launcher that gets 25-35mb ram and it's locked in ram. Beatiful widgets, switch pro widgets, contacts, whatsapp and more that are open and it never lags with or without zram.
Anyway if your rom needs more ram then this script is not good for the swap to be always on. Better stick to an app that will auto switch it off when mounting to mass storage and to auto start it at boot.
Thank for the suggestion
I used razr m homescreen with circle 3d widgets and new jb Sony home
I think everythink will be ok
Sent from my ST18i using xda premium
CTCaer said:
Nope. It makes use of your sd card. It mounts a certain file there.
A partition for swap was never needed. Also if you use for example noop i/o scheduler for sdcard, this will make the need for swap partition obselete. Because it will not prioritize the writing/read and will work like if you had 2 partitions in sd.
Click to expand...
Click to collapse
well that's sound's good,, thanks,, i'll try it!
mvoid533 said:
Thank for the suggestion
I used razr m homescreen with circle 3d widgets and new jb Sony home
I think everythink will be ok
Sent from my ST18i using xda premium
Click to expand...
Click to collapse
No problem. Not every user has the same needs. Because i made a script doesn't mean that will work good for anyone.
Thats why XDA exist. To share and learn.
My script is for users who need that extra juice only when opening an app that demands a lot of ram.
odie70 said:
well that's sound's good,, thanks,, i'll try it!
Click to expand...
Click to collapse
I uploaded a script for partitioned sd cards if you want.
But yeah that's how it's done.
With deadline and swap in scard, your kernel will prioritize the read/write to the sdcard between reading files for your game and read/writing for swap.
Noop will use 1st in read/write command -> will be the 1st out.
If you use a partition for swap and deadline, android will prioritize the read for your game only.
The scheduling of read writing for swap partition and together with the game will fall to SD Card. Which is like noop. 1st command in ->the 1st to be executed.
I hope i explained the main differences about swap on file or partition.
Install Ram Manager instead. lol
Hey guys .. today i increased my RAM using some methods on the internet but RAM Expander Didn't work it says : swapon sdcard/swapfile.swp invalid argument ... so my problem is i have used . Sawpit Ram Expander and succeed but when i check my ram .. it still the same no changes & nothing happened please help me ASAP
Well you can add physical ram to a phone, you can flash a kernel or bootloader that reallocates some ram, but this is device specific and often takes some very intelligent programmers to make this happen.
The other way is to use virtual ram in the form of a swap partition, this will use sdcard or internal data or whatever partition you make work, function as ram, but it is slower than real ram and depending on how you use your device may make it slower altogether. I believe this is the method of increasing ram that you did, the easiest way to see if it worked is to open a terminal emulator and type
free
The final way is with compcache or zram, both squash ram and has a similar caveat to using swap as it may make things worse.
A few Google or xda searches should explain this a bit more than I have
Sent from my Nexus 4 using XDA Premium 4 mobile app
Thanks for your help
demkantor gonna try zram soon
demkantor said:
Well you can add physical ram to a phone, you can flash a kernel or bootloader that reallocates some ram, but this is device specific and often takes some very intelligent programmers to make this happen.
The other way is to use virtual ram in the form of a swap partition, this will use sdcard or internal data or whatever partition you make work, function as ram, but it is slower than real ram and depending on how you use your device may make it slower altogether. I believe this is the method of increasing ram that you did, the easiest way to see if it worked is to open a terminal emulator and type
free
The final way is with compcache or zram, both squash ram and has a similar caveat to using swap as it may make things worse.
A few Google or xda searches should explain this a bit more than I have
Sent from my Nexus 4 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Rooted !