mfrw / compcache

Automatically exported from code.google.com/p/compcache
0 stars 0 forks source link

swapon fails on android G1 (ARM) #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Compiling compcache with the latest CodeSourcery toolchain for arm against
kernel 2.6.27.
Push compcache modules to device.
insmod works fine, dmesg reports normal output
swapon reboots the device.

This however works fine in the android emulator, I have no idea why this
happens.

Any ideas?  Or ideas on how to debug this?  I'm thinking put some sleeps in
whatever code is triggered on a swapon, but I'm not sure where to look.  If
you could give me any clues that'd be very helpfull.

Original issue reported on code.google.com by aagaa...@gmail.com on 25 Jun 2009 at 7:32

GoogleCodeExporter commented 9 years ago
Thank you all for your testing efforts. The fix is now committed to default and
multiple_rzs branch. So, it will now be included in compcache-0.6.

Original comment by nitingupta910@gmail.com on 16 Jul 2009 at 9:51

GoogleCodeExporter commented 9 years ago
Just FYI, compcache-0.6pre2 now includes this fix.

Original comment by nitingupta910@gmail.com on 20 Jul 2009 at 5:34

GoogleCodeExporter commented 9 years ago
 Hello
     I am trying to implement ramzswap with the kernel 2.6.34.Since the required patch is with in the kernel itself i did not use any patch.I am trying cross compile to ARM platform.The module ramzswap.o was successfully loaded

Block devices:
  1 ramdisk
259 blkext
  7 loop
254 ramzswap 

but when i tried to use the rzscontrol for
rzscontrol /dev/ramzswap0 --init
 i got an error saying 
bash: rzscontrol: not found
can any one suggest me a solution

Original comment by aav...@gmail.com on 2 Aug 2010 at 5:21

GoogleCodeExporter commented 9 years ago
> Since the required patch is with in the kernel itself i did not use any patch

Are you referring to "swap notify" patch? AFAIK, its only there in (upcoming) 
2.6.35 kernel. Also, make sure that 'CONFIG_SWAP_FREE_NOTIFY' line is 
uncommented in compat.h file, so this feature is actually used.

> bash: rzscontrol: not found

Most probably reason for this is rzscontrol Makefile hardcodes "gcc" as the 
compiler So, it will end up NOT using your cross-compiler. rzscontrol shows 
weird behaviour when compiled using x86 compiler and used on ARM.  Try 
compiling rzscontrol directly with the cross-compiler.

Anyways,  I hope to release a new version of compcache by end of this week that 
does not require rzscontrol (everything is done through sysfs).

Original comment by nitingupta910@gmail.com on 2 Aug 2010 at 5:41

GoogleCodeExporter commented 9 years ago
> Try compiling rzscontrol directly with the cross-compiler.
    I tried this and ramzswap was successfully implemented.
    Thanks a lot

Original comment by aav...@gmail.com on 3 Aug 2010 at 5:43