Bug 143 - Generate locales at build time to speed up first boot
Summary: Generate locales at build time to speed up first boot
Status: VERIFIED NOTABUG
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 0.9
Hardware: x86 Multiple
: Low enhancement
Target Milestone: 0.9 M4
Assignee: Nitin Kamble
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2010-07-26 07:29 UTC by Jiajun Xu
Modified: 2011-02-16 21:31 UTC (History)
10 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified: Program Management
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiajun Xu 2010-07-26 07:29:31 UTC
Testing Env:    
Host: Ubuntu 10.04 LTS
Kernel: 2.6.32-21-generic-pae
qemuppc images from weekly build 20100721,
http://yoctobuild01.jf.intel.com/build-areas/weekly-release/build/build/tmp/deploy/images/.

The first time when I boot up qemuppc image, it will take much time (more than 5 minutes). According to comments from Richard in bug 102, it's a locale problem. I open the bug for tracking the issue.

Quote Richard's comments:
"First boot speed is a separate issue and locale generation does take a while.
I'm going to mark this particular bug as resolved fixed. We can open a new
feature enhancement bug with the task of having locale generation at build
time."
Comment 1 Nitin Kamble 2010-09-09 13:34:48 UTC
build time Locale generation is enabled in the poky. 

please verify the issue is not present now.
Comment 2 Jiajun Xu 2010-09-12 22:57:01 UTC
(In reply to comment #1)
> build time Locale generation is enabled in the poky. 
> please verify the issue is not present now.

Nitin,
Is the patch in milestone branch? Is it OK for us to verify the issue against M3 build image?

BTW, if a bug is fixed and fixing patch is built in our weekly/nightly build, you can mark the bug status as "RESOLVED FIXED" then.
Comment 3 Nitin Kamble 2010-09-28 16:40:41 UTC
the build/milestone branch is still set tu use glibc instead of eglibc. eglibc generates many locales while glibc is is configured to build just few locales.


for both build time locale generation is enabled by this commit.

so to answer your question, It is  ok for you to verify the issue against
M3 build image, as I hear from Saul builds/milestone branch is same as M3.


http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/commit/?h=builds/milestone&id=561d875404ef1783f94f37314b6e756766db8411

author	Nitin A Kamble <nitin.a.kamble@intel.com>	2010-08-06 02:38:06 (GMT)
committer	Richard Purdie <rpurdie@linux.intel.com>	2010-09-02 08:52:31 (GMT)
commit	561d875404ef1783f94f37314b6e756766db8411 (patch) (side-by-side diff)
tree	664f8afe01c9ba8828ab02b19367e97e52dae842
parent	436d590c4a5b7b5942bac5b51af128bcdd30621f (diff)
download	poky-contrib-561d875404ef1783f94f37314b6e756766db8411.zip
poky-contrib-561d875404ef1783f94f37314b6e756766db8411.tar.gz
poky-contrib-561d875404ef1783f94f37314b6e756766db8411.tar.bz2

libc-package.bbclass: merge glibc & eglibc class files

Other enhancements: print qemu's stdio & error on failure 
glibc: enable locale generation for all arches 
eglibc: enable binary locale generation for mips And cleanup of code based on the code review. 
[e]glibc: move common definition in the common file. bitbake was complaining about duplicate definition of get_libc_fpu_setting in eglibc.inc & glibc.inc files. 
And bump PRs 
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> 
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Comment 4 Jiajun Xu 2010-09-28 17:45:33 UTC
Xianchao,
Pls. verify if the bug exist with latest image. The issue is that the first time you download and boot the qemuppc sato/sdk image, the booting time will take more than 5 minutes.
Comment 5 xianchao zhang 2010-10-08 23:27:21 UTC
(In reply to comment #4)
> Xianchao,
> Pls. verify if the bug exist with latest image. The issue is that the first
> time you download and boot the qemuppc sato/sdk image, the booting time will
> take more than 5 minutes.

With the latest build image (20101007), the first boot time need about 4-5 minutes.
Comment 6 Jiajun Xu 2010-10-21 07:23:49 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Xianchao,
> > Pls. verify if the bug exist with latest image. The issue is that the first
> > time you download and boot the qemuppc sato/sdk image, the booting time will
> > take more than 5 minutes.
> With the latest build image (20101007), the first boot time need about 4-5
> minutes.

I check with 20101018 build, it still needs about 4 mintues to boot up qemuppc image. Reopen the bug.
Comment 7 Nitin Kamble 2010-12-14 20:16:13 UTC
(In reply to comment #6)
> 
> I check with 20101018 build, it still needs about 4 mintues to boot up qemuppc
> image. Reopen the bug.

It's only mentioned that it takes 4 minutes to boot up. Can you look what is happening in that 4 minutes? I do not see any data that shows that the 4 minutes boottime is caused for locale generation.
Comment 8 Nitin Kamble 2010-12-26 13:24:04 UTC
possibly it is doing fsck. please verify what is happening.
Comment 9 Jiajun Xu 2010-12-26 17:20:29 UTC
(In reply to comment #8)
> possibly it is doing fsck. please verify what is happening.

qemuppc will wait for a long time after printing following message and give me a login prompt.

#########
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
EXT3-fs (hda): warning: feature flags set on rev 0 fs, running e2fsck is recommended
EXT3-fs (hda): mounted filesystem with writeback data mode
VFS: Mounted root (ext3 filesystem) readonly on device 3:0.
Freeing unused kernel memory: 180k init
kjournald starting.  Commit interval 5 seconds
EXT3-fs (hda): warning: updating to rev 1 because of new feature flag, running e2fsck is recommended
EXT3-fs (hda): using internal journal
#########
Comment 10 Nitin Kamble 2010-12-27 06:21:01 UTC
(In reply to comment #9)
So it is not busy generating locales. maybe you can open another bug for boot speed issue.
Comment 11 Jiajun Xu 2010-12-27 07:00:42 UTC
OK. Let me open another bug.