Skip to content

Commit 4d49c78

Browse files
committed
fix hugepage issues for p4sdk container and image build
fix hugepage issues for p4sdk container and image build Signed-off-by: Halim, Abdul <[email protected]>
1 parent 42c1792 commit 4d49c78

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

e2e/artefacts/k8s/p4sdk-ds.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,23 @@ spec:
2020
securityContext:
2121
privileged: true
2222
command: [ "/entrypoint.sh" ]
23+
resources:
24+
limits:
25+
hugepages-2Mi: 1Gi
26+
cpu: "2"
2327
volumeMounts:
2428
- name: host-libmodules
2529
mountPath: /lib/modules
2630
mountPropagation: HostToContainer
31+
- mountPath: /dev/hugepages
32+
name: hugepage
2733
volumes:
2834
- name: host-libmodules
2935
hostPath:
3036
path: /lib/modules
3137
type: Directory
38+
- name: hugepage
39+
emptyDir:
40+
medium: HugePages-2Mi
41+
3242

p4sdk/images/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
# SPDX-License-Identifier: Apache-2.0
23
# Copyright (c) 2024 Intel Corporation
34

@@ -19,11 +20,12 @@ RUN dnf -y install \
1920
gettext-0.21-8.el9.aarch64 \
2021
python3-pip-21.2.3-7.el9_3.1.noarch \
2122
pciutils-3.7.0-5.el9.aarch64 \
22-
libconfig-1.7.2-9.el9.aarch64 \
2323
libnl3-3.7.0-1.el9.aarch64 \
2424
libedit-3.1-38.20210216cvs.el9.aarch64 \
2525
libatomic-11.4.1-2.1.el9.aarch64 \
26-
&& dnf clean all
26+
&& curl -L -o libconfig-1.7.2-9.el9.aarch64.rpm \
27+
https://mirror.stream.centos.org/9-stream/BaseOS/aarch64/os/Packages/libconfig-1.7.2-9.el9.aarch64.rpm \
28+
&& dnf -y install libconfig-1.7.2-9.el9.aarch64.rpm && rm -f libconfig-1.7.2-9.el9.aarch64.rpm && dnf clean all
2729
RUN python3 -m pip install --no-cache-dir \
2830
grpcio==1.62.1 \
2931
protobuf==4.25.3 \

0 commit comments

Comments
 (0)