Guest miragebg Posted January 4, 2010 Report Posted January 4, 2010 Hello! How can I check if I've properly stopped my ramzswap? And what I have to do if I want to turn it on again? Thank you!
Guest kendon Posted January 4, 2010 Report Posted January 4, 2010 Hello! How can I check if I've properly stopped my ramzswap? adb shell cat /proc/ramzswap this gives you the stats of your compressed ram. if you don't have compcache enabled then the file doesn't exist. And what I have to do if I want to turn it on again? Thank you! what did you do to disable it? just reverse it...
Guest miragebg Posted January 5, 2010 Report Posted January 5, 2010 (edited) I used this method with androidsdk via usb to PC, but it seems not working, because still have Ramzswap..: # adb remount # adb pull /system/init.d/ramzswap.sh ramzswap.sh # vim ramzswap.sh (actually here it says- no "vim" command, may be thats the problem) # adb push ramzswap.sh /system/init.d/ramzswap.sh First I changed swapon to swapoff in the ramzswap.sh, after that pushed it successfully.(may be this I shouldn't did) Now after I tried to reduce ramzswap file to 80MB and revert back "swapon" in the line using notepad and when I tried to push it on the phone, adb said: Failed to copy "ramzswap.sh" to " system/init........". Read-only file system. Second- when type adb shell cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor it says: No such a file or dir What does it mean? Can I just reinstall the kernel via Recovery? Edited January 5, 2010 by miragebg
Guest Dan Mullen Posted January 5, 2010 Report Posted January 5, 2010 I used this method with androidsdk via usb to PC, but it seems not working, because still have Ramzswap..: # adb remount # adb pull /system/init.d/ramzswap.sh ramzswap.sh # vim ramzswap.sh (actually here it says- no "vim" command, may be thats the problem) # adb push ramzswap.sh /system/init.d/ramzswap.sh First I changed swapon to swapoff in the ramzswap.sh, after that pushed it successfully.(may be this I shouldn't did) Now after I tried to reduce ramzswap file to 80MB and revert back "swapon" in the line using notepad and when I tried to push it on the phone, adb said: Failed to copy "ramzswap.sh" to " system/init........". Read-only file system. Second- when type adb shell cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor it says: No such a file or dir What does it mean? Can I just reinstall the kernel via Recovery? I think you get "no such file or directory" because compcache is turned off. Did you ensure you were root in the adb shell? Did you remount?
Guest kendon Posted January 5, 2010 Report Posted January 5, 2010 I used this method with androidsdk via usb to PC, but it seems not working, because still have Ramzswap..: # adb remount # adb pull /system/init.d/ramzswap.sh ramzswap.sh # vim ramzswap.sh (actually here it says- no "vim" command, may be thats the problem) # adb push ramzswap.sh /system/init.d/ramzswap.sh idk where you got those instructions, but they suck. "vim" is an editor, the third line should actually tell you to open the file with vim, change it and then you put it back with the command in the third line. which os are you using? if on windows make sure you use an editor that is able to deal with unix style line breaks, i.e. notepad++. First I changed swapon to swapoff in the ramzswap.sh, after that pushed it successfully.(may be this I shouldn't did) Now after I tried to reduce ramzswap file to 80MB and revert back "swapon" in the line using notepad and when I tried to push it on the phone, adb said: Failed to copy "ramzswap.sh" to " system/init........". Read-only file system. you need to do adb remount before writing to /system. Second- when type adb shell cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor it says: No such a file or dir What does it mean? this file has nothing to do with ramzswap, it is the cpu frequency scaling governor. this does not work in recovery, the phone needs to be powered up. Can I just reinstall the kernel via Recovery? probably your best shot to get your system to a stable state...
Guest miragebg Posted January 5, 2010 Report Posted January 5, 2010 (edited) Thank you very much, guys! Please, tell me only this: How to stop ramzswap? Do I need swap partition on the SD card after do this? Which lines I have to change in ramzswap.sh: /system/xbin/insmod /system/lib/modules/tun.ko /system/xbin/insmod /system/lib/modules/lzo_decompress.ko /system/xbin/insmod /system/lib/modules/lzo_compress.ko /system/xbin/insmod /system/lib/modules/xvmalloc.ko /system/xbin/insmod /system/lib/modules/ramzswap.ko disksize_kb=80000 /system/xbin/swapon /dev/block/ramzswap0 echo "10" > /proc/sys/vm/swappiness echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor Edited January 5, 2010 by miragebg
Guest kendon Posted January 5, 2010 Report Posted January 5, 2010 /system/xbin/insmod /system/lib/modules/lzo_decompress.ko /system/xbin/insmod /system/lib/modules/lzo_compress.ko /system/xbin/insmod /system/lib/modules/xvmalloc.ko /system/xbin/insmod /system/lib/modules/ramzswap.ko disksize_kb=80000 /system/xbin/swapon /dev/block/ramzswap0 delete or comment out these lines, then ramzswap is disabled. you don't need a swap partition, it is optional.
Guest dr_ysp Posted January 5, 2010 Report Posted January 5, 2010 delete or comment out these lines, then ramzswap is disabled. you don't need a swap partition, it is optional. wow gr8 thanks kendon can u tell me how to disable compcache
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now