[edk2-devel] [PATCH 0/4] Build cache enhancement

Steven Shi posted 4 patches 4 years, 8 months ago
Failed in applying to current master (apply log)
There is a newer version of this series
.../Source/Python/AutoGen/AutoGenWorker.py    |  23 +
BaseTools/Source/Python/AutoGen/CacheIR.py    |  28 +
BaseTools/Source/Python/AutoGen/DataPipe.py   |   8 +
BaseTools/Source/Python/AutoGen/GenMake.py    | 229 +++---
.../Source/Python/AutoGen/ModuleAutoGen.py    | 742 ++++++++++++++++--
BaseTools/Source/Python/Common/GlobalData.py  |   9 +
BaseTools/Source/Python/build/build.py        | 171 ++--
7 files changed, 979 insertions(+), 231 deletions(-)
mode change 100644 => 100755 BaseTools/Source/Python/AutoGen/AutoGenWorker.py
create mode 100755 BaseTools/Source/Python/AutoGen/CacheIR.py
mode change 100644 => 100755 BaseTools/Source/Python/AutoGen/DataPipe.py
mode change 100644 => 100755 BaseTools/Source/Python/AutoGen/GenMake.py
mode change 100644 => 100755 BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
mode change 100644 => 100755 BaseTools/Source/Python/Common/GlobalData.py
mode change 100644 => 100755 BaseTools/Source/Python/build/build.py
[edk2-devel] [PATCH 0/4] Build cache enhancement
Posted by Steven Shi 4 years, 8 months ago
From: "Shi, Steven" <steven.shi@intel.com>

Enhance the edk2 build cache with below patches:
Patch 01/04: Improve the cache hit rate through new cache checkpoint and hash algorithm
Patch 02/04: Print more info to explain why a module build cache miss
Patch 03/04: Fix the unsafe [self.Arch][self.Name] key usage in build cache
Patch 04/04  Add the GenFds multi-thread support in build cache

This patch set is based on patch set of [Patch 00/10 V8] Enable multiple process AutoGen 
https://edk2.groups.io/g/devel/topic/patch_00_10_v8_enable/32779325?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,140,32779325

You can directly try this patch set in the branch:
https://github.com/shijunjing/edk2/tree/build_cache_improve_v1


Shi, Steven (4):
  BaseTools: Improve the cache hit in the edk2 build cache
  BaseTools: Print first cache missing file for build cachle
  BaseTools: Change the [Arch][Name] module key in Build cache
  BaseTools: Add GenFds multi-thread support in build cache

 .../Source/Python/AutoGen/AutoGenWorker.py    |  23 +
 BaseTools/Source/Python/AutoGen/CacheIR.py    |  28 +
 BaseTools/Source/Python/AutoGen/DataPipe.py   |   8 +
 BaseTools/Source/Python/AutoGen/GenMake.py    | 229 +++---
 .../Source/Python/AutoGen/ModuleAutoGen.py    | 742 ++++++++++++++++--
 BaseTools/Source/Python/Common/GlobalData.py  |   9 +
 BaseTools/Source/Python/build/build.py        | 171 ++--
 7 files changed, 979 insertions(+), 231 deletions(-)
 mode change 100644 => 100755 BaseTools/Source/Python/AutoGen/AutoGenWorker.py
 create mode 100755 BaseTools/Source/Python/AutoGen/CacheIR.py
 mode change 100644 => 100755 BaseTools/Source/Python/AutoGen/DataPipe.py
 mode change 100644 => 100755 BaseTools/Source/Python/AutoGen/GenMake.py
 mode change 100644 => 100755 BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
 mode change 100644 => 100755 BaseTools/Source/Python/Common/GlobalData.py
 mode change 100644 => 100755 BaseTools/Source/Python/build/build.py

-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#45170): https://edk2.groups.io/g/devel/message/45170
Mute This Topic: https://groups.io/mt/32797737/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-

Re: [edk2-devel] [PATCH 0/4] Build cache enhancement
Posted by Laszlo Ersek 4 years, 8 months ago
On 08/08/19 14:25, Steven Shi wrote:
> From: "Shi, Steven" <steven.shi@intel.com>
> 
> Enhance the edk2 build cache with below patches:
> Patch 01/04: Improve the cache hit rate through new cache checkpoint and hash algorithm
> Patch 02/04: Print more info to explain why a module build cache miss
> Patch 03/04: Fix the unsafe [self.Arch][self.Name] key usage in build cache
> Patch 04/04  Add the GenFds multi-thread support in build cache
> 
> This patch set is based on patch set of [Patch 00/10 V8] Enable multiple process AutoGen 
> https://edk2.groups.io/g/devel/topic/patch_00_10_v8_enable/32779325?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,140,32779325

I've now updated BZ#1927 to depend on BZ#1875.

> You can directly try this patch set in the branch:
> https://github.com/shijunjing/edk2/tree/build_cache_improve_v1
> 
> 
> Shi, Steven (4):
>   BaseTools: Improve the cache hit in the edk2 build cache
>   BaseTools: Print first cache missing file for build cachle
>   BaseTools: Change the [Arch][Name] module key in Build cache
>   BaseTools: Add GenFds multi-thread support in build cache
> 
>  .../Source/Python/AutoGen/AutoGenWorker.py    |  23 +
>  BaseTools/Source/Python/AutoGen/CacheIR.py    |  28 +
>  BaseTools/Source/Python/AutoGen/DataPipe.py   |   8 +
>  BaseTools/Source/Python/AutoGen/GenMake.py    | 229 +++---
>  .../Source/Python/AutoGen/ModuleAutoGen.py    | 742 ++++++++++++++++--
>  BaseTools/Source/Python/Common/GlobalData.py  |   9 +
>  BaseTools/Source/Python/build/build.py        | 171 ++--
>  7 files changed, 979 insertions(+), 231 deletions(-)
>  mode change 100644 => 100755 BaseTools/Source/Python/AutoGen/AutoGenWorker.py
>  create mode 100755 BaseTools/Source/Python/AutoGen/CacheIR.py
>  mode change 100644 => 100755 BaseTools/Source/Python/AutoGen/DataPipe.py
>  mode change 100644 => 100755 BaseTools/Source/Python/AutoGen/GenMake.py
>  mode change 100644 => 100755 BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
>  mode change 100644 => 100755 BaseTools/Source/Python/Common/GlobalData.py
>  mode change 100644 => 100755 BaseTools/Source/Python/build/build.py
> 

Please change the status of BZ#1927 to IN_PROGRESS, and link this thread
(from the mailing list archive) into a comment in BZ#1927, at the same time.

Thanks
Laszlo

-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#45227): https://edk2.groups.io/g/devel/message/45227
Mute This Topic: https://groups.io/mt/32797737/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-