1 |
On 27/2/20 3:51 pm, Robert Bridge wrote: |
2 |
>> On 27 Feb 2020, at 00:08, William Kenworthy <billk@×××××××××.au> wrote: |
3 |
>> |
4 |
>> Hi, |
5 |
>> |
6 |
>> due to space considerations on my laptop I have moved portage onto a |
7 |
>> network share (moosfs, mfsmounted) - slower but works fine. However, |
8 |
>> being a laptop trying to update/install when out and about is both very |
9 |
>> slow and network intensive through a vpn - again, it works but is even |
10 |
>> slower to the point of not always being practical |
11 |
>> |
12 |
>> Is there a way to localise/speedup portage scanning parts of the |
13 |
>> update/install process? |
14 |
>> |
15 |
> I used to use a portage tree shared over NFS. One thing that is worth considering, if you haven’t, is having the remote host manage tree syncing. This would remove the need for the laptop to be involved in the sync. |
16 |
> |
17 |
> Also, I generally would try to avoid updating the system while out and about, so that when I am updating it is a local network operation. Obviously this won’t work if you need a package when out and about, but if you are local to the server every night or couple of nights, it would significantly reduce the pain of updates. |
18 |
> |
19 |
> Cheers, |
20 |
> RobbieAB. |
21 |
> |
22 |
All good ideas - currently the portage tree is common to ~20 odd gentoo |
23 |
systems, mostly similar hardware but also some vms's. This is what I |
24 |
have pointed the latop at. I used http-replicator for distfiles for |
25 |
years but its recently been deprecated for tree-cleaning (I think) so |
26 |
there is now an mfs mounted common distfiles (also outside the portage |
27 |
directory). Same with the common package files - they are extensive but |
28 |
live outside the tree in different folders depending on hardware type. |
29 |
I already have an arm host dedicated to updating portage and building |
30 |
arm32 packages for -K install on compatible systems - that all works |
31 |
great and has been running well for quite awhile. Originally I used a |
32 |
git synced portage master with local git syncing for each host. I have |
33 |
converted it to a single git synced portage mfs mounted read only via |
34 |
mfs on each host which while much slower, its less fussy and works well |
35 |
except when the laptop is off-site. |
36 |
|
37 |
I was hoping there was some way to cache portage operations and reuse |
38 |
them as doing a simple emerge -p world will take 30 minutes or more and |
39 |
pull a lot of network traffic - and if something fails it starts all |
40 |
over again. Once the scanning is done actual merges are fine with only |
41 |
a small time increase. |
42 |
|
43 |
BillK |