Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 92855 - emerge --sync Time can be greatly reduced
Summary: emerge --sync Time can be greatly reduced
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Linux x86 Installation Guide (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Xavier Neys (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-16 19:42 UTC by Spencer Ryan
Modified: 2005-05-17 09:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
codenote added (hb-install-system.xml,15.85 KB, text/plain)
2005-05-16 21:28 UTC, Curtis Napier (RETIRED)
Details
corrected hb-install-system.xml attachment. (hb-install-system.xml,15.85 KB, text/plain)
2005-05-16 21:57 UTC, Curtis Napier (RETIRED)
Details
latest patch (hb-install-system_sync_quiet.patch,708 bytes, patch)
2005-05-16 23:08 UTC, Alin Dobre (RETIRED)
Details | Diff
take 2 (hb-install-system_sync_quiet.patch,806 bytes, patch)
2005-05-17 09:15 UTC, Alin Dobre (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Spencer Ryan 2005-05-16 19:42:43 UTC
In the guide it instructs to do a sync of the portage tree, the only problem 
with this is the massive amounts of information that appears on the screen the 
first time this is done. My recomended alternative is perhaps a statement 
telling users to use "emerge --sync --quiet" This reduced this step's time on 
my machine from close to 20 minutes to less then 5, since most of this step is 
waiting for the data to scroll past on the framebuffer.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jonathan Smith (RETIRED) gentoo-dev 2005-05-16 19:57:35 UTC
i think this greatly depends on the type of terminal used to display the
material. framebuffer terminals or xterms with lots of eyecandy will bork, but
others take much less time.

to my knowlege, the same thing could be accomplished by switching to another
terminal (ctr-alt-f2,3,4,5,6) so the info doesn't have to pass through the frame
buffer, but i am not 100% sure there

this being said, perhaps its worth a mention, as (last time i checked, which was
about 7 months ago) the gentoo install CDs use a framebuffer
Comment 2 Stuart Longland (RETIRED) gentoo-dev 2005-05-16 20:08:34 UTC
Serial console at 9600 takes a while too.  Mind you, on the systems I deal with,
most of the wait is the system itself updating its cache, not the download itself.
Comment 3 Spencer Ryan 2005-05-16 20:12:16 UTC
Well By default the gentoo install uses a framebuffer, and both of my rather 
fast machines take forever on the first emerge sync, this could hopefully 
speed it up for some people who are allready in the process of a long gentoo 
install ;)
Comment 4 Stuart Longland (RETIRED) gentoo-dev 2005-05-16 20:19:51 UTC
So what you're saying is to include a little bit in the docs:

<note>
If you wish to speed up this process, you may use <c>emerge --sync --quiet</c>
instead.  This will tell <c>emerge</c> to run the synchronisation process
quietly, and may make a significant difference in speed when working on slower
machines.
</note>
Comment 5 Spencer Ryan 2005-05-16 20:26:26 UTC
Yep, just to let people know they dont have to watch it all if they dont want, 
and it would speed the process up
Comment 6 Curtis Napier (RETIRED) gentoo-dev 2005-05-16 21:28:42 UTC
Created attachment 59082 [details]
codenote added

updated the relevant handbook part "/doc/en/handbook/hb-install-system.xml"
with:

<codenote>If you wish to speed up this process, you may use <c>emerge --sync
--quiet</c>
instead.  This will tell <c>emerge</c> to run the synchronisation process
quietly, and may make a significant difference in speed when working on slower
machines.
</codenote>

I have no cvs access. If a relevant dev approves please add my attached update.


Thanks
Comment 7 Shyam Mani (RETIRED) gentoo-dev 2005-05-16 21:31:23 UTC
Stuart, I have the same issue...the cache takes longer than the download itself :)

Micheal, <codenote> is deprecated, we no longer use it in the docs. I guess the
docdev who puts it up (if approved) will take care of it though. Thought I'd
mention it FYI :)
Comment 8 Curtis Napier (RETIRED) gentoo-dev 2005-05-16 21:57:15 UTC
Created attachment 59084 [details]
corrected hb-install-system.xml attachment.

Sorry, I forgot we switched to the <comment> tag.  Attached a correction.
Comment 9 Alin Dobre (RETIRED) gentoo-dev 2005-05-16 22:16:57 UTC
how about:
"""
# <i>emerge --sync</i>
<comment>
If you wish to speed up this process, you can tell <c>emerge</c> to run the
synchronisation process quietly, and may make a significant difference in speed
when working on slower machines/terminals. In this case, use:
</comment>
# <i>emerge --sync --quiet</i>
"""
-> added 'terminals' along with 'machines'
-> made the code more GuideXML-like
Comment 10 Alin Dobre (RETIRED) gentoo-dev 2005-05-16 22:19:08 UTC
(In reply to comment #8)
> Created an attachment (id=59084) [edit]
> corrected hb-install-system.xml attachment.
> 
> Sorry, I forgot we switched to the <comment> tag.  Attached a correction.

Curtis, sometimes it's more useful to attach a patch for the document, instead
of the entire xml file ;-)
Comment 11 Shyam Mani (RETIRED) gentoo-dev 2005-05-16 22:26:03 UTC
(In reply to comment #9)
> how about:
> """
> # <i>emerge --sync</i>
> <comment>
> If you wish to speed up this process, you can tell <c>emerge</c> to run the
> synchronisation process quietly, and may make a significant difference in speed
> when working on slower machines/terminals. In this case, use:
> </comment>
> # <i>emerge --sync --quiet</i>
> """

Looks perfect Alin, minimal change and gets the point across :)
Comment 12 Shyam Mani (RETIRED) gentoo-dev 2005-05-16 22:31:26 UTC
(In reply to comment #9)
> how about:
> """
> # <i>emerge --sync</i>
> <comment>
> If you wish to speed up this process, you can tell <c>emerge</c> to run the
> synchronisation process quietly, and may make a significant difference in speed
> when working on slower machines/terminals. In this case, use:

Minor change for better grammar/sentences :

If you wish to speed up this process, you can ask <c>emerge</c> to run the
synchronisation process quietly. Doing so may have a significant increase in
speed when working on slower machines/terminals.
Comment 13 Alin Dobre (RETIRED) gentoo-dev 2005-05-16 23:08:41 UTC
Created attachment 59089 [details, diff]
latest patch

Here is the patch. The <c> tags inside <pre> were eliminated, as they are not
allowed.
Comment 14 Jan Kundrát (RETIRED) gentoo-dev 2005-05-17 01:38:45 UTC
You should also describe what "quitely" means :-P - point out that the slow 
part is printing a lot of info to the terminal... 
Comment 15 Alin Dobre (RETIRED) gentoo-dev 2005-05-17 09:15:00 UTC
Created attachment 59129 [details, diff]
take 2

here it is. hope this will point out the info about adding --quiet to emerge
--sync.
Comment 16 Jan Kundrát (RETIRED) gentoo-dev 2005-05-17 09:26:04 UTC
Alin, so is it "syncro" or "synchro"? 
 
I'm not sure if comment in the code example is a Good Place(tm) to put such 
warnings/tips. 
 
And finally, I'd omit the parenthesis from last sentence and connect it with 
semicolon (";"), I like it better :-). 
Comment 17 Xavier Neys (RETIRED) gentoo-dev 2005-05-17 09:29:24 UTC
Can be made shorter :)
Comment 18 Xavier Neys (RETIRED) gentoo-dev 2005-05-17 09:42:51 UTC
Fixed. Thanks for the suggestion.