APT Speed For Incremental Updates Gets a Massive Performance Boost
jones_supa writes: Developer Julian Andres Klode has this week made some improvements to significantly increase the speed of incremental updates with Debian GNU/Linux's APT update system. His optimizations have yielded the apt-get program to suddenly yield 10x performance when compared to the old code. These improvements also make APT with PDiff now faster than the default, non-incremental behavior. Beyond the improvements that landed this week, Julian is still exploring other areas for improving APT update performance. More details via his blog post.
The speed got a performance boost?
It's not too late to change the title.
The future is imaginary. It cannot exist in the present.
Thank you! /Happy Debian user
Debian _is_ free but ubuntu isn't:
https://mjg59.dreamwidth.org/37113.html
In fact, this is yet another reason to use the gpl, or at least the lgpl.
Does anyone know if this will hit Ubuntu before the next LTS (16.04) is released in April? Would love to have this, but being this late I assume it might not be possible to get it into Ubuntu in time. It's not optimal to have to wait two years for a new feature when a new release is coming up.
If they'd get rid of systemd I'd be a happy camper.
Wow, reading one byte at a time unbuffered? Who does that in real life? It's been well-known for like 30 years that buffered reading is an order of magnitude faster than byte-at-a-time - which matches the above result. The standard C library does buffered reads, unless you turn them off explicitly.
Did someone really turn that off explicitly? Why?
Jesus, someone should check the XML parsers. Maybe the same guy wrote an XML parser and it's doing byte reads.
Now, if only someone would do something about how balls-slow updating systems with yum seems to have gotten over the last so many years.
Really looking forward to have apt-get speeds that can be compared with pacman. Julian Andres Klode, if you read this, please continue the great work!
If something is XML based and time criticial, I wouldn't bother to optimize the XML parsing, but rather exchange XML for a non braindead format to start with.
Holy fuck, I just read the blog article and this is what it said:
How the fuck did that all happen to begin with?! Who the fuck wrote the code like that initially?! How fucking long has this been the case?!
I understand that bugs will happen. I really do. But this is like a total breakdown in process. Why the fuck weren't these problems detected sooner, like when the code was committed and reviewed? The code was reviewed, right?!
We aren't talking about some minor software project here. This is apt, for fuck's sake! This is one of the core pieces of Debian's (and Ubuntu's, and many other distros') basic infrastructure. This is the kind of shit that has to be done properly, yet it clearly wasn't in this case.
The Debian project needs to address how this shit even happened to begin with. This is fucking unbelievable. The entire Debian community deserves a full explanation as to how this debacle happened.
I thank God every day that I moved all of my servers from Debian to OpenBSD after the systemd decision. I know that the OpenBSD devs take code reviews and code quality extremely seriously, not just with the core OS itself, but even with software written by others. The OpenBSD project will even create and maintain their own custom forks of third party software if the original developers can't get their shit together!
Apt appters apdate with APT, not luddite source!
APTERS APTERS APTERS
If yes, I would wonder how much speed could it gain over yum... after all, whenever I used yum to update some OS, the vast majority of time was spent with the stuff "rpm" would do, not with the database maintainance yum adds.
"LTS" ...can't believe anyone actually falls for that one.
That's good.
Now it reamins 2 enhancement I'd really like to see :
low free space on hdd management.
parallel installation
low free space : walk the dependencies to find apt with no dependencies, install, clean [repeat]
parallel installation : right now apt download all files then install them it will be better to (download/install) each apt
We need a FREE INTERNET for every human beign
How about we just start with a free spell checker?
in windows land, windows updates slow to a friggin crawl, can take hours, and with the new windows 10{dot}shit, lacks any sort of user control... the exact opposite of debian and apt.
Stop this now you dogs.
Because the idea is to speed up the tunnel of love dawg!
You use journalctl to read them, or any other program that can read the well-defined on-disk format.
Say you're trying to troubleshoot problems with a machine by booting to a different operating system in order to read the logs of the machine's primary operating system. This works for plain text logs because support for ASCII text is ubiquitous, modulo some line ending weirdness in Windows. Do such "other programs" exist for all PC operating systems that can read ext2/3/4 file systems?
I live in Australia you insensitive yankee clod!
What will it take - money? Linus Torvalds throwing a hissy fit ? Ubuntu Snappy/Click packages ?
Linux adoption can be 10x what it is today if the package management is unified. Its not just about the format - its the whole ecosystem. One Linux App Store, better tooling to build packages, only one package to publish. Any kind of performance improvment (like this one) benefits both sets of users.
I mean RPM and DEB each have their advantages.. but what will it take for a single format to emerge ?
Is this a requirement for you? Set journald to output classic plain text logs as well. You get all the benefits of a nice utility to sort through your logs and the ASCII text files which you find so critical to your use-case.
So, apt is reading every character, unbuffered. And that's making it run at 10% of the speed it should. So just wtf is Windows Update doing to take hours?
andre@atlas:~# time apt &> /dev/null
real 0m0.002s
user 0m0.001s
sys 0m0.000s
WOW fast as hell!
I for one, welcome our new hot grits... PROFIT!
Re-inventing the wheel again (poorly) because Pottering can't be bothered to read a man page.
Only the State obtains its revenue by coercion. - Murray Rothbard
... and perfectly covered the use case of which you say XML is good for. FrameMaker was one practical evidence to this.