Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

virtcontainers: Set correct Shmsize for ppc64le #1703

Merged
merged 1 commit into from
May 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions virtcontainers/pkg/oci/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"path"
"path/filepath"
"reflect"
"runtime"
"strconv"
"testing"

Expand Down Expand Up @@ -816,6 +817,10 @@ func TestGetShmSizeBindMounted(t *testing.T) {
assert.Nil(t, err)

size := 8192
if runtime.GOARCH == "ppc64le" {
// PAGE_SIZE on ppc64le is 65536
size = 65536
}

shmOptions := "mode=1777,size=" + strconv.Itoa(size)
err = unix.Mount("shm", shmPath, "tmpfs", unix.MS_NOEXEC|unix.MS_NOSUID|unix.MS_NODEV, shmOptions)
Expand Down