1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
On Sun, Apr 20, 2003 at 12:39:17PM +1200, leon j. breedt wrote: |
5 |
> well, i went for the all-out approach, and replaced every invocation |
6 |
> with LC_ALL=C <cmd>, and did the export LC_ALL=C before all occurences |
7 |
> of "x start|stop". it felt a bit faster..i'm going to revert to the |
8 |
> existing rc-scripts and see if i can feel a difference. |
9 |
okay, its bad form to reply to your own posts...but i did some very crappy |
10 |
benchmarking (cat /proc/uptime >/tmp/boottime in /etc/conf.d/local.start), |
11 |
and booted each set of rc-scripts 10 times. |
12 |
|
13 |
results inconclusive...sometimes LC_ALL=C booted faster, sometimes without |
14 |
did. and with either enabled, boot times would fluctuate between 17 and |
15 |
15.9 seconds for a full boot, no clear win with LC_ALL=C enabled. |
16 |
|
17 |
i did some more research, and it seems this hack is necessary on Red Hat |
18 |
because they set LANG to a UTF locale on bootup. something which Gentoo |
19 |
doesn't do. at least, a grep for LANG in /etc turned up nothing. |
20 |
|
21 |
unless grep/awk default to a UTF locale in the absence of LANG, |
22 |
it seems Gentoo is already as fast as it can be in this regard. |
23 |
|
24 |
i think a note should be made if Gentoo at some point in the |
25 |
is going to set LANG, though. |
26 |
|
27 |
sorry about blowing smoke...i think i just witnessed one of faster bootups |
28 |
after changing to LC_ALL=C. this will teach me... |
29 |
|
30 |
leon |
31 |
|
32 |
- -- |
33 |
in the beginning, was the code. |
34 |
|
35 |
-----BEGIN PGP SIGNATURE----- |
36 |
Version: GnuPG v1.2.1 (GNU/Linux) |
37 |
|
38 |
iD8DBQE+oiorRWcl5mzp4f4RAvshAJ0SR/gF1HN9bZ9xRMyxmJ2iihlCogCgtsMK |
39 |
uQ8auRfK4rLS+p7TQEQQug8= |
40 |
=QTVk |
41 |
-----END PGP SIGNATURE----- |
42 |
|
43 |
-- |
44 |
gentoo-dev@g.o mailing list |