Bug 912763
Summary: | RFE: reduce wakeups per second | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Phil Knirsch <pknirsch> |
Component: | spice | Assignee: | Default Assignee for SPICE Bugs <rh-spice-bugs> |
Status: | CLOSED NEXTRELEASE | QA Contact: | SPICE QE bug list <spice-qe-bugs> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 7.2 | CC: | cfergeau, dblechte, djasa, fziglio, kraxel, marcandre.lureau, mkenneth, pvine, rbalakri, rvokal, tpelka |
Target Milestone: | pre-dev-freeze | Keywords: | FutureFeature, Improvement |
Target Release: | 7.3 | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-02-17 08:38:37 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Phil Knirsch
2013-02-19 15:45:40 UTC
This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. until the display is not completely idle, spice worker will attempt to read every 10ms, that's 100x/s. You should be able to see that with qemu trace_qxl_ring_command_check. I don't know what's the design rationale behind this. Gerd, Alon, any idea? I think this is not 6.6 material anymore, moving to 6.7 (In reply to Marc-Andre Lureau from comment #5) > until the display is not completely idle, spice worker will attempt to read > every 10ms, that's 100x/s. You should be able to see that with qemu > trace_qxl_ring_command_check. I don't know what's the design rationale > behind this. Gerd, Alon, any idea? The idea is probably to reduce the guest/host notification overhead, especially as spice server runs in its own thread. When the display has been idle for a while (no commands arrived for half a second IIRC) spice-server stops polling and asks qxl for a notification though. It is certainly possible to try tweak those values (poll interval, idle delay). Maybe also try making the poll interval adaptive to screen update rate. Maybe make spice-server behave differently depending on whenever a spice client is connected or not. But after all the fundamental question is why the display isn't idle. Do you boot to gdm? Anying constantly updating on your screen? Or text console? On the text console the friendly blinking cursor will keep spice-server busy (until the screen saver kicks in, after 10 minutes by default). This patch removes ~30 wakeups / sec in qemu: "console: remove refresh timer when using spice & QXL mode" This patch removes ~30 wakeups / sec in spice server: http://lists.freedesktop.org/archives/spice-devel/2014-November/017802.html With those 2 patches, I get down to about ~10 wakeups per second according to powertop. I think we should consider moving this bug to upstream bug tracker. One-time change, no test case needed. (In reply to Marc-Andre Lureau from comment #8) > This patch removes ~30 wakeups / sec in qemu: > "console: remove refresh timer when using spice & QXL mode" > Discussed in https://lists.nongnu.org/archive/html/qemu-devel/2014-11/msg00624.html Superseded by https://lists.gnu.org/archive/html/qemu-devel/2014-11/msg00625.html This series was pushed as http://git.qemu.org/?p=qemu.git;a=commit;h=0b2824e5 http://git.qemu.org/?p=qemu.git;a=commit;h=3dcadce5 > This patch removes ~30 wakeups / sec in spice server: > http://lists.freedesktop.org/archives/spice-devel/2014-November/017802.html > This was committed as http://cgit.freedesktop.org/spice/spice/commit/?id=c541d7e29d See also http://cgit.freedesktop.org/spice/spice/commit/?id=697f3214fd1 > With those 2 patches, I get down to about ~10 wakeups per second according > to powertop. required patches in QEMU as well. Minor improvement, best to be fixed in rhel 7. Moving to rhel 7.3 Fixed in master branch. |