Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1177533

Summary: Excessive cpu usage due to wrong timeout value
Product: [Retired] oVirt Reporter: Nir Soffer <nsoffer>
Component: vdsmAssignee: Nir Soffer <nsoffer>
Status: CLOSED CURRENTRELEASE QA Contact: Gil Klein <gklein>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.5CC: bazulay, ecohen, gklein, iheim, lsurette, mgoldboi, rbalakri, yeylon
Target Milestone: ---   
Target Release: 3.5.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: ovirt-3.5.1_rc1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1177801 (view as bug list) Environment:
Last Closed: 2015-01-21 16:05:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1177801    

Description Nir Soffer 2014-12-28 16:52:47 UTC
Description of problem:

The event loop is calculating timeout in seconds, but poll timeout
should be milliseconds. This causes poll to wait up to 30 milliseconds
instead of 30 seconds where there are no events to handle.

Profiling a system running one vm for 5 mintues show _process_events is
dominating the profile, taking 55% of cpu time.

Version-Release number of selected component (if applicable):
55df4a7f1c6cfefdc70b439d0d5a3f735f6bbd4b

How reproducible:
Always

Steps to Reproduce:
1. Run vdsm with very little load and profiling enabled

Actual results:
_process_events consuming more then 50% cpu time, called
millions of times per 5 minutes

Expected results:
_process_events should consume almost no cpu time

Comment 1 Nir Soffer 2014-12-28 16:54:11 UTC
Fixed in master, needs trivial backport.

Comment 2 Sandro Bonazzola 2015-01-15 14:25:37 UTC
This is an automated message: 
This bug should be fixed in oVirt 3.5.1 RC1, moving to QA

Comment 3 Sandro Bonazzola 2015-01-21 16:05:31 UTC
oVirt 3.5.1 has been released. If problems still persist, please make note of it in this bug report.