FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 07-12-2012, 09:21 AM
Christopher Svanefalk
 
Default Fixing yum performance

A recurring problem I have had for several Fedora releases now is that Yum over time becomes slower and slower as more packages are installed. This is of course to be expected due to the DB growing, but in my case Yum has now become so slow that it is almost unusable. Normally, it takes 2-3 minutes just to install a single package. most of the time, this latency will take place between yum first being invoked, and the part where I am asked to accept that the packages are downloaded and installed. It thus seems to be a DB issue.

Is there any way to fix this??
--
Best,
Christopher Svanefalk


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-12-2012, 10:29 AM
Michael Schwendt
 
Default Fixing yum performance

On Thu, 12 Jul 2012 11:21:42 +0200, Christopher Svanefalk wrote:

> A recurring problem I have had for several Fedora releases now is that Yum
> over time becomes slower and slower as more packages are installed. This is
> of course to be expected due to the DB growing, but in my case Yum has now
> become so slow that it is almost unusable. Normally, it takes 2-3 minutes
> just to install a single package. most of the time, this latency will take
> place between yum first being invoked, and the part where I am asked to
> accept that the packages are downloaded and installed. It thus seems to be
> a DB issue.
>
> Is there any way to fix this??

You could find out the cause. If it's reproducible/measurable for you,
explore the subdirectories in /var/lib/yum/ and clean up as much as you
like. Decide yourself which data you are not interested in. This stuff is
independent of the RPM DB, so you would only lose some details when running
"yum" queries, "yum history …", "yumdb …" e.g. the repo a package came from.

Especially in /var/lib/yum/yumdb/ lots of data pile up for installed
packages.

When have you last run "yum history new"? If would start a new history,
but old history files are kept in /var/lib/yum/history/ nevertheless here:

# du -hs /var/lib/yum/history
17M /var/lib/yum/history
# yum history new
Loaded plugins: auto-update-debuginfo, langpacks, presto, refresh-packagekit
history new
# du -hs /var/lib/yum/history
17M /var/lib/yum/history
# find /var/lib/yum/history | wc -l
1261

If that doesn't lead to anything:
Does it also affect ordinary Yum queries (yum list ..., yum info ...) as
well as "yum -C ..." operation (cache-only)? Or do you face issues with
network repository access?

--
Fedora release 17 (Beefy Miracle) - Linux 3.4.4-5.fc17.x86_64
loadavg: 0.58 0.67 0.50
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-12-2012, 11:10 AM
Tim
 
Default Fixing yum performance

On Thu, 2012-07-12 at 11:21 +0200, Christopher Svanefalk wrote:
> A recurring problem I have had for several Fedora releases now is that
> Yum over time becomes slower and slower as more packages are
> installed. This is of course to be expected due to the DB growing, but
> in my case Yum has now become so slow that it is almost unusable.

Asking the obvious question - have you installed tons of stuff that you
don't actually use or need? (An install everything person.)

--
[tim@localhost ~]$ uname -r
2.6.27.25-78.2.56.fc9.i686

Don't send private replies to my address, the mailbox is ignored. I
read messages from the public lists.



--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-13-2012, 03:20 AM
Rex Dieter
 
Default Fixing yum performance

Christopher Svanefalk wrote:

> A recurring problem I have had for several Fedora releases now is that Yum
> over time becomes slower and slower as more packages are installed. This
> is of course to be expected due to the DB growing, but in my case Yum has
> now become so slow that it is almost unusable. Normally, it takes 2-3
> minutes just to install a single package. most of the time, this latency
> will take place between yum first being invoked, and the part where I am
> asked to accept that the packages are downloaded and installed. It thus
> seems to be a DB issue.
>
> Is there any way to fix this??

some things that help me from time to time:

1. purge yumdb
rm -rf /var/cache/yum/yumdb/*

2. rebuild rpm database
rm -f /var/lib/rpm/__db*
rpm --rebuilddb

-- rex

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-13-2012, 03:21 AM
Rex Dieter
 
Default Fixing yum performance

Rex Dieter wrote:

> Christopher Svanefalk wrote:
>
>> A recurring problem I have had for several Fedora releases now is that
>> Yum over time becomes slower and slower as more packages are installed.
>> This is of course to be expected due to the DB growing, but in my case
>> Yum has now become so slow that it is almost unusable. Normally, it takes
>> 2-3 minutes just to install a single package. most of the time, this
>> latency will take place between yum first being invoked, and the part
>> where I am asked to accept that the packages are downloaded and
>> installed. It thus seems to be a DB issue.
>>
>> Is there any way to fix this??
>
> some things that help me from time to time:
>
> 1. purge yumdb
> rm -rf /var/cache/yum/yumdb/*

arg, make that /var/lib/yum/yumdb/*

-- rex

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-13-2012, 05:06 AM
Konstantin Svist
 
Default Fixing yum performance

On 07/12/2012 02:21 AM, Christopher Svanefalk wrote:
A recurring problem I have had for several Fedora releases now is that
Yum over time becomes slower and slower as more packages are
installed. This is of course to be expected due to the DB growing, but
in my case Yum has now become so slow that it is almost unusable.
Normally, it takes 2-3 minutes just to install a single package. most
of the time, this latency will take place between yum first being
invoked, and the part where I am asked to accept that the packages are
downloaded and installed. It thus seems to be a DB issue.


Is there any way to fix this??


Check if you've installed yum-plugin-local -- it keeps a local copy of
the repo and can take a while to regenerate the db on each run...

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-13-2012, 07:14 AM
Christopher Svanefalk
 
Default Fixing yum performance

Thanks for the help so far everyone! I have done a lot of purging and cleaning according to the tips above, and I am going to see if it has changed over the coming days...it does look better at first glance


On Fri, Jul 13, 2012 at 7:06 AM, Konstantin Svist <fry.kun@gmail.com> wrote:

On 07/12/2012 02:21 AM, Christopher Svanefalk wrote:


A recurring problem I have had for several Fedora releases now is that Yum over time becomes slower and slower as more packages are installed. This is of course to be expected due to the DB growing, but in my case Yum has now become so slow that it is almost unusable. Normally, it takes 2-3 minutes just to install a single package. most of the time, this latency will take place between yum first being invoked, and the part where I am asked to accept that the packages are downloaded and installed. It thus seems to be a DB issue.




Is there any way to fix this??




Check if you've installed yum-plugin-local -- it keeps a local copy of the repo and can take a while to regenerate the db on each run...

--

users mailing list

users@lists.fedoraproject.org

To unsubscribe or change subscription options:

https://admin.fedoraproject.org/mailman/listinfo/users

Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

Have a question? Ask away: http://ask.fedoraproject.org



--
Best,
Christopher Svanefalk

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 07-13-2012, 07:37 AM
Frank Murphy
 
Default Fixing yum performance

On 12/07/12 10:21, Christopher Svanefalk wrote:


Is there any way to fix this??



Disable presto if you are on a fast connection.
It can at times takes longer to rebuild than to
download a full package.



--
Regards,
Frank
"Jack of all, fubars"


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 

Thread Tools




All times are GMT. The time now is 10:21 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org