Bug 153602 - Smart and rpm command hangs
Summary: Smart and rpm command hangs
Status: RESOLVED WORKSFORME
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Other (show other bugs)
Version: Beta 4
Hardware: i686 SuSE Linux 10.1
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Christoph Thiel
QA Contact: E-mail List
URL:
Whiteboard:
Keywords: in_test_plan
Depends on:
Blocks:
 
Reported: 2006-02-27 00:38 UTC by Juan Erbes
Modified: 2006-03-16 17:01 UTC (History)
0 users

See Also:
Found By: Beta-Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juan Erbes 2006-02-27 00:38:03 UTC
If I will to make a full upgrade via smart, with more than 1000 packages, smart uses a virtual memory size of more than 1300 MB, and locks the system. The system has 512 MB of ram and 1 GB of swap.
If I use the rpm command by hand (rpm -Uh --nodeps --force --replacepkgs a*.rpm, and so on), for the upgrade (with the downloaded packages via smart), frequently it locks with the message:

warning: waiting to reestablish exclusive database lock

I mean that the lock comes from the procces query-system, because in the same time it uses a high cpu percent.

Thanks
Comment 1 Christoph Thiel 2006-03-06 12:18:20 UTC
Was unable to reproduce until now -- lowering severity.
Comment 2 Juan Erbes 2006-03-06 16:35:07 UTC
In what hardware You tested it?
(I have Athlon XP2600+)
The binaries of the rpm packages, are optimized only for intel?

In the last upgrade from beta 5 to 6, smart continues to lock, when it must to install all downloaded packages.
With the rpm command, the lock only appears when I will install a high number of packages (for example with "rpm -Uh --nodeps --force --replacepkgs k*.rpm"), but in the rest of cases, has disappeared the lock with the message "warning: waiting to reestablish exclusive database lock". The only partial lock, comes from the fontconfig.

Thanks
Comment 3 Christoph Thiel 2006-03-06 17:03:27 UTC
(In reply to comment #0)
> If I use the rpm command by hand (rpm -Uh --nodeps --force --replacepkgs
> a*.rpm, and so on), for the upgrade (with the downloaded packages via smart),
> frequently it locks with the message:
> 
> warning: waiting to reestablish exclusive database lock

This is probably related to concurrent use of rpm -q <something>. Did you run any rpm querys while you were updating via rpm -Uh ...? (It might also be related to novell-zmd -- please try to stop novell-zmd and try again.)
Comment 4 Christoph Thiel 2006-03-06 17:07:24 UTC
(In reply to comment #2)
> In what hardware You tested it?
> (I have Athlon XP2600+)

I have only tested on i386 so far -- but will give it a try on a x86_64 box now.

> The binaries of the rpm packages, are optimized only for intel?

No.
Comment 5 Christoph Thiel 2006-03-08 08:34:46 UTC
Could you please try to use the "--stepped" option of smart to update your packages?

Please also run "rpm --rebuilddb" prior to updating your packages once, to make sure the rpm database is OK.
Comment 6 Christoph Thiel 2006-03-08 15:35:43 UTC
> warning: waiting to reestablish exclusive database lock

Those warnings are definitely related to novell-zmd, but they should be uncritical.
Comment 7 Juan Erbes 2006-03-11 03:31:28 UTC
(In reply to comment #3)
> (In reply to comment #0)
> > If I use the rpm command by hand (rpm -Uh --nodeps --force --replacepkgs
> > a*.rpm, and so on), for the upgrade (with the downloaded packages via smart),
> > frequently it locks with the message:
> > 
> > warning: waiting to reestablish exclusive database lock
> 
> This is probably related to concurrent use of rpm -q <something>. Did you run
> any rpm querys while you were updating via rpm -Uh ...?
No, I only run one rpm procces.
 (It might also be
> related to novell-zmd -- please try to stop novell-zmd and try again.)
> 
I will try it.
Comment 8 Juan Erbes 2006-03-11 03:55:41 UTC
(In reply to comment #5)
> Could you please try to use the "--stepped" option of smart to update your
> packages?
>
For upgrade more than 1300 packages is unpractical, because for every package smart asks: Upgrading packages (1):
  gnome-backgrounds-2.12.2-7@i586

1.6MB of package files are needed.

Confirm changes? (Y/n): y

And if the package was not downloaded, I must to wait until it was downloaded.

> Please also run "rpm --rebuilddb" prior to updating your packages once, to make
> sure the rpm database is OK.
> 
I rebuilded the db, and now I run the smart upgrade with novell-zmd stopped.
Tomorrow I let You know, how it works.
Comment 9 Juan Erbes 2006-03-11 14:26:06 UTC
(In reply to comment #6)
> > warning: waiting to reestablish exclusive database lock
> 
> Those warnings are definitely related to novell-zmd, but they should be
> uncritical.
> 
Smart now runs ok for the full upgrade, with novell-zmd daemon stopped.

If You will, close the bug as resolved.

Thanks
Comment 10 Christoph Thiel 2006-03-16 17:01:21 UTC
Thanks!