idea for kp: partially compressed RAMdisk as swap?
Hi,
I just stumbled upon this site [1] where right at the beginning a method called ramzswap is mentioned. Investigating further I found this [2] and finally ended up here [3]. Essentially it's trading off CPU power in favour of RAM (hopefully at a very favourable exchange rate). For the Efika MX [4] this seems to improve performance and since the HW of the N900 isn't that different I guess this might apply here too. But then again I'm concerned about the watchdog if big amounts of ramzswap contents are read or written. Any thoughts on this (especially from kp developers)? [1] http://wiki.debian.org/EfikaMXOptimizingPerformance [2] http://forum.linode.com/viewtopic.php?p=35935 [3] http://code.google.com/p/compcache/ [4] http://wiki.debian.org/EfikaMX |
Re: idea for kp: partially compressed RAMdisk as swap?
"modprobe ramzswap" does not work for you? As it is a part of kp since v48 IIRC.
EDIT: here is the dedicated thread. |
Re: idea for kp: partially compressed RAMdisk as swap?
Quote:
[1] http://talk.maemo.org/showthread.php...light=ramzswap |
Re: idea for kp: partially compressed RAMdisk as swap?
The interesting thing we pretty much realized is that swapping into RAM essentially makes a n900 perform worse, not better.
|
Re: idea for kp: partially compressed RAMdisk as swap?
Quote:
|
Re: idea for kp: partially compressed RAMdisk as swap?
Is there any step by step instruction how to have such a smooth N900 as yours for people without proper know-how in linux?
|
Re: idea for kp: partially compressed RAMdisk as swap?
Quote:
|
Re: idea for kp: partially compressed RAMdisk as swap?
(de)compressing data in ramzswap will need CPU power which in case of our Cortex A8 may easily put the CPU to full load.
So the performance impact of using ramzswap is highly task-dependent. If you do nothing else but RAM I/O you'll notice a gain compared to real swap I/O. But if you have a high CPU load anyway due to the task you're running it's likely that the additional load caused by the (de)compression will even slow down your task compared to reading/writing data from/to swap but without a compression algorithm involved. bottom line: Comparing ramzswap performance results makes no sense without saying which task was benchmarked. |
Re: idea for kp: partially compressed RAMdisk as swap?
Quote:
It doesn't help that Maemo likes spiking CPU usage for no reason at all, especially when your CPU is hammered compressing/decompressing while swaps are thrashed for infinity. |
Re: idea for kp: partially compressed RAMdisk as swap?
I'm getting the impression this is a great feature which needs some tweaking to make it work well.
Firstly, by sampling CPU usage, we could tell compcache to stop compressing when CPU usage is high. Secondly, with some stats, we could profile which programs' data weren't worth compressing and exclude them. Quote:
Quote:
|
All times are GMT. The time now is 23:46. |
vBulletin® Version 3.8.8