Bug 303 - [qemux86] No enough disk space with qemux86 sdk image
Summary: [qemux86] No enough disk space with qemux86 sdk image
Status: VERIFIED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 0.9
Hardware: x86 x86
: High major
Target Milestone: 0.9 M3
Assignee: Dexuan Cui
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2010-09-09 01:31 UTC by Jiajun Xu
Modified: 2010-12-21 06:07 UTC (History)
7 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-09-09 01:31:48 UTC
Testing Env:    
Host: Ubuntu 10.04.1 LTS
Kernel: Linux vt-dp4 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:09:38 UTC
2010 x86_64 GNU/Linux
Poky gitinfo(used to build qemu-native):
6c3df3a7a02986d21ca09a9e914ffb2a64548752
All images file from http://autobuilder.pokylinux.org/milestone/20100908-1/.

The qemux86 sdk image has no enough disk space after booting up. 

######
root@qemux86:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root               820297    780860         0 100% /
tmpfs                       40         0        40   0% /mnt/.psplash
none                     61112       116     60996   0% /dev
tmpfs                    61112       116     60996   0% /var/volatile
tmpfs                    61112         0     61112   0% /media/ram
######

Reproduce Steps:
1. Download latest milestone images from autobuilder
2. start the QEMU image
3. check disk space with 'df'
Comment 1 Dexuan Cui 2010-09-09 19:08:54 UTC
Saul propably fixed the bug:

---------------------------------------------
image.bbclass: change IMAGE_EXTRA_SPACE to IMAGE_OVERHEAD_FACTOR
 
author Saul Wold <Saul.Wold@intel.com>  
 Wed, 8 Sep 2010 23:25:25 +0000 (16:25 -0700) 
committer Saul Wold <Saul.Wold@intel.com>  
 Wed, 8 Sep 2010 23:36:53 +0000 (16:36 -0700) 

This change allows the IMAGE_OVERHEAD_FACTOR (default to 1.2) to
adjust dynamicly how much space to add for each image, thus there
is 20% overhead space by default.

Signed-off-by: Saul Wold <Saul.Wold@intel.com>
---------------------------------------------

I'm building poky-image-sdk image, trying to verify Saul's fix.
Comment 2 Dexuan Cui 2010-09-09 22:09:08 UTC
(In reply to comment #1)
> Saul propably fixed the bug:
> ---------------------------------------------
> image.bbclass: change IMAGE_EXTRA_SPACE to IMAGE_OVERHEAD_FACTOR
> author Saul Wold <Saul.Wold@intel.com>  
>  Wed, 8 Sep 2010 23:25:25 +0000 (16:25 -0700) 
> committer Saul Wold <Saul.Wold@intel.com>  
>  Wed, 8 Sep 2010 23:36:53 +0000 (16:36 -0700) 
> This change allows the IMAGE_OVERHEAD_FACTOR (default to 1.2) to
> adjust dynamicly how much space to add for each image, thus there
> is 20% overhead space by default.
> Signed-off-by: Saul Wold <Saul.Wold@intel.com>
> ---------------------------------------------
> I'm building poky-image-sdk image, trying to verify Saul's fix.

I can verify the issue was fixed by the above commit of Saul in this way:
Firstly I "bitbake poky-image-sdk" on poky.git's master branch with commit 
commit 3e7db72216472050366c3059219660dea057e80b
Author: Joshua Lock <josh@linux.intel.com>
Date:   Wed Sep 8 18:38:43 2010 +0100
And I did see the same "100% usage" issue as Jiajun noticed

Later I applied Saul's patch and rebuilt sdk, and the Usage became to 93%.

BTW: Saul's patch has been in poky.git and poky-contrib.git for 2 days.

So let me mark the bug as FIXED.
Comment 3 Jiajun Xu 2010-09-13 17:39:19 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Saul propably fixed the bug:
> > ---------------------------------------------
> > image.bbclass: change IMAGE_EXTRA_SPACE to IMAGE_OVERHEAD_FACTOR
> > author Saul Wold <Saul.Wold@intel.com>  
> >  Wed, 8 Sep 2010 23:25:25 +0000 (16:25 -0700) 
> > committer Saul Wold <Saul.Wold@intel.com>  
> >  Wed, 8 Sep 2010 23:36:53 +0000 (16:36 -0700) 
> > This change allows the IMAGE_OVERHEAD_FACTOR (default to 1.2) to
> > adjust dynamicly how much space to add for each image, thus there
> > is 20% overhead space by default.
> > Signed-off-by: Saul Wold <Saul.Wold@intel.com>
> > ---------------------------------------------
> > I'm building poky-image-sdk image, trying to verify Saul's fix.
> I can verify the issue was fixed by the above commit of Saul in this way:
> Firstly I "bitbake poky-image-sdk" on poky.git's master branch with commit 
> commit 3e7db72216472050366c3059219660dea057e80b
> Author: Joshua Lock <josh@linux.intel.com>
> Date:   Wed Sep 8 18:38:43 2010 +0100
> And I did see the same "100% usage" issue as Jiajun noticed
> Later I applied Saul's patch and rebuilt sdk, and the Usage became to 93%.
> BTW: Saul's patch has been in poky.git and poky-contrib.git for 2 days.
> So let me mark the bug as FIXED.

Verify with M3 20100911 build, the bug is fixed.