Wind River Support Network

HomeDefectsLIN6-8148
Fixed

LIN6-8148 : RO SState Mirror does not reduce build time

Created: Aug 11, 2014    Updated: Dec 3, 2018
Resolved Date: Nov 7, 2014
Found In Version: 6.0.0.9
Fix Version: 6.0.0.12
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Docs

Description

My customer wants to setup ro sstate mirror to reduce build times for his local and overseas developers. I helped them setup the server as mentioned in Wind River Linux User's Guide 6.0, Section - "Setting Up a Remote Shared State Cache Server".

But when second project is configured and built to use this mirror using steps in the next Section - "Accelerating Builds with Shared State Cache", it does not seem to use the mirror. It fetches, compiles each and every package and so build time is same as first build.

I was also able to reproduce the problem on my end. I set up the ro sstate mirror on localhost instead of a remote server and it is the same result.

Workaround

I came up with below workaround. Please confirm this workaround.
I found the problem in our documentation and fixed 2 steps as below.
Wind River Linux User's Guide 6.0
A. Setting Up a Remote Shared State Cache Server - Step 5 (Using rsync)
Source directory was missing. So the step should read as below.(See the addition of '.' as source directory)
1. Run the following command from the shared state cache directory:
$ rsync --progress --archive --stats  . \
> user@serverIP_address:read_only_sstate_cacheDir
Also change the example below with similar correction.

B. Accelerating Builds with Shared State Cache - Step 1 (Configure the project)
We need to add protocol to --with-ro-sstate-mirror as below.
--with-ro-sstate-mirror=[http | ftp ]://serverIP_address:read_only_sstate_cacheDir (mirror on remote host)
--with-ro-sstate-mirror=file:///read_only_sstate_cacheDir (mirror on localhost)

After these two changes, I setup RO sstate mirror on local host and second build used all prebuilt cache, and was super fast and was just building the rootfs.

Steps to Reproduce

Follow the steps in Wind River Linux User's Guide 6.0
A. Setting Up a Remote Shared State Cache Server
B. Accelerating Builds with Shared State Cache

The build for second configured project will take almost the same time as first project and it will not reduce the build time.

Other Downloads


Live chat
Online