Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Driver Container Image Size #33

Closed
5 tasks done
Tracked by #28
hershpa opened this issue May 1, 2023 · 1 comment
Closed
5 tasks done
Tracked by #28

Improve Driver Container Image Size #33

hershpa opened this issue May 1, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@hershpa
Copy link
Contributor

hershpa commented May 1, 2023

Summary:

The dockerfile copies unnecessary files and directories to the final UBI minimal based driver container image. The goal is to copy only the necessary ko files and firmware binaries to keep the driver container image size as small as possible.

Solution:

Initial analysis of current driver container image shows we can safely copy all *.ko and *.ko.xz files under /lib/modules/4.18.0-372.46.1.el8_6.x86_64/. The following ko files would be copied. Note: *.ko.xz files are not shown below since there are several. The xz extension indicates it is a compressed ko file so it takes less space than a traditional ko file.

image

For firmware binaries, the proposed solution is to copy only dg2* firmware binaries since those are the only binaries that are needed for Intel Data Center GPU Flex Series. We will continue to copy the copyright license in /firmware/i915/license/ and the firmware binaries in /firmware/i915/.

Task Checklist:

  • 1. Make above changes in dockerfile
  • 2. Re-build and deploy driver container using updated dockerfile and KMM
  • 3. Test updated driver container to ensure no regression issues.
  • 4. Review and compare updated compressed driver container image size. Current compressed size is 256 MiB.
  • 5. Submit PR to update dockerfile after reviewing results.
@hershpa
Copy link
Contributor Author

hershpa commented May 17, 2023

New driver container compressed image size is down from 256 MiB to 180.1 MiB. Reduced by 75.9 MiB. build log

hershpa added a commit to hershpa/intel-data-center-gpu-driver-for-openshift-1 that referenced this issue May 17, 2023
Copy only the necessary ko files and firmware binaries to minimize final driver container image size.
See intel#33 for more details.
Signed-off-by: Hersh Pathak hersh.pathak@intel.com
hershpa added a commit to hershpa/intel-data-center-gpu-driver-for-openshift-1 that referenced this issue May 18, 2023
Copy only the necessary ko files and firmware binaries to minimize final driver container image size.
See intel#33 for more details.
Signed-off-by: Hersh Pathak hersh.pathak@intel.com
hershpa added a commit to hershpa/intel-data-center-gpu-driver-for-openshift-1 that referenced this issue May 18, 2023
Copy only the necessary ko files and firmware binaries to minimize final driver container image size.
See intel#33 for more details.
Signed-off-by: Hersh Pathak hersh.pathak@intel.com
hershpa added a commit to hershpa/intel-data-center-gpu-driver-for-openshift-1 that referenced this issue May 18, 2023
Copy only the necessary ko files and firmware binaries to minimize final driver container image size.
See intel#33 for more details.
Signed-off-by: Hersh Pathak hersh.pathak@intel.com
hershpa added a commit to hershpa/intel-data-center-gpu-driver-for-openshift-1 that referenced this issue May 19, 2023
Copy only the necessary ko files and firmware binaries to minimize final driver container image size.
See intel#33 for more details.
Signed-off-by: Hersh Pathak hersh.pathak@intel.com
hershpa added a commit to hershpa/intel-data-center-gpu-driver-for-openshift-1 that referenced this issue May 22, 2023
Copy only the necessary ko files and firmware binaries to minimize final driver container image size.
See intel#33 for more details.
Signed-off-by: Hersh Pathak hersh.pathak@intel.com
hershpa added a commit to hershpa/intel-data-center-gpu-driver-for-openshift-1 that referenced this issue May 23, 2023
Copy only the necessary ko files and firmware binaries to minimize final driver container image size.
See intel#33 for more details.
Signed-off-by: Hersh Pathak hersh.pathak@intel.com
hershpa added a commit to hershpa/intel-data-center-gpu-driver-for-openshift-1 that referenced this issue May 23, 2023
Copy only the necessary ko files and firmware binaries to minimize final driver container image size.
See intel#33 for more details.
Signed-off-by: Hersh Pathak hersh.pathak@intel.com
@hershpa hershpa closed this as completed May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants