-
Notifications
You must be signed in to change notification settings - Fork 5
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
Labels
enhancement
New feature or request
Comments
14 tasks
6 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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. Thexz
extension indicates it is a compressed ko file so it takes less space than a traditional ko file.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:
The text was updated successfully, but these errors were encountered: