i've installed linuxdx 004 and i'm trying to use swap.
someone recomnded swapper2 and when i turn on the swaping and reboot, i go into the terminal and write 'free' it says it doesn't have swap memory.
do i need to make a special partition or something??
setting it
swap place /mnt/sdcard/swapfile.swp
swap size 128mb
swappiness 10
then turn it on.
wait until it successfully create the swap file.
if not success,on it again
you will see Turning swap off(file) ok
Related
I am currently using JACHeroski 2.7.3
I don't quite understand the system of linux swap.
I have made the linux swap partition but I don't know how to activate the partition. Is it the same as using Swapper?
How about the old Swapper app? Do I have to uninstall it if I use the linux swap partition?
Regards
Linux Swap is activated on boot automatically as long as you have the partition set up. It follows the same principle as swapper, but its a little faster. I would download the new 2.7.4r2 as it uses compcache in addition, making it even faster still.
You don't need to uninstall swapper, but its no longer necessary as its all automatic at this point.
You can check whether the linux-swap partition is working (don't turn on swapper or you won't be able to tell) by going into terminal and typing:
$su
#free
If you get zeros in the swap line, then its not working, anything other than zeros, and you're golden
Great! Now I understand perfectly
ok so i made a linux-swap partion on my sd card that is 64mb. Now do i need to activate it somehow? or does cynogen do it for me? i tried to search but couldnt find. also do i need update my radio? it is 2.22.19.26I
You need user.conf and userinit.sh files on your ext partition. There's a guide on how to set that up here.
ok and can i have compcache and linux-swap at the same time? or do they do the same thing? also do i need to make a partion for compcache? and i cant find the htc keyboard in 4.2.3.1, does it come with it?
i thought if you have 4.2.3.1 you didnt have to add the files as it does everything for you? am I missing something.
is compcache and linux swap the same thing? and do we need both?
nahanee20 said:
is compcache and linux swap the same thing? and do we need both?
Click to expand...
Click to collapse
lol, no.
Swap is virtual memory. It uses a seperate partition to act as extra RAM, but it's nowhere near comparable to real RAM.
Compcache compresses what's in the RAM, so there's more space to cram files in. The problem is constantly compressing and decompressing files in RAM puts a heavy strain on the CPU.
so do i need to put the usernit files on or did this rom already do it?
does anyone know how to use the user.config app to do this?
nahanee20 said:
does anyone know how to use the user.config app to do this?
Click to expand...
Click to collapse
You DO NOT have to add any user int files to your sd for swap to work.
Its already rolling if you installed correctly.
go to terminal and use the print command to view your allocated spaces for each ext
Better yet, use the "free" command to see if it is really being used. I am pretty sure Cynanogen does not use a swap partition by default. It needs to be enabled. A easy way to check and setup your swap it to download swapper.
When I type free in the terminal I see 0 for total, used and free swap. I made an ext4 and a 32mb swap partition on my sd card. How do I enable swap on Cyanogen 4.2.5?
beav_35 said:
When I type free in the terminal I see 0 for total, used and free swap. I made an ext4 and a 32mb swap partition on my sd card. How do I enable swap on Cyanogen 4.2.5?
Click to expand...
Click to collapse
search user.conf app on market
hey whats up guys, just a quick question, if use cud help me out pleaseeee! ok so im trying to partition my sd with a swap of 96mb, i have the new recovery from amon, and it will partition the sd card for you, so ill let the recovery do it, but when i boot up my phone and go to terminal emulation and type the command 'free' it only shows a mem total of 107184, and thats cuz i have a 10mb hack, but shows 0 for swap, im i doing something wrong?. thanks again guys
The rom has to use swap, it is not automatic like a2sd. There is a visual application that will setup the necessary files below.
http://www.cyrket.com/p/android/com.aac.userconf/
ok so i downloaded the app, it seems a bit confusing im new to all this. but should i jus change the value on linux swap to 96, push, reboot?
I am having touble disabling swap. I turned off swapper, deleted the .swp file, turned swappiness to 0 in swapper to disable it.
I even tried
su
swapoff /dev/block/mmcblk0p3
Click to expand...
Click to collapse
In terminal, and nothing...
When I go into terminal and check.
su
free
Click to expand...
Click to collapse
It shows I still have swap on.
Can anyone point me into right direction. Or tell me how I can grab userconf file and edit that to disable it.
I really dont want to repartition all over again...
First do
cat /proc/swaps
to make sure that swap in in the the correct place. When i did it I found that it was not in the same place as it was before.
Mines in /dev/block/ramzswap0 not /dev/block/mmcblk0p3
dont have to fully repartition, just grab a ubuntu live cd, and use gparted to blank out the swap partition.... if theres no swap partiton, and no swap file, then there's NO WAY to have swap on... or if you know what your doing boot into recovery and use the CLI gparted there to blank the swap space...
garz said:
I am having touble disabling swap. I turned off swapper, deleted the .swp file, turned swappiness to 0 in swapper to disable it.
I even tried
In terminal, and nothing...
When I go into terminal and check.
It shows I still have swap on.
Can anyone point me into right direction. Or tell me how I can grab userconf file and edit that to disable it.
I really dont want to repartition all over again...
Click to expand...
Click to collapse
Typically, to disable swap, you need to undo what you did to ENABLE it.
And CM does NOT automatically set up swap, so you would have had to intervene manually.
ALTERNATIVELY, you have, not swap, but COMPCACHE -- is you "swap" showing as 24 MB? If it is, you can just go into spare parts to disable it.
I'll ditto that
lbcoder said:
Typically, to disable swap, you need to undo what you did to ENABLE it.
And CM does NOT automatically set up swap, so you would have had to intervene manually.
ALTERNATIVELY, you have, not swap, but COMPCACHE -- is you "swap" showing as 24 MB? If it is, you can just go into spare parts to disable it.
Click to expand...
Click to collapse
Yup, same here with CM7.2, was amazed to find that swap was supposedly still on, but it was compcache I was really worried I'd have a wrecked sd card on my hands
Hello,i am new in this community
i am little confused how to change swapiness in my mini?should i change it in terminal?
curently i am usinig S2E, and a 256 mb swap partition.
download swapper from market it have the option to set swappiness in the setting but choose the swap partition instead of swap file