Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10548 - "Caching service dependencies" takes >VERY< long on low mem machine
Summary: "Caching service dependencies" takes >VERY< long on low mem machine
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Lowest enhancement (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 10880
  Show dependency tree
 
Reported: 2002-11-10 16:19 UTC by Timo Boettcher
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Boettcher 2002-11-10 16:19:38 UTC
On my Notebook with a Pentium1-75 (14MB Ram) "Caching service dependencies" 
(depscan.sh) takes about 180 seconds during each bootup. If I comment out that 
performance-enhancement of Spider, it takes just 90 secs. Perhaps there could 
be something to do that ONCE and not at every bootup...
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2002-11-11 07:55:19 UTC
it's not only on small memory machines.
i've a diskless dual pentium pro 200, 256 mb ram over 100 mbit crossover
server is a p166 mmx 128 mb ram with scsi

it also taking a lot of time on this system. this services does a lot of 
read/write. 
in your case it's terrible cause your system seems to swaping everything (caus 
of your small memory)

Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-11 22:47:05 UTC
Known issue.  Work has already been started to port depscan.sh to C, but
it was not a high priority.  Will let you know as soon as there are prototypes
out to be tested.
Comment 3 Timo Boettcher 2002-11-12 13:51:27 UTC
I'll gladly test these and report any load/time/* information I'm able to give you. But: I don't 
understand why this depscan.sh has to run on every boot? There could be other solutions, like 
saving the obtained information and updating it on demand?
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-17 11:17:32 UTC
Try baselayout-1.8.5.  For me its about 10 times faster on my pII 350:

------------------------------------
gateway root # time ./depscan.sh 
 * Caching service dependencies...                                             
                                              [ ok ]
real	0m7.186s
user	0m3.500s
sys	0m3.690s
gateway root # time depscan.sh 
 * Caching service dependencies...                                             
                                              [ ok ]
real	0m0.811s
user	0m0.560s
sys	0m0.250s
gateway root # 
-----------------------------------
Comment 5 Timo Boettcher 2002-11-18 03:58:40 UTC
That fixed it for me. About factor 10 faster from the first version, which was at around 180 seconds 
for me.

My modified version from 1.8.4 with spiders "cat *" speedfix removed
notebook root 
# time ./depscan.sh
 * Caching service dependencies...                                            
                                              [ ok ]
real 1m 0.886s
user 
0m31.342s
sys  0m28.050s


New version 1.8.5
notebook root # time depscan.sh
 * 
Caching service dependencies...                                            
                                              [ ok ]
real 0m20.493s
user 0m17.568s
sys  0m 
1.386s
notebook root #