Improving OOTB performance

Сергей Давыдов shnatsel at gmail.com
Fri May 18 22:41:22 UTC 2012


Hi Euro,

Thanks for testing out my proposals! Ulatency supports per-cgroup
swappiness control, so it can set swappiness to zero for media apps
(given the following kernel parameters:
CONFIG_CGROUP_MEM_RES_CTLR_SWAP=y
CONFIG_CGROUP_MEM_RES_CTLR_SWAP_ENABLED=y )

Everything else can be zramswapped out of the way of media apps
(ubuntu has swappiness 60 by default so it *will* be zramswapped out
of the way).

Alternatively, it should be fairly easy to write an LD_PRELOAD
override for malloc() that also applies memlock() to that region, but
I'm afraid it can slow down malloc() calls so controlling swap with
ulatencyd is preferable.

--
Sergey "Shnatsel" Davidoff
OS integrator @ elementary



More information about the Ubuntu-Studio-devel mailing list