Google Android Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Google Android Forum

Google Android Forum | Google Android - Homepage
 
HomeSearchLatest imagesRegisterLog in

 

 Turning Swap on an off

Go down 
AuthorMessage
QMan

QMan


Posts : 68
Kudos : 91
Join date : 2009-10-04
Age : 114

Turning Swap on an off Empty
PostSubject: Turning Swap on an off   Turning Swap on an off I_icon_minitimeThu Nov 26, 2009 9:43 pm

If you have your SD card partitioned with a linux-swap file and would like to turn it on or off, (to see performance differences) you can do so in terminal emulator by entering the following commands

su to gain superuser access

swapon /dev/block/mmcblk0p3 -----------------to turn it on, the 0 in 0p3 is a zero.
swapoff /dev/block/mmcblk0p3 -----------------to turn it off, the 0 in 0p3 is a zero

you can check your free memory status by typing free after superuser access as well. It will provide total used memoryand free memory for both phone mem ory and swap file (if used)
Back to top Go down
http://www.spotonyourlung.com
 
Turning Swap on an off
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Google Android Forum :: G1/Dream Forum :: G1/Dream Root-
Jump to: