Summary: | OpenVG demos show inadequate CPU usage and memory leak | ||
---|---|---|---|
Product: | Mesa | Reporter: | Sergey Kondakov <virtuousfox> |
Component: | Mesa core | Assignee: | mesa-dev |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | git | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Sergey Kondakov
2010-12-01 19:36:57 UTC
and yeah - mesa, libdrm, xf86-video-ati, mesa-progs are recent git (post-openvg-1.1-merge, anyway); X is 1.9.2.901 (1.9.3 RC 1). Commit 1222800fd20 to mesa-demos should fix the high CPU usage you noticed in sp and text. It fixes a busy waiting bug in eglut. lion, or other demos that animate, does not throttle the frame rate. It is normal that the CPU usage is high. As for the leak, I will look into it. Ok, the CPU hogging in text demo and memory leaks in lion should be fixed in latest mesa and mesa-demos. Could you try again? (In reply to comment #3) > Ok, the CPU hogging in text demo and memory leaks in lion should be fixed in > latest mesa and mesa-demos. Could you try again? with recent mesa and mesa-demos revision lion no longer leak memory and consume same, small, amount as other demos. but it still takes same amount of CPU time. (In reply to comment #2) > lion, or other demos that animate, does not throttle the frame rate. It is > normal that the CPU usage is high. As for the leak, I will look into it. but is it "normal" to hog CPU on real hw driver, not softpipe ? (In reply to comment #4) > (In reply to comment #3) > > Ok, the CPU hogging in text demo and memory leaks in lion should be fixed in > > latest mesa and mesa-demos. Could you try again? > > with recent mesa and mesa-demos revision lion no longer leak memory and consume > same, small, amount as other demos. > but it still takes same amount of CPU time. > > (In reply to comment #2) > > lion, or other demos that animate, does not throttle the frame rate. It is > > normal that the CPU usage is high. As for the leak, I will look into it. > > but is it "normal" to hog CPU on real hw driver, not softpipe ? The demo is not GPU-bound. The rotation of the lion makes Vega recreate the vertex buffers of the paths every frame. That should be something that can be avoided, but it is not the case now unfortunately. i forgot to actually write but there appears to be no extensive CPU usage for "sp" and "text" demos anymore. everything, beside "lion" CPU usage is fixed, apparently. i don't know if it should be marked as "fixed" now or when lion will be less greedy. I am marking this bug fixed. I did make a commit to change when vertices are transformed. It should improve the performance of the lion demo. The CPU usage might still be high, but the frame rate should increase. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.