Bug 192876

Summary: parse-metadata (and other zmd helpers?) is not niced
Product: [openSUSE] SUSE Linux 10.1 Reporter: Martin Vidner <mvidner>
Component: ZenworksAssignee: Chris Rivera <crivera>
Status: RESOLVED WONTFIX QA Contact: Mauro Parra Miranda <mauro>
Severity: Major    
Priority: P5 - None CC: aj, andreas.hanke, suse-beta
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Martin Vidner 2006-07-17 15:16:36 UTC
I have noticed that parse-metadata (from libzypp-zmd-backend) is running with nice 0 even during the periodical updates.

Here's a conversation between me and Tambet:

<mvidner> the periodical update is a classic example of a "background" task
<tambet> it's not only periodical
<mvidner> it needs to be done, but should not get in the way. so it should be niced. it may take longer, but the rest of the system will perform better
<tambet> it also gets called when you do 'rug sa' for example
<tambet> or for any command that wakes zmd up
<mvidner> well, then we need to distinguish
<tambet> that 'periodical' thing happens by default once in 24 hours
<tambet> I don't think it's worth it to add hacks for it in the abstracted code
<tambet> the service implementation has no idea what's calling it and that's how it should be
<mvidner> I disagree. there should be a parameter to distinguish foreground and background
<tambet> it's a daemon, it's not a foreground and backround thing
<tambet> it's always backround
<mvidner> tambet: no. sometimes it wakes up at users command (rug sa) -> foreground. other times it does periodical bookkeeping -> background
<tambet> well, anyway, feel free to open a bug about it, but don't assign it to me, you already know my opinion :)
Comment 1 Federico Lucifredi 2006-10-11 23:53:28 UTC
is this still the case ? AJ, can you investifigate this on the European side please ?
Comment 2 Martin Vidner 2006-10-13 12:51:48 UTC
yes, still the case.

gizo:~ # rpm -q rug zmd libzypp{,-zmd-backend}
rug-7.1.1.0-36
zmd-7.1.100.0-9
libzypp-2.2.3-2
libzypp-zmd-backend-7.1.1.0_0.4-8
gizo:~ # cat /etc/SuSE-release
openSUSE 10.2 (i586) Alpha5
VERSION = 10.2
Comment 4 Chris Rivera 2006-10-26 22:19:56 UTC
I agree with Tambet here.  The real problem is parse-metadata's performance (CPU, memory, and time).  That is what really needs to be addressed.  I also don't think it's worth the effort adding code to zmd to do this.