Re: Reducing apt's memory footprint (on small boxes)

2021-02-18 Thread deloptes
Alan Corey wrote: > You don't actually need most upgrades, I have a Jessie machine > running, haven't updated it in a couple years. this would be stupid advise if your machine were on directly connected to or would access the internet, but assuming you use it behind a firewall at home and it is i

Re: Reducing apt's memory footprint (on small boxes)

2021-02-17 Thread Luke Kenneth Casson Leighton
i remembered sonething: the apt packages are read into memory in order to sort them alphabetically, aren't they? (i.e. there's no database per se) that being the case, then, well, doing a hierarchical office paperwork sort would do the trick. first not-sort by appending all packages beginning wit

Re: Reducing apt's memory footprint (on small boxes)

2021-02-16 Thread deloptes
Christoph Biedl wrote: > this story isn't new: Older boxes with rather small memory. In my case, > DockStar with 128 Mbyte RAM. They still serve a job as e.g. a router, > but that limitation becomes more and more a problem. The biggest issue, > at least for me, is apt although it's just the bringe

Re: Reducing apt's memory footprint (on small boxes)

2021-02-16 Thread Christopher Barry
On Sun, 14 Feb 2021 14:42:08 +0100 Christoph Biedl wrote: >Hello, > >this story isn't new: Older boxes with rather small memory. In my case, >DockStar with 128 Mbyte RAM. They still serve a job as e.g. a router, >but that limitation becomes more and more a problem. The biggest issue, >at least fo

Re: Reducing apt's memory footprint (on small boxes)

2021-02-16 Thread Christoph Biedl
Paul Wise wrote... > On Sun, Feb 14, 2021 at 2:53 PM Paul Wise wrote: > > > I think that this could be useful to a subset of Debian users, > > possibly including embedded hardware and low-RAM cloud/VPS users. > > This could also be useful to bandwidth-constrained environments, the > apt package

Re: Reducing apt's memory footprint (on small boxes)

2021-02-16 Thread Christoph Biedl
Luke Kenneth Casson Leighton wrote... > not being funny or anything: i appreciate the dependencies have to be kept > exceptionally low, but why is noone thinking in terms of modifications to > apt that do not require the package indices to be in-memory? The apt code already is quite complex and c

Re: Reducing apt's memory footprint (on small boxes)

2021-02-14 Thread Paul Wise
On Mon, Feb 15, 2021 at 3:04 AM Jeffrey Walton wrote: > And devices with limited storage. Two days ago I had to install Debian > 10 on a fresh SDcard and swap-in the card on an IoT gadget. The dist > upgrade used too much space and the existing SDcard ran out of space > when unpacking/installing a

Re: Reducing apt's memory footprint (on small boxes)

2021-02-14 Thread Luke Kenneth Casson Leighton
On Monday, February 15, 2021, Paul Wise wrote: > On Sun, Feb 14, 2021 at 2:53 PM Paul Wise wrote: > >> I think that this could be useful to a subset of Debian users, >> possibly including embedded hardware and low-RAM cloud/VPS users. > > This could also be useful to bandwidth-constrained environm

Re: Reducing apt's memory footprint (on small boxes)

2021-02-14 Thread Jeffrey Walton
On Sun, Feb 14, 2021 at 9:22 PM Paul Wise wrote: > > On Sun, Feb 14, 2021 at 2:53 PM Paul Wise wrote: > > > I think that this could be useful to a subset of Debian users, > > possibly including embedded hardware and low-RAM cloud/VPS users. > > This could also be useful to bandwidth-constrained en

Re: Reducing apt's memory footprint (on small boxes)

2021-02-14 Thread Paul Wise
On Sun, Feb 14, 2021 at 2:53 PM Paul Wise wrote: > I think that this could be useful to a subset of Debian users, > possibly including embedded hardware and low-RAM cloud/VPS users. This could also be useful to bandwidth-constrained environments, the apt package indices are really quite large the

Re: Reducing apt's memory footprint (on small boxes)

2021-02-14 Thread Martin
On 2021-02-14 14:42, Christoph Biedl wrote: > And so I started a small project: > > * Take the list of binary packages that are actually installed, less > than 500 in my case. > * Have copies of `dists/stretch/main/binary-{all,armel}/Packages`. > * Drop all stanzas that are *not* in the above lis

Re: Reducing apt's memory footprint (on small boxes)

2021-02-14 Thread Alan Corey
Linux From Scratch is interesting because it has no package system at all. But it's mostly i386 with Raspberry Pi added by a contributor. Once it's bootstrapped everything is built from sources. You don't actually need most upgrades, I have a Jessie machine running, haven't updated it in a couple

Re: Reducing apt's memory footprint (on small boxes)

2021-02-14 Thread Paul Wise
On Sun, Feb 14, 2021 at 1:42 PM Christoph Biedl wrote: > The packages indexes became that big they no longer fit into memory. In > September 2015, there was a suggestion to create subsets of a release I seem to remember that Emdebian used that solution too. > but I objected it will be more or le

Reducing apt's memory footprint (on small boxes)

2021-02-14 Thread Christoph Biedl
Hello, this story isn't new: Older boxes with rather small memory. In my case, DockStar with 128 Mbyte RAM. They still serve a job as e.g. a router, but that limitation becomes more and more a problem. The biggest issue, at least for me, is apt although it's just the bringer of the bad news: The p