View Single Post
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#229
Hey,

my experiences are not that good.
Tried around with vi_'s settings, went back with swappolube to ddfault settings (yes before also esets). But it is still not as snappy as with just swap on SD. App launching and task switching is just fine now again. With ramzswap enabled always a bit behind, subjective.
Tried around with those parameters, but to no avail (some of them I have nfc what they do).

My swap usage is quite higher than vi_'s.
Code:
~ $ cat /proc/swaps 
Filename				Type		Size	Used	Priority
/dev/mmcblk0p3                          partition	786424	0	-1
/dev/loop7                              partition	786424	226948	0
Maybe swap usage higher than ramzswap size is the problem?

Furthermore I noticed with these settings a huge amount of data written on SD swap: 1,5GB a day. Causing my swap refresh to become activated twice a day. where it normally is at least 1-2 days.
And the battery felt a bit like a looser (estimated 1000mAh).

Just my experiences. Hope we can get it to run for everybody easily. and gain RAM. speed, ...

BTW: mr_jrt, i think you have small bug in swapset.
if -s checks for file size -gt 0. but /dev/ramzswap always returns 0
so I modified a bit (also timeout will not activate) and this runs in my multiboot (so I may decide to activate or not via keyboard).
PHP Code:
        #peterleinchen
        
if [ -/lib/modules/current/ramzswap.ko ]
        
then
            log 
"modprobing compcache/ramzswap/zramswap"
            
modprobe ramzswap disksize_kb=65535
            ramzswap_succeeded
=$?
            
log "ramzswap result: $ramzswap_succeeded"
            
if [ "$ramzswap_succeeded"0" ]
            
then
                start_wait
=$(date +%s)
                
wait=$start_wait
                timeout
=1
                
while [ ! -/dev/ramzswap0 -$(($wait $start_wait)) -lt $timeout ]
                do
                    
log "waiting for ramzswap devnode"
                    
sleep 1wait=$(date +%s)
                
done
                
if [ $(($wait $start_wait)) -lt $timeout ]
                
then
                    
#can never be reached, as /dev is not mounted properly
                    
log "activating ramzswap"
                    
swapon -p 1 /dev/ramzswap0
                    
#so we have to activate later...
                
fi
            fi
        fi
        
#peterleinchen end 
 

The Following 3 Users Say Thank You to peterleinchen For This Useful Post: