Bugzilla – Bug 153602
Smart and rpm command hangs
Last modified: 2006-03-16 17:01:21 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
Was unable to reproduce until now -- lowering severity.
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
(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.)
(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.
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.
> warning: waiting to reestablish exclusive database lock Those warnings are definitely related to novell-zmd, but they should be uncritical.
(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.
(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.
(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
Thanks!