Bug 255871

Summary: The load of parse-metadata is very high
Product: [openSUSE] openSUSE 10.3 Reporter: Joop Boonen <joop.boonen>
Component: ZENworksAssignee: E-mail List <zlm-code10-bugs>
Status: RESOLVED WONTFIX QA Contact: Forgotten User YrvzK78Vmi <forgotten_YrvzK78Vmi>
Severity: Normal    
Priority: P5 - None CC: bewoern1, bryce2, martin, rashmiranjan.mohanty
Version: Alpha 2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Joop Boonen 2007-03-19 19:45:57 UTC
When i start up my system the system load is very high because of parse-metadata. This process isn't niced, that wouldn't low the system down so much.

4997 root      25   0 50660  14m 9428 R   99  1.0   0:06.87 parse-metadata

Because of this the first few minutes the system is very slow.
Comment 1 Michael Andres 2007-03-28 10:54:04 UTC
AFAIK zmd launches it.
Comment 2 Bryce Nesbitt 2007-03-28 18:10:25 UTC
I see this also.  It can run for hours.
Comment 3 Bernhard Wörner 2007-04-01 09:32:08 UTC
This is also in openSuSE 10.2
On 10.2, this is for several minutes after startup (about 10min).
The used machine is:

Athlon Thunderbird 1,3GHz
512MB SD-RAM

I think, this has to be fixed in 10.2, too.
Is it possible, to assign this bug report to Product "openSUSE 10.2", too?
Comment 4 Rashmi Ranjan Mohanty 2007-04-04 09:27:23 UTC
parse-metadata taking lot of cpu chunk is probably becuase of corrupted ZMD DB.

Try the following and let me know whether it solves the problem.

- Stop ZMD with command '/etc/init.d/novell-zmd stop'
  (If it does not stop then kill the process zmd)
- Remove the file /var/lib/zmd/zmd.db
- Start ZMD with command '/etc/init.d/novell-zmd start'

This removes the corrupted ZMD DB and upon starting ZMD, DB is re-created.
Comment 5 Cristian Rodríguez 2007-04-18 02:38:14 UTC
*** Bug 264887 has been marked as a duplicate of this bug. ***
Comment 6 Michael Glenn 2007-05-10 18:49:50 UTC
I can verify this is in openSuSE 10.2. 

'/etc/init.d/novell-zmd stop' command fails; parse-metadata refuses to halt. Finally had to kill it. Examined zmd.db; it had a size of 74343424 and was constantly being modified until parse-metadata finally died. 

Renamed zmd.db to zmd.db.old, issued 'rczmd restart' command. Stop/restart executed immediately and zmd.db was rebuilt, within about two minutes settling at a size of 22800384. No modifications of the file in the last eight minutes.

Hopefully that took care of it.
Comment 7 Bryce Nesbitt 2007-05-11 20:03:03 UTC
I did that, and now the system updater claims there is nothing to update.  Clearly, zmd was far from ready for release.  I hope OpenSUSE 10.3 goes back to something older and more reliable.
Comment 8 Bryce Nesbitt 2007-05-11 20:07:13 UTC
See instructions on removing this beast:

http://opensuse-community.org/Package_Sources/10.2
su -c "rczmd stop"
su -c "rpm -e zmd libzypp-zmd-backend sqlite-zmd rug zen-updater"
Comment 9 Stanislav Visnovsky 2007-06-20 13:59:18 UTC
ZLM stack is not part of openSUSE 10.3