[linux-mm-cc] Question using compacache(zram) with multi devices

Mike Cao bcao at redhat.com
Thu Dec 23 01:48:19 EST 2010


Hi, All

I design following 2 scenarios:

Scenario 1:
1.Initialize TWO zram devices with 100MB each.
#zramconfig /dev/zram0 --disksize_kb=102400 –init
#zramconfig /dev/zram1 --disksize_kb=102400 –init
2.Activate them as swap
#mkswap /dev/zram0
#mkswap /dev/zram1
#swapon /dev/zram0
#swapon /dev/zram1


Scenario 2:
1.Initialize ONE zram devices with 200MB
#zramconfig /dev/zram0 --disksize_kb=102400 –init
2.Activate it as swap
#mkswap /dev/zram0
#swapon /dev/zram0


Both of scenarios,I can find 200MB swap new added.then What's the
difference between the two scenarios ,especially for performance
influence?

Hope for you all feekback,thanks!

-- 

Best Regards!
Mike



More information about the linux-mm-cc mailing list