Mike Cao
2010-12-23 06:48:19 UTC
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!
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
Best Regards!
Mike