Re: Question on difference between dnf upgrade versus clean install?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 28 May 2020 at 13:37, Roger Heflin wrote:

From:           	Roger Heflin <rogerheflin@xxxxxxxxx>
Date sent:      	Thu, 28 May 2020 13:37:28 -0500
Subject:        	Re: Question on difference between dnf 
upgrade versus clean install?
To:             	Community support for Fedora users 
<users@xxxxxxxxxxxxxxxxxxxxxxx>
Copies to:      	"Michael D. Setzer II" 
<mikes@xxxxxxxx>

> Both spinning disks?  No SSD's involved?
Both disk regular 7200 rpm drives 

> On the upgrade it will have to read the packages from disk and then
> write them back to the same disk at a different location as files,
> this will cause a lot of extra seeking (maybe 2x slower here)
> 
> The laptop drive may be a lower RPM than the other machine disk (if
> 7200rpm) that would result in 1.5x at least.
> 
> You have 2.5x the packages, 2.5x if none of those packages are the
> larger packages, which the stuff you installed afterward may be.
> Given you have 2.5x the package there may be a lot of stuff you aren't
> using.
> 
> On the upgrade you also have to delete the current packages after you
> install the newer one, another 2x there.
> 
> So that is 2.5x2x2 ignoring the hard disk speed, that is about 10x
> slower for the upgrade.
> 
> From my experience most of the time is disk io and seeks, very little
> of it is actaully cpu.    My machines will do an upgrade in about 60
> minutes, and that is with all of them having SSD's, so I would expect
> it to be much longer with a spinning disk, 14x does not sound that
> unreasonable if you have a lot of packages, and a slow laptop HD.
> 
See two to 4 times as a reasonable amount, but 15 
times seems high.

Note: I do include installing all the packages on both 
systems.

With the clean install the initial install takes only about 
30 minutes. Then about another 30 minutes to install the 
missing packages.
Do an 

rpm --qf "%{NAME}\n" -qa | sort  | grep -v gpg-pubkey > 
installed_pkgs`date +%F`.txt

tp create a file that contains all the packages that I have 
installed as a full list. 
Then run dnf install `cat installed_pkgs file`
Shows that many are already installed, but then installs 
the missing ones. Usually, just takes about 30 minutes 
do download and install. 

My big concern with the time, is power outage. Since it 
takes so long, if there was an outage don't have a ups 
that would keep even a notebook up for 14 hours. 

Many years ago, was doing an upgrade and had an 
outage that went beyond UPS. Was unable to get 
process to restart, so ended up having to wipe drive and 
do a clean install and manually reinstall everything.

Started long ago with Unixware, and Redhat 9 was first 
Linux. 

Taught  Computer Science for 36+ years when I retired 
in 2017. Started with an IBM 1130 with 4K ram and 
punch cards in high school in mid 70's.  Thanks for info.

> On Thu, May 28, 2020 at 12:59 PM Michael D. Setzer II via users
> <users@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
> >
> > I've got 5 Fedora machines at my house. Recently
> > upgraded a couple since FC30 was becoming EOL.
> >
> > Some I did a clean install. New Hard disk, and install
> > from iso. Usually, that takes about 1/2 hour for whole
> > process. Including install of OS, and then install of a
> > number of other packages I use that are not installed by
> > default.
> >
> > Did update on my notebook machine as well using dnf
> > system update. This system has some more packages
> > installed. Showed 5070 versus about 2000+ for the
> > clean install. Download process took about 30 minutes,
> > but then the reboot and upgrade process took just over
> > 14 hours. Total was 14 hours 50 minutes.
> >
> > Not clear why it would take 15 times as long? Checked
> > while running, and dnf was running at 100%, but just
> > using 1 cpu. Notebook has dual cpus. Don't know if
> > others just run it, and check when done, but seems to
> > be a bigger difference in time than it should be.
> >
> > Thanks and be Safe..
> >
> >
> > +------------------------------------------------------------+
> >  Michael D. Setzer II - Computer Science Instructor
> > (Retired)
> >  mailto:mikes@xxxxxxxx
> >  mailto:msetzerii@xxxxxxxxx
> >  Guam - Where America's Day Begins
> >  G4L Disk Imaging Project maintainer
> >  http://sourceforge.net/projects/g4l/
> > +------------------------------------------------------------+
> >
> > http://setiathome.berkeley.edu (Original)
> > Number of Seti Units Returned:  19,471
> > Processing time:  32 years, 290 days, 12 hours, 58
> > minutes
> > (Total Hours: 287,489)
> >
> > BOINC@HOME CREDITS
> >
> > ROSETTA      68715567.359982 | ABC
> > 16613838.513356
> > SETI        110890891.666494 | EINSTEIN
> > 147926043.499240
> > _______________________________________________
> > users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> > To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
> > Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> > List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx


+------------------------------------------------------------+
 Michael D. Setzer II - Computer Science Instructor 
(Retired)     
 mailto:mikes@xxxxxxxx                            
 mailto:msetzerii@xxxxxxxxx
 Guam - Where America's Day Begins                        
 G4L Disk Imaging Project maintainer 
 http://sourceforge.net/projects/g4l/
+------------------------------------------------------------+

http://setiathome.berkeley.edu (Original)
Number of Seti Units Returned:  19,471
Processing time:  32 years, 290 days, 12 hours, 58 
minutes
(Total Hours: 287,489)

BOINC@HOME CREDITS

ROSETTA      68715567.359982 | ABC          
16613838.513356
SETI        110890891.666494 | EINSTEIN    
147926043.499240
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux