1 |
On Thu, 2004-10-14 at 12:24, Luke-Jr wrote: |
2 |
> On Wednesday 13 October 2004 7:31 am, Robin H. Johnson wrote: |
3 |
> > portage loop file is usually on disk, when a sync is needed: |
4 |
> > 1. umount loop file |
5 |
> > 2. copy loop file to /dev/shm or other fast place |
6 |
> > 3. mount loop file again (from new location) |
7 |
> > 4. run updates to loop filesystem ('cvs up; emerge metadata' or 'emerge |
8 |
> > sync') 5. umount loop file, copy back to disk |
9 |
> > 6. mount loop file again |
10 |
> |
11 |
> Since (from what I've heard) Portage's speed issues are mostly I/O, why not |
12 |
> keep the mounted copy on a tmpfs and simply make an on-disk backup after |
13 |
> syncing (and copy it back on rebooting)? |
14 |
> |
15 |
> On Thursday 14 October 2004 2:07 pm, Ned Ludd wrote: |
16 |
> > New loopback size is 11M after reading this thread and dumping ChangeLog |
17 |
> > & metadata.xml files which does seem like a perfectly feasible thing for |
18 |
> > us to do. Removing leading/trailing whitespace and erroneous newlines |
19 |
> > yielded no noticeable gains. |
20 |
> |
21 |
> 11 MB of RAM may or may not seem reasonable to users depending on how often |
22 |
> they do things with Portage. |
23 |
|
24 |
indeed not all users are willing to leave something in resident memory |
25 |
for extended periods of time. However ebuild/emerge could be extended to |
26 |
mounting a portage tree vs bailing when one does not exist. |
27 |
|
28 |
I'm simply providing info more for statistical reasons stating what can |
29 |
be done possibly for those working in constrained or unique |
30 |
environments. |
31 |
On that note I did some more experimenting here and got the tree down to |
32 |
around 2.7M just enough for an emerge system for my ARCH/KEYWORDS. I |
33 |
still have a little bit of bloat leftover which is are packages that are |
34 |
not a direct part of my depgraph or unneeded stuff from the PN/files/ |
35 |
|
36 |
-- |
37 |
Ned Ludd <solar@g.o> |
38 |
Gentoo (hardened,security,infrastructure,embedded,toolchain) Developer |