![]() |
Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
Quote:
|
Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
After using 64mb zram swap for a week, my general impression is that my N900 is more laggy with it than it was without it. Clicking on any alerts or opening any program has a extra delay that didn't previously exist.
Using more than 64mb made things worse, and introduced minutes-long UI freezes. I use zram on a server which also only has 256MB of RAM, and it performs great, it feels like it doesn't swap at all. Of course, the server has much faster CPU than the N900. I think the real trick is to keep total swap usage below the size of the zram swap device. On my server, swap usage is around 50MB at most. I think once it starts hitting real swap, zram is not as useful. My N900 usually has swap usage that exceeds the total RAM amount, much less the zram size, so I'm not sure it's the ideal environment. But I'm extremely grateful to have the option to use it and I'm sure that someone here will find the right combination of size and sysctl tweaks to make it really fly. :) |
Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
Quote:
|
Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
Quote:
|
Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
I am wondering about the possibility of using dm-cache along with a zram device. Use the zram device as the cache layer for the flash-based swap partition. Then you swapon the dm device. My thinking is that this way zram gets used as a high-speed I/O cache for the swap device. My hope is that by doing that, zram gets the freshest activity, but old stuff gets flushed to flash swap when it's not needed.
|
Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
Quote:
|
Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
Quote:
|
Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
Quote:
According to swappolube: 30, swappiness 95, dirty ratio 60, dirty bgd ratio 0, dirty expire centisecs 0, dirty writeback centisecs 0, page-cluster 100, vfs cache pressure 1, laptop mode 128, mmc0 requests 128, mmc1 requests 2039, min. free kbytes |
Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
Quote:
Presently, zram swap device is highest priority, but as soon as it's full, the secondary swap partitions/files will get used instead. There's no high priority data, only high priority destination for whatever data is being swapped out. By using dm-cache, I hope it would allow us to prioritize data within the swap, hopefully to keep often-used data in the faster zram while pushing the useless unused swapped data into the flash. Whether we're using zram as a swap device or as a cache device, that RAM is already used up either way, so I'm just speculating about if there's a more effective way to utilize the tools that we have, that's all. :) |
Re: [ANNOUNCE] COMPCACHE on kernel-power (now with notifications)
Quote:
|
All times are GMT. The time now is 20:52. |
vBulletin® Version 3.8.8