[Touch-packages] [Bug 1342341] Re: upowerd kills USB performance

2014-07-17 Thread Ruslan
It appears to be the kernel bug. Sort of. I've bisected the kernel to commit ab8fabd46f811d5153d8a0cd2fac9a0d41fb593d. There's a discussion of this problem in this thread: https://groups.google.com/forum/#!topic/linux.kernel/Jc69VRli3k0 This seems basically WONTFIX from linux side. But a workaro

[Touch-packages] [Bug 1342341] Re: upowerd kills USB performance

2014-07-16 Thread Ruslan
In fact, it seems enough to write any value, even default+1, i.e. 21 to /proc/sys/vm/dirty_ratio to trigger the bug. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to upower in Ubuntu. https://bugs.launchpad.net/bugs/1342341 Ti

[Touch-packages] [Bug 1342341] Re: upowerd kills USB performance

2014-07-16 Thread Ruslan
This appears to be because upowerd calls `pm-powersave false`, which in turn activates /usr/lib/pm-utils/power.d/laptop-mode, which writes 10 and 5 to /proc/sys/vm/dirty_ratio and /proc/sys/vm/dirty_background_ratio, respectively, replacing default 20 and 10. Commenting this line in laptop-mode

[Touch-packages] [Bug 1342341] Re: upowerd kills USB performance

2014-07-16 Thread Ruslan
Also, writing back the default values to the /proc/sys/vm/... files doesn't fix the problem — so far only reboot with avoiding writing bad values helped. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to upower in Ubuntu. https: