[KERNEL] FuguMod 2.4 beta3 (jfs,ext2/3/4,reiserfs, overclock, undervolt and more)

Search This thread

marcellusbe

Senior Member
Dec 29, 2010
746
4,577
Québec City
Hello,

Here is Fugumod (based on http://forum.xda-developers.com/showthread.php?t=812836) ported to I5800. It allows users to convert without data loss all your filesystems to jfs/ext2/ext3/ext4/reiserfs and rfs.

Included in the image are (in Fugumod 2.4 beta3 Standard and 800Mhz edition):
  • Root ADB
  • own busybox 1.19
  • TUN support
  • No more RFS at all (if you want) (nearly, /efs stay rfs)
  • Compcache support
  • CIFS support
  • NFS modules
  • Security fixes
  • TinyRCU (default)
  • SIO Simple I/O scheduler (default)
  • BFQ (info : http://algo.ing.unimo.it/people/paolo/disk_sched/)
  • Autogroup scheduler patch v4
  • jhash3 patch
  • Support for early startup scripts (/system/etc/init.d)
  • Filesystems: rfs, ext2, ext3, ext4, btrfs, jfs*, reiserfs*
  • Support /data to sdcard
  • Support 1% battery steps mod
  • Support UV and pimpmycpu app.
  • Voodoo Sound v8
  • Overclock 800Mhz (no voltage raised)**

* : on a separate build
** : 800Mhz edition only

-----------------------------------------------------------------------------
Included in the image are (in Fugumod 2.2 Bleeding Edge version):
Like the original Fugumod, there is a "bleeding edge" version with advanced and experimental features I try to add.

/!\ This version is not STABLE and may corrupt your datas, make your phone not responding, crashing .... You have been warned /!\

  • Root ADB
  • own busybox 1.18.4
  • TUN support
  • No more RFS at all (if you want) (nearly, /efs stay rfs)
  • Compcache (info : http://code.google.com/p/compcache/)
  • CIFS support
  • Security fixes
  • TinyRCU
  • Support for early startup scripts (/system/etc/init.d)
  • SDcard speedup fix included (thx Kyrillos)
  • Filesystems: rfs, jfs, ext2, ext3, ext4, reiserfs, nilfs2, btrfs (will be used for /data on sdcard soon)
  • Overclock up to 1300Mhz : Frequencies : 83-166-333-667-866-1066-1300
  • 500Hz
-----------------------------------------------------------------------------
Read the whole post (except the changelog) before attempting to install

THERE IS NO MORE AUTOMATIC CONVERSION.
Conversion will occurs only if a fs.convert file is present in /sdcard/Android/data/fugumod.

I suggest that you start convert /cache and see that is working and then, if OK, convert /data and /system.

Custom rom makers could use this kernel to convert the filesystem.

Requirements
You must have at least 400Mb free on your SD card storage for initial conversion if you don't have any apps installed. If you have apps already installed, you must ensure that you have at least the same size as you data storage free on the sdcard.

What does Fugumod do ?
Fugumod convert to any filesystem supported by creating a fs.convert file in the directory /Android/data/fugumod/ on the sdcard. In exemple, you want to convert /data partition (/dev/block/stl7) to ext4, just make a fs.convert file containing :
Code:
stl7 ext4
or two partitions in a row :
Code:
stl7 jfs
stl8 ext2

How to use it ?
Flash with Odin as "One package" option.

How does it work ?
Once you create your fs.convert file in /sdcard/Android/data/fugumod/fs.convert, the conversion will start on the next reboot.
Depending how many partition you want to convert and the speed of your sdcard, the process could take some times ... 5, 10, 15 minutes .. do NOT interrupt the process or you will have to reflash a whole ROM.

When the conversion process is finished, the phone start.

How to check if it worked ?
Type : adb shell mount
and look for the partition you converted : you should see your new filesystem.
Below, I converted /data (stl7) and /cache (stl8) from rfs to ext4 :
Code:
D:\android-sdk\platform-tools>adb shell mount
rootfs / rootfs rw 0 0
proc /proc proc rw,relatime 0 0
sys /sys sysfs rw,relatime 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/stl6 /system rfs ro,nodev,noatime,nodiratime,vfat,log_off,check=no,gi
d/uid/rwx,iocharset=cp437 0 0
/dev/block/stl7 /data ext4 rw,nosuid,nodev,noatime,nodiratime,commit=20,barrier=
1,data=ordered 0 0
/dev/block/stl8 /cache ext4 rw,nosuid,nodev,noatime,nodiratime,commit=20,barrier
=1,data=ordered 0 0
/dev/block/stl4 /efs rfs rw,nosuid,nodev,relatime,vfat,llw,check=no,gid/uid/rwx,
iocharset=cp437 0 0

How to desinstall Fugumod ?
2 solutions :
- Flash a complete ROM
or
- Take a custom kernel or a standard kernel and convert all the partitions to a filesystem supported by the new kernel and then flash it.

How to change a frequency ?
You can change by yourself the frequencies in all overclocked versions of fugumod (v2.4+ only). It's possible also in the 800 Mhz edition.
There is an entry in /sys/devices/system/cpu/cpu0/cpufreq/plls_table where you can put your own value for APLL.

Before doing this, set "PERFORMANCE" governor on and min and max frequencies to the maximum
Example : in the 800Mhz edition :
Code:
# cat /sys/devices/system/cpu/cpu0/cpufreq/plls_table
index - apll
0 81900301
#

now, you can change this value and put 834Mhz (0x81a10301) on the index 0 (the highest freq):
Code:
# echo "0 0x81a10301" > /sys/devices/system/cpu/cpu0/cpufreq/plls_table
As usual, use it at your OWN risk.

This should work also with Loop based lagfix. This need to be tested more... Backup applications have not been tested already. Please give feedback.

You can find all the scripts and source code on github : https://github.com/sdadier

------ Note for startups scripts
- Put your script in /system/etc/init.d
- Scripts with Filename starting with E* (earlystartup scripts) are executed before script with filename starting with S* (users scripts)
- Scripts are executed before playlogo and after init.rc
- Log is available in /res/user.log


Thanks to nikademus the original author of fugumod and sztupy for universal lagfix initramfs.
Thanks to Supercurio for voodoo additions.
Thnaks to Cpasjuste for pimpmycpu and help.
Thanks to s3th.g3ck9, FadeFx and others I forgot for bugfixes and ideas, The Dark Lestat for cooking us the best ROM here


--> DOWNLOAD : http://code.google.com/p/fugumod-i5800/downloads/list


This project takes a lot of time and work.
Please, consider donating to help further development : http://forum.xda-developers.com/donatetome.php?u=3404423

Thanks for your support!










Changelog :

2.4 beta3 (05/20/2011) :
- Fix lags (ksm)
- Fix app2sd froyo way ... should fix data2sd
- Fix screen flickering
- Set default headphones volume to max (voodoo)

2.4 beta2 (05/18/2011) :
- Fix Conservative governor
- Fix undervolt not working on 800Mhz edition

2.4 beta1 (05/18/2011) :
- SIO scheduler
- Removed NILFS2
- Autogroup scheduler
- VS v8
- Support pimpmycpu app
- sysfs files to tweaks voltages and frequencies
- fix clicks/cuts sounds during calls


2.3 (04/11/2011) :
Removed due to severe issues

2.3 Bleeding Edge (04/11/2011) :
Removed due to severe issues

2.2 final (04/06/2011) :
- Updated ext4 with ext4-patches-for-2.6.32.11--14 (same perfs as before but more mount options supported)
- Added nilfs_cleanerd garbage collector as service (not tested)
- Compcache disabled : you can always start it with # sh /sbin/ramzswap.sh or put a script that run it in init.d

2.2 Bleeding Edge (04/06/2011) :
- Overclock s5p6442 upto 1300 Mhz : use SetCPU to set the frequencies or via /sys/devices/system/cpu/cpu0/cpufreq/ (not tested)
- Updated ext4 with ext4-patches-for-2.6.32.11--14 (same perfs as before but more mount options supported)
- Added nilfs_cleanerd garbage collector as service (not tested)
* Compiled with TinyRCU, CFQ & 500Hz
2.2 beta :
- added BFQ (default I/O scheduler)
- added init.d support
- fix SDcard speed
2.1 :
- Fixed /efs not mounting correctly
- Added TinyRCU
2.0 :
- Based on fugumod 1.8
- Arm 2010-09 g++
1.2.1 :
- fixed version
1.2 :
- Fix /efs
- add NILFS2 support (experimental)
1.1 :
- root adb
1.0 :
- Initial release
 

Attachments

  • pimpmycpu.png
    pimpmycpu.png
    20.5 KB · Views: 5,094
  • voodoo.png
    voodoo.png
    26.7 KB · Views: 4,663
Last edited:

Kaleptik

Inactive Recognized Developer
Jun 3, 2009
3,801
1,229
28
www.acidhazardrom.com
Hello,

Here is Fugumod (based on http://forum.xda-developers.com/showthread.php?t=812836) ported to I5800. It allows users to convert without data loss all your filesystems to jfs/ext4/reiserfs.

Not all original features are ported but they will be if possible in the future.

Included in the image are:
- own busybox 1.18.4
- TUN support
- No more RFS at all
- compcache
- filesystems: jfs, ext4, reiserfs
- CIFS support
- security fixes
- filesystems: jfs, ext4, reiserfs, btrfs

Read the whole post (except the changelog) before attempting to install

This kernel converts all rfs based /data,/cache and /system to jfs automatically. It also makes /efs on jfs or ext4, but for safety purposes /dev/block/stl4 is still rfs formatted, but not mounted anymore.

Odin flashable kernel (select one package when flashing with odin.)

Custom rom makers could use this kernel to convert the filesystem.

You can convert to any filesystem supported by creating a fs.convert file in the directory /fugumod/ on the sdcard. In exemple, you want to convert /data partition (/dev/block/stl7) to ext4, just make a fs.convert file containing :
Code:
stl7 ext4

The filesystems conversion will occurs at reboot : dont touch your phone for about 5 min (depending how many partition should be converted).

- You don't need to do anything, just flash the kernel without repartition and wait some minutes for the first boot.
- You must have at least 400Mb free on your SD card storage for initial conversion if you don't have any apps installed. If you have apps already installed, you must ensure that you have at least the same size as you data storage free on the sdcard.

- The cleanest way to revert the mod is to reflash a complete ROM. But it also works by converting filesystems to ext4 and flash one of the numerous kernel which support full ext4
- Do NOT interrupt your first boot or you will have to reflash a full system.


As usual, use it at your OWN risk.

Tested on XXJPM, Lestatious ROM, Kyrillos V3 and InDroid 3.0 with success. This should work also with Loop based lagfix. This need to be tested more... Backup applications have not been tested already. Please give feedback.

Thank to nikademus the original author of fugumod.

Changelog :
1.0 : Initial release

Posted in general section since i could not post in dev section.

You're kidding right? Straight up best kernel so far if true. Does this kernel have adb root?

Sent from my Lestatious v1.4.5 Galaxy 3 FROYO
 
Last edited:
  • Like
Reactions: okenshino

ketotu

Member
Dec 5, 2010
27
1
what is the improvment to Kyrillo's Rom (Ver.3.0 final) ???

Gives it a better performance, or is it something, what not everybody need?
 

marcellusbe

Senior Member
Dec 29, 2010
746
4,577
Québec City
Originally Posted by The Dark Lestat
You're kidding right? Straight you best kernel so far if true. Does this kernel have adb root?

Sent from my Lestatious v1.4.5 Galaxy 3 FROYO
looks [email protected] can we use it on your rom??

default.prop is :
#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.secure=1
ro.allow.mock.location=0
ro.debuggable=1
persist.service.adb.enable=1

You must SU to get root.
Note that Im not a kernel guru and the kernel could be optimised more.

The best thing in Fugumod is the initramfs and the pre-init.sh script that convert all the filesystems without any data loss.

Notes:
- the app Fugumodapp work with the kernel but I didnt try to use it to make a fs.convert file.
- I successfully added compcache. /dev/ramzswap0 was created and initialised but I dont know yet if it brings improvements to the phone or not.


i flashed the kernel and i'm not getting any network on my phone...:(


going back to lestat's original package:)
Really?. I got this problem one time but network get back after a reboot.
 
Last edited:
  • Like
Reactions: pante5

Kaleptik

Inactive Recognized Developer
Jun 3, 2009
3,801
1,229
28
www.acidhazardrom.com
default.prop is :
#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.secure=1
ro.allow.mock.location=0
ro.debuggable=1
persist.service.adb.enable=1

You must SU to get root.
Note that Im not a kernel guru and the kernel could be optimised more.

The best thing in Fugumod is the initramfs and the pre-init.sh script that convert all the filesystems without any data loss.

Notes:
- the app Fugumodapp work with the kernel but I didnt try to use it to make a fs.convert file.
- I successfully added compcache. /dev/ramzswap0 was created and initialised but I dont know yet if it brings improvements to the phone or not.



Really?. I got this problem one time but network get back after a reboot.

Is it possible for you to add it?

Sent from my Lestatious v1.4.5.1 Galaxy 3 FROYO
 

ron_gangte

Senior Member
Nov 24, 2010
1,081
127
New Delhi
Eyy.. Lestat.. So shall I flash it too??
What if it doesn't work??
How do I flash the zImage alone from your ROM??

Sent from my GT-I5801 Lestatious V2 (Build 1.4.5.1)
 

Kaleptik

Inactive Recognized Developer
Jun 3, 2009
3,801
1,229
28
www.acidhazardrom.com
Eyy.. Lestat.. So shall I flash it too??
What if it doesn't work??
How do I flash the zImage alone from your ROM??

Sent from my GT-I5801 Lestatious V2 (Build 1.4.5.1)

Just flash Sam's Kernel. but don't flash it yet. I'm working on things. I'm gonna release a 1.4.5.5 today.

EDIT: I'm gonna host this kernel.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 66
    Hello,

    Here is Fugumod (based on http://forum.xda-developers.com/showthread.php?t=812836) ported to I5800. It allows users to convert without data loss all your filesystems to jfs/ext2/ext3/ext4/reiserfs and rfs.

    Included in the image are (in Fugumod 2.4 beta3 Standard and 800Mhz edition):
    • Root ADB
    • own busybox 1.19
    • TUN support
    • No more RFS at all (if you want) (nearly, /efs stay rfs)
    • Compcache support
    • CIFS support
    • NFS modules
    • Security fixes
    • TinyRCU (default)
    • SIO Simple I/O scheduler (default)
    • BFQ (info : http://algo.ing.unimo.it/people/paolo/disk_sched/)
    • Autogroup scheduler patch v4
    • jhash3 patch
    • Support for early startup scripts (/system/etc/init.d)
    • Filesystems: rfs, ext2, ext3, ext4, btrfs, jfs*, reiserfs*
    • Support /data to sdcard
    • Support 1% battery steps mod
    • Support UV and pimpmycpu app.
    • Voodoo Sound v8
    • Overclock 800Mhz (no voltage raised)**

    * : on a separate build
    ** : 800Mhz edition only

    -----------------------------------------------------------------------------
    Included in the image are (in Fugumod 2.2 Bleeding Edge version):
    Like the original Fugumod, there is a "bleeding edge" version with advanced and experimental features I try to add.

    /!\ This version is not STABLE and may corrupt your datas, make your phone not responding, crashing .... You have been warned /!\

    • Root ADB
    • own busybox 1.18.4
    • TUN support
    • No more RFS at all (if you want) (nearly, /efs stay rfs)
    • Compcache (info : http://code.google.com/p/compcache/)
    • CIFS support
    • Security fixes
    • TinyRCU
    • Support for early startup scripts (/system/etc/init.d)
    • SDcard speedup fix included (thx Kyrillos)
    • Filesystems: rfs, jfs, ext2, ext3, ext4, reiserfs, nilfs2, btrfs (will be used for /data on sdcard soon)
    • Overclock up to 1300Mhz : Frequencies : 83-166-333-667-866-1066-1300
    • 500Hz
    -----------------------------------------------------------------------------
    Read the whole post (except the changelog) before attempting to install

    THERE IS NO MORE AUTOMATIC CONVERSION.
    Conversion will occurs only if a fs.convert file is present in /sdcard/Android/data/fugumod.

    I suggest that you start convert /cache and see that is working and then, if OK, convert /data and /system.

    Custom rom makers could use this kernel to convert the filesystem.

    Requirements
    You must have at least 400Mb free on your SD card storage for initial conversion if you don't have any apps installed. If you have apps already installed, you must ensure that you have at least the same size as you data storage free on the sdcard.

    What does Fugumod do ?
    Fugumod convert to any filesystem supported by creating a fs.convert file in the directory /Android/data/fugumod/ on the sdcard. In exemple, you want to convert /data partition (/dev/block/stl7) to ext4, just make a fs.convert file containing :
    Code:
    stl7 ext4
    or two partitions in a row :
    Code:
    stl7 jfs
    stl8 ext2

    How to use it ?
    Flash with Odin as "One package" option.

    How does it work ?
    Once you create your fs.convert file in /sdcard/Android/data/fugumod/fs.convert, the conversion will start on the next reboot.
    Depending how many partition you want to convert and the speed of your sdcard, the process could take some times ... 5, 10, 15 minutes .. do NOT interrupt the process or you will have to reflash a whole ROM.

    When the conversion process is finished, the phone start.

    How to check if it worked ?
    Type : adb shell mount
    and look for the partition you converted : you should see your new filesystem.
    Below, I converted /data (stl7) and /cache (stl8) from rfs to ext4 :
    Code:
    D:\android-sdk\platform-tools>adb shell mount
    rootfs / rootfs rw 0 0
    proc /proc proc rw,relatime 0 0
    sys /sys sysfs rw,relatime 0 0
    tmpfs /dev tmpfs rw,relatime,mode=755 0 0
    devpts /dev/pts devpts rw,relatime,mode=600 0 0
    none /acct cgroup rw,relatime,cpuacct 0 0
    tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
    none /dev/cpuctl cgroup rw,relatime,cpu 0 0
    /dev/block/stl6 /system rfs ro,nodev,noatime,nodiratime,vfat,log_off,check=no,gi
    d/uid/rwx,iocharset=cp437 0 0
    /dev/block/stl7 /data ext4 rw,nosuid,nodev,noatime,nodiratime,commit=20,barrier=
    1,data=ordered 0 0
    /dev/block/stl8 /cache ext4 rw,nosuid,nodev,noatime,nodiratime,commit=20,barrier
    =1,data=ordered 0 0
    /dev/block/stl4 /efs rfs rw,nosuid,nodev,relatime,vfat,llw,check=no,gid/uid/rwx,
    iocharset=cp437 0 0

    How to desinstall Fugumod ?
    2 solutions :
    - Flash a complete ROM
    or
    - Take a custom kernel or a standard kernel and convert all the partitions to a filesystem supported by the new kernel and then flash it.

    How to change a frequency ?
    You can change by yourself the frequencies in all overclocked versions of fugumod (v2.4+ only). It's possible also in the 800 Mhz edition.
    There is an entry in /sys/devices/system/cpu/cpu0/cpufreq/plls_table where you can put your own value for APLL.

    Before doing this, set "PERFORMANCE" governor on and min and max frequencies to the maximum
    Example : in the 800Mhz edition :
    Code:
    # cat /sys/devices/system/cpu/cpu0/cpufreq/plls_table
    index - apll
    0 81900301
    #

    now, you can change this value and put 834Mhz (0x81a10301) on the index 0 (the highest freq):
    Code:
    # echo "0 0x81a10301" > /sys/devices/system/cpu/cpu0/cpufreq/plls_table
    As usual, use it at your OWN risk.

    This should work also with Loop based lagfix. This need to be tested more... Backup applications have not been tested already. Please give feedback.

    You can find all the scripts and source code on github : https://github.com/sdadier

    ------ Note for startups scripts
    - Put your script in /system/etc/init.d
    - Scripts with Filename starting with E* (earlystartup scripts) are executed before script with filename starting with S* (users scripts)
    - Scripts are executed before playlogo and after init.rc
    - Log is available in /res/user.log


    Thanks to nikademus the original author of fugumod and sztupy for universal lagfix initramfs.
    Thanks to Supercurio for voodoo additions.
    Thnaks to Cpasjuste for pimpmycpu and help.
    Thanks to s3th.g3ck9, FadeFx and others I forgot for bugfixes and ideas, The Dark Lestat for cooking us the best ROM here


    --> DOWNLOAD : http://code.google.com/p/fugumod-i5800/downloads/list


    This project takes a lot of time and work.
    Please, consider donating to help further development : http://forum.xda-developers.com/donatetome.php?u=3404423

    Thanks for your support!










    Changelog :

    2.4 beta3 (05/20/2011) :
    - Fix lags (ksm)
    - Fix app2sd froyo way ... should fix data2sd
    - Fix screen flickering
    - Set default headphones volume to max (voodoo)

    2.4 beta2 (05/18/2011) :
    - Fix Conservative governor
    - Fix undervolt not working on 800Mhz edition

    2.4 beta1 (05/18/2011) :
    - SIO scheduler
    - Removed NILFS2
    - Autogroup scheduler
    - VS v8
    - Support pimpmycpu app
    - sysfs files to tweaks voltages and frequencies
    - fix clicks/cuts sounds during calls


    2.3 (04/11/2011) :
    Removed due to severe issues

    2.3 Bleeding Edge (04/11/2011) :
    Removed due to severe issues

    2.2 final (04/06/2011) :
    - Updated ext4 with ext4-patches-for-2.6.32.11--14 (same perfs as before but more mount options supported)
    - Added nilfs_cleanerd garbage collector as service (not tested)
    - Compcache disabled : you can always start it with # sh /sbin/ramzswap.sh or put a script that run it in init.d

    2.2 Bleeding Edge (04/06/2011) :
    - Overclock s5p6442 upto 1300 Mhz : use SetCPU to set the frequencies or via /sys/devices/system/cpu/cpu0/cpufreq/ (not tested)
    - Updated ext4 with ext4-patches-for-2.6.32.11--14 (same perfs as before but more mount options supported)
    - Added nilfs_cleanerd garbage collector as service (not tested)
    * Compiled with TinyRCU, CFQ & 500Hz
    2.2 beta :
    - added BFQ (default I/O scheduler)
    - added init.d support
    - fix SDcard speed
    2.1 :
    - Fixed /efs not mounting correctly
    - Added TinyRCU
    2.0 :
    - Based on fugumod 1.8
    - Arm 2010-09 g++
    1.2.1 :
    - fixed version
    1.2 :
    - Fix /efs
    - add NILFS2 support (experimental)
    1.1 :
    - root adb
    1.0 :
    - Initial release
    5
    Everyone : I will post on this thread the next beta build so do not ask anymore.
    5
    but we have no choice as one % battery mod in in alpha kernels,
    Maybe its time for marcellusbe to make a public beta for non oc and oc(with 1% battery mod).
    Hopefully next alpha(18) will come with least bugs,
    I find alpha 17 to be very fine with just few bugs which can be easily solved(temporarily) with a restart.

    As soon as I fix the annoying clicks/cuts sounds during calls ....
    2.4 seems to be fast and smooth but this bug must be solved before a beta release.
    4
    I tested 950 as max freq. and it works for me in 800mhz version,
    but i dont want to type it after every restart.
    How can i create a init.d script for it?
    I used
    echo "0 0x81DB0301" > /sys/devices/system/cpu/cpu0/cpufreq/plls_table

    create a file, i used the name: "S04_950mhz"
    write
    Code:
    echo "0 0x81DB0301" > /sys/devices/system/cpu/cpu0/cpufreq/plls_table
    in the file and save it.

    now use terminal and type:
    Code:
    adb shell mount -o remount,rw /dev/block/stl6 /system
    adb push S04_950mhz /etc/init.d
    3
    HOWTO enable compcache in 2.2BE

    I made a real simple script to enable it, all it does is:
    1) install v1.18.0 busybox, it has swapon/off commands. your current busybox will be backupped in /sdcard/tmp/busybox_backup
    2) installs marcellustube's script in /etc/init.d/ so it runs at boottime
    3) IT'S ONE CLICK :p

    S) To check everything works, after a reboot do a: "adb shell free"
    Code:
    >adb shell free
                  total         used         free       shared      buffers
      Mem:       251048       217420        33628            0         5364
     Swap:        62752          448        62304
    Total:       313800       217868        95932
    It should look like this!

    WARNING: In order to make the commands work you need some sort of busybox already in your system (the script uses "cp","mv","rm")

    PS: actually is possible busybox it's installed in another dir (than /system/xbin/ as kyrillos and many roms), in that case my script WONT replace it, but compcache would still work!